[Pkg-hpijs-devel] Bug#525556: hplip: hp-toolbox crash with "ImportError: No module named qt"

Anders Boström anders at bostrom.dyndns.org
Sat Apr 25 13:31:01 UTC 2009


Package: hplip
Version: 3.9.2-3
Severity: important

hp-toolbox isn't working, I get the following crash every time.

eckert:/home/anders>hp-toolbox

HP Linux Imaging and Printing System (ver. 3.9.2)
HP Device Manager ver. 15.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-toolbox", line 246, in <module>
    from ui4.devmgr5 import DevMgr5
  File "/usr/share/hplip/ui4/devmgr5.py", line 45, in <module>
    from dbus.mainloop.qt import DBusQtMainLoop
ImportError: No module named qt
eckert:/home/anders>

And, this is not a duplicate of bug #520789, I've already
python-qt4-dbus version 4.4.2-4 installed. 

/ Anders

-- Package-specific info:
error: Version: (Not available. CUPS may not be installed or not running.)
error: NOT FOUND! This is a REQUIRED/RUNTIME ONLY dependency. Please make sure that this dependency is installed before installing or running HPLIP.
error: NOT FOUND! This is a REQUIRED/RUNTIME ONLY dependency. Please make sure that this dependency is installed before installing or running HPLIP.

HP Linux Imaging and Printing System (ver. 3.9.2)
Dependency/Version Check Utility ver. 14.1

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.

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 eckert.bostrom.dyndns.org 2.6.27.20 #1 SMP Thu Mar 19 23:10:30 CET 2009 x86_64 GNU/Linux

Distribution:
debian 5.0.1

HPOJ running?
No, HPOJ is not running (OK).

Checking Python version...
OK, version 2.5.4 installed

Checking PyQt 4.x version...
OK, version 4.4.2 installed.

Checking for CUPS...
Status: schemaläggare körs

Checking for dbus/python-dbus...
dbus daemon is running.
python-dbus version: 0.83.0


------------------------
| RUNTIME DEPENDENCIES |
------------------------


Checking for dependency: CUPS - Common Unix Printing System...
OK, found.

Checking for dependency: CUPS DDK - CUPS driver development kit...
OK, found.

Checking for dependency: GhostScript - PostScript and PDF language interpreter and previewer...
OK, found.

Checking for dependency: PIL - Python Imaging Library (required for commandline scanning with hp-scan)...
OK, found.

Checking for dependency: ppdev - Parallel port support kernel module....

Checking for dependency: PyQt 4- Qt interface for Python (for Qt version 4.x)...
OK, found.

Checking for dependency: PyQt 4 DBus - DBus Support for PyQt4...

Checking for dependency: Python ctypes - A foreign function library for Python...
OK, found.

Checking for dependency: Python DBus - Python bindings for DBus...
OK, found.

Checking for dependency: Python XML libraries...
OK, found.

Checking for dependency: Python 2.3 or greater - Required for fax functionality...
OK, found.

Checking for dependency: Reportlab - PDF library for Python...
OK, found.

Checking for dependency: SANE - Scanning library...
OK, found.

Checking for dependency: scanimage - Shell scanning program...
OK, found.

Checking for dependency: xsane - Graphical scanner frontend for SANE...
OK, found.


----------------------
| HPLIP INSTALLATION |
----------------------


Currently installed HPLIP version...
HPLIP 3.9.2 currently installed in '/usr/share/hplip'.

Current contents of '/etc/hp/hplip.conf' file:
# hplip.conf.  Generated from hplip.conf.in by configure.

[hplip]
version=3.9.2

[dirs]
home=/usr/share/hplip
run=/var/run
ppd=/usr/share/ppd/hpijs/HP
ppdbase=/usr/share/ppd/hpijs
doc=/usr/share/doc/hplip-doc/HTML
icon=no
cupsbackend=/usr/lib/cups/backend
cupsfilter=/usr/lib/cups/filter
drv=/usr/share/cups/drv

# Following values are determined at configure time and cannot be changed.
[configure]
network-build=yes
pp-build=yes
gui-build=yes
scanner-build=yes
fax-build=yes
dbus-build=yes
cups11-build=no
doc-build=yes
shadow-build=no
foomatic-drv-install=yes
foomatic-ppd-install=no
foomatic-rip-hplip-install=no
internal-tag=3.9.2.49
restricted-build=no
ui-toolkit=qt4
qt3=no
qt4=yes




Current contents of '~/.hplip/hplip.conf' file:
[last_used]
device_uri = hp:/usb/PSC_750?serial=HU1BGCT0M6WB

