Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 924275

Summary: app-laptop/laptop-mode-tools GUI requires dev-python/PyQt5
Product: Gentoo Linux Reporter: Nick Andrade <SDNick484>
Component: Current packagesAssignee: No maintainer - Look at https://wiki.gentoo.org/wiki/Project:Proxy_Maintainers if you want to take care of it <maintainer-needed>
Status: UNCONFIRMED ---    
Severity: normal    
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---

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.