hal_lpadmin reports cups error incorrectly
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
hal-cups-utils (Ubuntu) |
Fix Released
|
Undecided
|
Unassigned |
Bug Description
Binary package hint: hal-cups-utils
I don't care much about this error or cups, as I am actually trying to use a usb/parallel convertor to control electronics. But there is what looks like a typo in the python code:
Nov 5 20:00:06 score kernel: [1031822.460000] usb 1-2: new full speed USB device using uhci_hcd and address 13
Nov 5 20:00:06 score kernel: [1031822.664000] usb 1-2: configuration #1 chosen from 1 choice
Nov 5 20:00:06 score NetworkManager: <debug> [1194321606.296508] nm_hal_
Nov 5 20:00:06 score kernel: [1031822.704000] drivers/
Nov 5 20:00:06 score NetworkManager: <debug> [1194321606.386101] nm_hal_
Nov 5 20:00:06 score NetworkManager: <debug> [1194321606.596959] nm_hal_
Nov 5 20:00:07 score hal_lpadmin: Unable to connect to CUPS: 'httpConnection
Nov 5 20:00:07 score hal_lpadmin: File "/usr/lib/
Nov 5 20:00:07 score hal_lpadmin: File "/usr/lib/
Nov 5 20:00:07 score hal_lpadmin: File "/usr/lib/
Nov 5 20:00:07 score hal_lpadmin: File "/usr/lib/
Nov 5 20:00:07 score hal_lpadmin: AttributeError: 'module' object has no attribute 'exit'
/usr/lib/
15 except RuntimeError, e:
16 syslog (LOG_ERR,
17 "Unable to connect to CUPS: '%s'. Is CUPS running?" % e)
18 os.exit (1)
line 18 should probably say "sys.exit(1)"
Related branches
Changed in hal-cups-utils: | |
status: | New → Fix Committed |
hal-cups-utils (0.6.13+ svn86-0ubuntu1) hardy; urgency=low
* New upstream release
case-insensitiv e (LP: #150219). patches/ 01_interpreter_ path.patch: Regenerated.
o Subversion snapshot r86
o Use "lsusb" and "hp-makeuri" instead of "hp-probe" and "hp-info", this
needs less I/O.
o Fork the creation of the print queue into a sub-process. This is
needed as on detection of an HP LaserJet 1018/1020 HPLIP loads
(triggered by UDEV) the firmware into the printer and this uncouples
the printer from the usblp kernel module. This lets HAL assume that
the printer got disconnected and HAL kills the hal_lpadmin process
which creates the queue. The child process does not get killed so
that this is the only solution to get a queue automatically created
for these printers.
o Do only one notification at the tray icon when a new printer got set
up, also if it needs two queues (printer and fax). Otherwise the tray
icon will disappear on clicking the first notification and the second
one appears without icon.
o Replaced a wrong "os.exit()" by "sys.exit()" (LP: #160386).
o Made check for removal of manufacturer name from model name
o Let hal_admin not fail if "lsusb" or "hp-makeuri" are not installed.
Simply do not use HPLIP URIs then.
* debian/
* debian/control: Added dependency on python-cups (LP: #144586).
* debian/control: Added "Recommends: hplip, usbutils". These are needed
to automatically set up print queues with HPLIP.
-- Till Kamppeter <email address hidden> Fri, 07 Dec 2007 20:49:31 +0000