28 lines
1.1 KiB
Diff
28 lines
1.1 KiB
Diff
diff -up hplip-3.16.5/base/utils.py.ui-optional hplip-3.16.5/base/utils.py
|
|
--- hplip-3.16.5/base/utils.py.ui-optional 2016-05-04 07:23:22.000000000 +0200
|
|
+++ hplip-3.16.5/base/utils.py 2016-05-19 13:52:28.773907101 +0200
|
|
@@ -733,6 +733,13 @@ def checkPyQtImport(): # qt3
|
|
if os.getenv('DISPLAY') and os.getenv('STARTED_FROM_MENU'):
|
|
no_qt_message_gtk()
|
|
|
|
+ # hplip-gui sub-package (Fedora)
|
|
+ try:
|
|
+ import ui
|
|
+ except ImportError:
|
|
+ log.error("hplip-gui not installed. GUI not available. Exiting.")
|
|
+ return False
|
|
+
|
|
log.error("PyQt not installed. GUI not available. Exiting.")
|
|
return False
|
|
|
|
@@ -783,7 +790,8 @@ def checkPyQtImport4():
|
|
import PyQt5
|
|
import ui5
|
|
else:
|
|
- log.debug("HPLIP is not installed properly or is installed without graphical support. Please reinstall HPLIP again")
|
|
+ # hplip-gui sub-package (Fedora) requires python3-qt5
|
|
+ log.error("Install the hplip-gui package for graphical support.")
|
|
return False
|
|
return True
|
|
|