The GUI included with app-laptop/laptop-mode-tools, , fails to launch if dev-python/PyQt5 is not already installed. The laptop-mode-tools ebuild should be updated to depend on that package or provide a USE flag to disable the GUI. Reproducible: Always Steps to Reproduce: 1. # emerge app-laptop/laptop-mode-tools 2. # /usr/sbin/lmt-config-gui Actual Results: # /usr/sbin/lmt-config-gui /usr/share/laptop-mode-tools/lmt.py:94: SyntaxWarning: "is not" with a literal. Did you mean "!="? if self.tooltip is not '': Traceback (most recent call last): File "/usr/share/laptop-mode-tools/lmt.py", line 14, in <module> from PyQt5.QtWidgets import (QWidget, QMessageBox, QVBoxLayout, QHBoxLayout, ModuleNotFoundError: No module named 'PyQt5.QtWidgets' Expected Results: GUI starts Emerging PyQt5 resolves this issue. Tested with app-laptop/laptop-mode-tools-1.74 and dev-python/PyQt5-5.15.10-r1.
Are you maybe still using that package, after all these years?
I still have it installed on one system, but am not sure which benefit it provides. To me this gui looks like a rather unmaintained part of the project, or maybe the whole project it not really maintained. They still apply commits but no releases since a long time. i.e. the first python issue seen in the error message is fixed here https://github.com/rickysarraf/laptop-mode-tools/commit/2505ba53e394f0bb14bebbfe6ea6aef8e7dc4633 Upstream does not seem to work on qt6, no code or issues found. The change would likely be minimal though. And the ebuild is also not in good shape. It does not depend on pyqt, has no python compat. I think the ebuild should drop the GUI and version bump to _p<date of latest commit>. Or the ebuild should be removed from the tree, and any invest only be made if anyone objects.