Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 924275 - app-laptop/laptop-mode-tools GUI requires dev-python/pyqt5
Summary: app-laptop/laptop-mode-tools GUI requires dev-python/pyqt5
Status: UNCONFIRMED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: No maintainer - Look at https://wiki.gentoo.org/wiki/Project:Proxy_Maintainers if you want to take care of it
URL: https://github.com/gentoo/gentoo/pull...
Whiteboard:
Keywords:
Depends on:
Blocks: pyqt5-removal
  Show dependency tree
 
Reported: 2024-02-11 06:35 UTC by Nick Andrade
Modified: 2025-06-09 01:16 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Nick Andrade 2024-02-11 06:35:27 UTC
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.
Comment 1 Andreas Sturmlechner gentoo-dev 2025-04-16 19:18:01 UTC
Are you maybe still using that package, after all these years?
Comment 2 Henning Schild 2025-04-17 08:08:00 UTC
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.