[installation]
version = 3.9.2.49
date_time = 04/25/09 15:25:44



-------------------------------
| DISCOVERerror: 'ppdev' kernel module not loaded.
warning: No queues found.
error: 3 errors and/or warnings.
ED PARALLEL DEVICES |
-------------------------------

No devices found.

--------------------------
| DISCOVERED USB DEVICES |
--------------------------

  Device URI                 Model       
  -------------------------  ------------
  hp:/usb/PSC_750?serial=HU  HP PSC 750  
  1BGCT0M6WB                             

---------------------------------
| INSTALLED CUPS PRINTER QUEUES |
---------------------------------



----------------------
| SANE CONFIGURATION |
----------------------

'hpaio' in '/etc/sane.d/dll.conf'...
'hpaio' in '/etc/sane.d/dll.d/hplip'...
OK, found. SANE backend 'hpaio' is properly set up.

Checking output of 'scanimage -L'...
device `hpaio:/usb/PSC_750?serial=HU1BGCT0M6WB' is a Hewlett-Packard PSC_750 all-in-one


---------------------
| PYTHON EXTENSIONS |
---------------------

Checking 'cupsext' CUPS extension...
OK, found.

Checking 'pcardext' Photocard extension...
OK, found.

Checking 'hpmudext' I/O extension...
OK, found.

Checking 'scanext' SANE scanning extension...
OK, found.


-----------------
| USB I/O SETUP |
-----------------


Checking for permissions of USB attached printers...

HP Device 0x1411 at 006:002: 
    Device URI: hp:/usb/PSC_750?serial=HU1BGCT0M6WB
    Device node: /dev/bus/usb/006/002
    Mode: 0664
getfacl: Removing leading '/' from absolute path names
# file: dev/bus/usb/006/002
# owner: root
# group: lp
user::rw-
group::rw-
other::r--



-----------
| SUMMARY |
-----------


Please refer to the installation instructions at:
http://hplip.sourceforge.net/install/index.html


Done.

-- System Information:
Debian Release: squeeze/sid
  APT prefers testing
  APT policy: (500, 'testing'), (500, 'stable'), (51, 'testing-proposed-updates'), (50, 'unstable'), (40, 'experimental')
Architecture: i386 (x86_64)

Kernel: Linux 2.6.27.20 (SMP w/2 CPU cores)
Locale: LANG=sv_SE.UTF-8, LC_CTYPE=sv_SE.UTF-8 (charmap=UTF-8) (ignored: LC_ALL set to sv_SE.UTF-8)
Shell: /bin/sh linked to /bin/bash

Versions of packages hplip depends on:
ii  adduser                    3.110         add and remove users and groups
ii  coreutils                  7.2-1         The GNU core utilities
ii  cups                       1.3.8-1lenny5 Common UNIX Printing System(tm) - 
ii  hplip-data                 3.9.2-3       HP Linux Printing and Imaging - da
ii  libc6                      2.9-4         GNU C Library: Shared libraries
ii  libcups2                   1.3.8-1lenny5 Common UNIX Printing System(tm) - 
ii  libdbus-1-3                1.2.12-1      simple interprocess messaging syst
ii  libsane                    1.0.19-26     API library for scanners
ii  libsnmp15                  5.4.1~dfsg-12 SNMP (Simple Network Management Pr
ii  libssl0.9.8                0.9.8g-16     SSL shared libraries
ii  libusb-0.1-4               2:0.1.12-13   userspace USB programming library
ii  lsb-base                   3.2-22        Linux Standard Base 3.2 init scrip
ii  python                     2.5.4-2       An interactive high-level object-o
ii  python-dbus                0.83.0-1      simple interprocess messaging syst
ii  python-imaging             1.1.6-3       Python Imaging Library

Versions of packages hplip recommends:
ii  cups-client                1.3.8-1lenny5 Common UNIX Printing System(tm) - 
ii  hpijs                      3.9.2-3       HP Linux Printing and Imaging - gs
ii  sane-utils                 1.0.19-26     API library for scanners -- utilit

Versions of packages hplip suggests:
ii  gtklp               1.2.3-1.1            printing tool for CUPS on the GNOM
ii  hplip-doc           3.9.2-3              HP Linux Printing and Imaging - do
ii  hplip-gui           3.9.2-3              HP Linux Printing and Imaging - GU
ii  kdeprint            4:3.5.10.dfsg.1-2    print system for KDE
pn  openprinting-ppds   <none>               (no description available)
ii  xpp                 1.5-cvs20050828-1+b2 X Printing Panel

-- no debconf information





More information about the Pkg-hpijs-devel mailing list