2d2a51
diff -up hplip-3.12.11/base/utils.py.ui-optional hplip-3.12.11/base/utils.py
2d2a51
--- hplip-3.12.11/base/utils.py.ui-optional	2012-11-20 10:55:15.000000000 +0100
2d2a51
+++ hplip-3.12.11/base/utils.py	2012-11-27 10:03:21.909512264 +0100
2d2a51
@@ -667,6 +667,13 @@ def checkPyQtImport(): # qt3
2d2a51
         if os.getenv('DISPLAY') and os.getenv('STARTED_FROM_MENU'):
2d2a51
             no_qt_message_gtk()
2d2a51
 
2d2a51
+        # hplip-gui sub-package (Fedora)
2d2a51
+        try:
2d2a51
+            import ui
2d2a51
+        except ImportError:
2d2a51
+            log.error("hplip-gui not installed.  GUI not available. Exiting.")
2d2a51
+            return False
2d2a51
+
2d2a51
         log.error("PyQt not installed. GUI not available. Exiting.")
2d2a51
         return False
2d2a51
 
106675
@@ -712,7 +719,8 @@ def checkPyQtImport4():
2d2a51
         import PyQt4
106675
         import ui4
2d2a51
     except ImportError:
106675
-        log.error("HPLIP is not installed properly or is installed without graphical support. Please reinstall HPLIP")
2d2a51
+        # hplip-gui sub-package (Fedora) requires PyQt4
2d2a51
+        log.error("Install the hplip-gui package for graphical support.")
2d2a51
         return False
2d2a51
     else:
2d2a51
         return True