hal_lpadmin crashed with ImportError in <module>()

Bug #291035 reported by Jim
84
This bug affects 6 people
Affects Status Importance Assigned to Milestone
python-support (Ubuntu)
Invalid
High
Unassigned

Bug Description

Binary package hint: hal-cups-utils

no clue. it's your bug reporting tools bothers.

ProblemType: Crash
Architecture: i386
DistroRelease: Ubuntu 8.10
ExecutablePath: /usr/lib/hal/scripts/hal_lpadmin
InterpreterPath: /usr/bin/python2.5
NonfreeKernelModules: nvidia
Package: hal-cups-utils 0.6.17+git20080728-0ubuntu2
ProcAttrCurrent: unconfined
ProcCmdline: /usr/bin/python /usr/lib/hal/scripts/hal_lpadmin --add
ProcEnviron: PATH=/sbin:/usr/sbin:/bin:/usr/bin:/usr/lib/hal:/usr/lib/hal/scripts:/usr/bin
PythonArgs: ['/usr/lib/hal/scripts/hal_lpadmin', '--add']
SourcePackage: hal-cups-utils
Title: hal_lpadmin crashed with ImportError in <module>()
Traceback:
 Traceback (most recent call last):
   File "/usr/lib/hal/scripts/hal_lpadmin", line 2, in <module>
     import dbus, sys, os, time, signal, re, usb
 ImportError: No module named usb
Uname: Linux 2.6.24-19-generic i686
UserGroups: pulse pulse-access pulse-rt

Tags: apport-crash
Revision history for this message
Jim (jdblaich) wrote :
Revision history for this message
Apport retracing service (apport) wrote : Possible regression detected

This crash has the same stack trace characteristics as bug #177567. However, the latter was already fixed in an earlier package version than the one in this report. This might be a regression or because the problem is in a dependent package.

Revision history for this message
Till Kamppeter (till-kamppeter) wrote :

The "usb" Python module comes from the python-usb package and this package is required by hal-cups-utils in Intrepid.

So for me it looks like that something in your system is broken.

Changed in hal-cups-utils:
status: New → Invalid
Revision history for this message
Martin Kossick (hacktick) wrote :

Reopening since we got two new duplicates, this seems to affect Jaunty.

Changed in hal-cups-utils:
status: Invalid → Confirmed
Revision history for this message
Till Kamppeter (till-kamppeter) wrote :

Please update the python-usb package to the newest version, it had to be adapted to Python 2.6.

Changed in hal-cups-utils:
status: Confirmed → Fix Released
Revision history for this message
Till Kamppeter (till-kamppeter) wrote :

Can you run

sudo /var/lib/dpkg/info/python-cups
sudo /var/lib/dpkg/info/python-cupshelpers
sudo /var/lib/dpkg/info/python-usb

and see whether this solves the problem? In this case this bug would be the same as bug 335543.

Revision history for this message
Till Kamppeter (till-kamppeter) wrote :

Correction, can you run

sudo /var/lib/dpkg/info/python-cups.postinst
sudo /var/lib/dpkg/info/python-cupshelpers.postinst
sudo /var/lib/dpkg/info/python-usb.postinst

and see whether this solves the problem? In this case this bug would be the same as bug 335543.

Revision history for this message
Till Kamppeter (till-kamppeter) wrote :

Looks like a problem in with the transition to Python 2.6 in python-central, according to IRC discussion with mvo and DktrKranz.

Changed in hal-cups-utils:
status: Fix Released → New
Changed in python-central:
status: New → Incomplete
Revision history for this message
Matthias Klose (doko) wrote :

why should it be a python-central error, if the usb module cannot be imported, which is managed by python-support?

Revision history for this message
Till Kamppeter (till-kamppeter) wrote :

It seems that for the transition to Python 2.6 the post-install script of all Python libraries needs to be re-run (see also bug 335543). I do not know which package would be responsible for doing this on an update from Intrepid to Jaunty. I move it to python-support now. Perhaps it can be also the python package itself.

Changed in python-support (Ubuntu):
importance: Undecided → High
milestone: none → ubuntu-9.04-beta
Revision history for this message
Martin Mai (mrkanister-deactivatedaccount-deactivatedaccount) wrote :
Changed in python-support (Ubuntu):
status: Incomplete → Invalid
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Duplicates of this bug

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.