error: "PyQt4.QtCore module requires API v6.0"

Asked by Andreas Hölscher

running hp-systray (and other hp-* utilities) gives:

=========
HP Linux Imaging and Printing System (ver. 3.9.12)
System Tray Status Service ver. 2.0

Copyright (c) 2001-9 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.

Traceback (most recent call last):
  File "/usr/bin/hp-systray", line 106, in <module>
    import ui4.systemtray as systray
  File "/usr/share/hplip/ui4/systemtray.py", line 36, in <module>
    from ui_utils import *
  File "/usr/share/hplip/ui4/ui_utils.py", line 34, in <module>
    from PyQt4.QtCore import *
RuntimeError: the sip module implements API v7.0 but the PyQt4.QtCore module requires API v6.0
=========

System is:
openSuSE 11.2 (i586)
Linux pcah 2.6.31.8-0.1-default #1 SMP 2009-12-15 23:55:40 +0100 i686 i686 i386 GNU/Linux
4.4.60 (KDE 4.4.60 (KDE 4.5 >= 20100120)) "release 3"
hplip 3.9.12

Question information

Language:
English Edit question
Status:
Solved
For:
HPLIP Edit question
Assignee:
No assignee Edit question
Solved by:
Andreas Hölscher
Solved:
Last query:
Last reply:
Revision history for this message
Naga Samrat Chowdary, Narla (samrat-hplip) said :
#1

please run "hp-check -t" and post the output.

Thank you for supporting HPLIP,
Naga Samrat Chowdary.

Revision history for this message
Andreas Hölscher (mail-andreas-hoelscher) said :
#2

HP Linux Imaging and Printing System (ver. 3.9.12)
Dependency/Version Check Utility ver. 14.3

Copyright (c) 2001-9 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.

Note: hp-check can be run in three modes:
1. Compile-time check mode (-c or --compile): Use this mode before compiling the HPLIP supplied tarball
(.tar.gz or .run) to determine if the proper dependencies are installed to successfully compile HPLIP.
2. Run-time check mode (-r or --run): Use this mode to determine if a distro supplied package (.deb, .rpm,
etc) or an already built HPLIP supplied tarball has the proper dependencies installed to successfully run.
3. Both compile- and run-time check mode (-b or --both) (Default): This mode will check both of the above
cases (both compile- and run-time dependencies).

Saving output in log file: hp-check.log

Initializing. Please wait...

---------------
| SYSTEM INFO |
---------------

Basic system information:
Linux pcah 2.6.31.8-0.1-default #1 SMP 2009-12-15 23:55:40 +0100 i686 i686 i386 GNU/Linux

Distribution:
suse 11.2

Checking Python version...
OK, version 2.6.2 installed

Checking PyQt 4.x version...
Traceback (most recent call last):
  File "/usr/bin/hp-check", line 304, in <module>
    from PyQt4 import QtCore
RuntimeError: the sip module implements API v7.0 but the PyQt4.QtCore module requires API v6.0

Revision history for this message
Naga Samrat Chowdary, Narla (samrat-hplip) said :
#3

Please install the following dependency packages, if not installed.
cups, cups-client, cups-devel, cupsddk, gcc-c++, ghostscript-library, openssl, libjpeg-devel,
net-snmp-devel, glibc, libtool, libgphoto2-devel, libusb-1_0-devel, libusb-1_0-0, make, python-imaging, python-qt, python-qt4, dbus-1-python-devel, dbus-1-python, python-devel, python-xml, python, sane, sane-backends, xsane, sane-frontends, dbus-1-devel, python-gobject2, python-xml, python-notify.

Hope this Helps,
Naga Samrat.

Revision history for this message
Andreas Hölscher (mail-andreas-hoelscher) said :
#4

All these modules are allready installed.
I always get this:
RuntimeError: the sip module implements API v7.0 but the PyQt4.QtCore module requires API v6.0

Revision history for this message
Naga Samrat Chowdary, Narla (samrat-hplip) said :
#5

error message is showing, you have not installed python-qt4 package.

hope this helps,
Naga Samrat Chowdary.

Revision history for this message
Andreas Hölscher (mail-andreas-hoelscher) said :
#6

package python-qt4 is installed:

/home/ah # rpm -qa|grep python-qt4
python-qt4-4.6.1-1.1.1.i586

Revision history for this message
Naga Samrat Chowdary, Narla (samrat-hplip) said :
#7

Can you please re-install hplip-3.9.12.
Please download the auto-installer from the following link.
http://hplipopensource.com/hplip-web/install.html

instructions for auto installer are available in the following link.
http://hplipopensource.com/hplip-web/install/install/index.html

Thank you for supporting HPLIP,
Naga Samrat Chowdary.

Revision history for this message
Andreas Hölscher (mail-andreas-hoelscher) said :
#8

I re-installed hp-lip but same behavior as before

Revision history for this message
Andreas Hölscher (mail-andreas-hoelscher) said :
#9

I found a similar problem description here: http://bugs.calibre-ebook.com/ticket/4612.

I downgraded python-sip-4.10-36.1.i586 to python-sip-4.9.1-1.1.1.i586, now hp-lip is working again.

Thank you for your help,
Andreas

Revision history for this message
Naga Samrat Chowdary, Narla (samrat-hplip) said :
#10

Thanks for your report, we will make a note of it.

Thank you for reporting with HPLIP,
Naga Samrat Chowdary.