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 (vote)
Assignee: No maintainer - Look at https://wiki.gentoo.org/wiki/Project:Proxy_Maintainers if you want to take care of it
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2024-02-11 06:35 UTC by Nick Andrade
Modified: 2024-02-11 07:22 UTC (History)
0 users

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.