johnfanv2 / LenovoLegionLinux

Driver and tools for controlling Lenovo Legion laptops in Linux including fan control and power mode.
https://github.com/johnfanv2/LenovoLegionLinux
GNU General Public License v2.0
1.3k stars 49 forks source link

Error when trying to run the gui #160

Closed Golecom closed 3 months ago

Golecom commented 5 months ago

Hello, im trying to run the gui like the guide says but im getting this error:

gonzalo@Legion5Pro:~/LenovoLegionLinux$ sudo python/legion_linux/legion_linux/legion_gui.py Traceback (most recent call last): File "/home/gonzalo/LenovoLegionLinux/python/legion_linux/legion_linux/legion_gui.py", line 12, in from PyQt5 import QtGui, QtCore ModuleNotFoundError: No module named 'PyQt5'

I'm runnig Nobara 39

thanks

Golecom commented 5 months ago

If i run the the legion_gui.py from dolphin, the gui opens but there is a message that it needs to run as root.

Adamantine3000 commented 3 months ago

same problem: No module named 'PyQt6'

Codyport commented 3 months ago

I had to do a sudo apt install python3-pyqt6

MrDuartePT commented 3 months ago

I notice that the package for Fedora sometimes have a bug, and for some reason doesn't install PyQT6. I gonna create new packages today, and since PyQT6 is on the dependencies: https://github.com/johnfanv2/LenovoLegionLinux/blob/472dddeb72689c45930835a10ee20a0d4be5be55/deploy/build_packages/lenovolegionlinux.spec#L23C1-L23C20

Should get solved!