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