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

Bug 240660

Summary: net-print/hplip-2.8.6b - hp-toolbox: error: PyQt not installed. GUI not available. Exiting.
Product: Gentoo Linux Reporter: Justin Lecher (RETIRED) <jlec>
Component: New packagesAssignee: Denis Dupeyron (RETIRED) <calchan>
Status: RESOLVED FIXED    
Severity: normal CC: billie, danielklaffenbach, flameeyes, maciek.joziewicz, pacho, printing, spatz
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---

Description Justin Lecher (RETIRED) gentoo-dev 2008-10-09 09:51:15 UTC
if I try to start hp-toolbox following error shows up:

$ hp-toolbox 

HP Linux Imaging and Printing System (ver. 2.8.6b)
HP Device Manager ver. 14.0

Copyright (c) 2001-8 Hewlett-Packard Development Company, LP
This software comes with ABSOLUTELY NO WARRANTY.
This is free software, and you are welcome to distribute it
under certain conditions. See COPYING file for more details.

error: PyQt not installed. GUI not available. Exiting.
warning: Qt/PyQt initialization failed.
error: hp-toolbox requires GUI support. Exiting.

net-print/hplip cupsddk qt4 -dbus -doc -fax -minimal -parport -ppds -qt3 -scanner -snmp
x11-libs/qt-4.4.2 opengl qt3support -dbus
dev-python/PyQt4-4.4.3 X opengl qt3support -dbus -debug -doc -examples -svg
Comment 1 Jeroen Roovers (RETIRED) gentoo-dev 2008-10-09 15:43:53 UTC
Looks like it could do with a SLOT dependency.
Comment 2 Justin Lecher (RETIRED) gentoo-dev 2008-10-13 13:27:52 UTC
If dev-python/PyQt-3.17.4 is installed the gui works fine, although qt4 is used
Comment 3 Daniel Klaffenbach 2008-11-04 19:07:04 UTC
Same problem here - hplip was compiled with qt4 USE-flag and I always get:

error: PyQt not installed. GUI not available. Exiting.
warning: Qt/PyQt initialization failed.
error: hp-toolbox requires GUI support. Exiting.
Comment 4 Neil 2009-01-23 17:58:56 UTC
(In reply to comment #3)

Ditto here...

# eix hplip
[I] net-print/hplip
     Available versions:  2.8.6b (~)2.8.7 {cupsddk dbus doc fax gtk minimal parport ppds qt3 qt4 scanner snmp}
     Installed versions:  2.8.7(09:26:42 08/18/08)(dbus fax gtk ppds qt4 scanner snmp -cupsddk -doc -minimal -parport -qt3)
     Homepage:            http://hplip.sourceforge.net/
     Description:         HP Linux Imaging and Printing System. Includes net-print/hpijs, scanner drivers and service tools.

# eix pyqt
* dev-python/PyQt
     Available versions:  [M]3.17.3 [M]3.17.4 3.17.6 {debug doc examples}
     Homepage:            http://www.riverbankcomputing.co.uk/software/pyqt/intro/
     Description:         A set of Python bindings for Qt3

[I] dev-python/PyQt4
     Available versions:  [M](~)4.3.1 [M]4.3.3 (~)4.4-r1 4.4.4-r1 {X dbus debug doc examples opengl qt3support svg webkit}
     Installed versions:  4.4.4-r1(09:31:24 11/24/08)(X dbus opengl svg -debug -doc -examples -qt3support -webkit)
     Homepage:            http://www.riverbankcomputing.co.uk/software/pyqt/intro/
     Description:         PyQt is a set of Python bindings for the Qt toolkit

Found 2 matches.


Then trying to run hp-setup...

# hp-setup 

HP Linux Imaging and Printing System (ver. 2.8.7)
Printer/Fax Setup Utility ver. 7.2

Copyright (c) 2001-8 Hewlett-Packard Development Company, LP
This software comes with ABSOLUTELY NO WARRANTY.
This is free software, and you are welcome to distribute it
under certain conditions. See COPYING file for more details.

error: PyQt not installed. GUI not available. Exiting.
warning: PyQt init failed. Reverting to interactive mode.
(Note: Defaults for each question are maked with a '*'. Press <enter> to accept the default.)


Even though PyQt-4.4.4-r1 is installed.  Mildly annoying having to install the older PyQt to get things working.
Comment 5 Pacho Ramos gentoo-dev 2009-01-25 18:48:50 UTC
This seems like a dupe of 237221

Summarizing, seems that even merging hplip only with qt4 USE flag enabled, PyQt is still needed
Comment 6 Thomas Sachau gentoo-dev 2009-03-27 15:45:37 UTC
*** Bug 237221 has been marked as a duplicate of this bug. ***
Comment 7 Maciej Józiewicz 2009-03-27 15:58:25 UTC
This is childlish,but "mine was first and this bug should be marked as a dupe"

:D
Comment 8 Pacho Ramos gentoo-dev 2009-03-29 21:35:14 UTC
I think that 3.9.2 really depends only in PyQt4 when building with USE qt4
Comment 9 Dror Levin (RETIRED) gentoo-dev 2009-03-29 21:45:12 UTC
Yeah, version 3.9.2 (which was committed earlier, fixing bug 245136) fixes this and works well with qt4, so this bug should be marked as resolved.
Comment 10 Pacho Ramos gentoo-dev 2009-07-17 17:22:21 UTC
OK with closing this bug then as fixed? (for me, it works fine now with 3.9.4b-r1, but I am not the reporter or maintainer)
Comment 11 Maciej Józiewicz 2009-07-17 18:39:14 UTC
I'll try to check it no further then tomorrow. (I'll need to remove qt3 and then emerge it again (cause some other apps still need it...), which involves downloading, which I try not to do on my temp gsm connection, so I have to go to some friends and "steal" some bandwidth)

So, please hang on a day or two :)
Comment 12 Daniel Pielmeier gentoo-dev 2009-10-14 18:13:17 UTC
This issues should be fixed already. Please reopen if this is not the case.