[apport] toolbox crashed with NameError in StatusType6()

Bug #99326 reported by Greg Aumann
20
Affects Status Importance Assigned to Milestone
hplip (Ubuntu)
Fix Released
Undecided
Unassigned

Bug Description

Binary package hint: hplip

in Feisty beta with all updates from 31 March 2007

tried to run HPLIP Toolbox from System > Preferences menu but it didn't work. When I tried hplip-toolbox from a terminal it gave the following error:
greg@tux:~$ hp-toolbox
error: PyQt not installed. GUI not available. Exiting.
error: PyQt/Qt initialization error. Please check install of PyQt/Qt and try again.

so I install python-qt3 and ran it again when it gave this error:

greg@tux:~$ hp-toolbox

HP Linux Imaging and Printing System (ver. 1.7.1)
HP Device Manager ver. 7.0

Copyright (c) 2003-6 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.

X Error: BadDevice, invalid or uninitialized input device 169
  Major opcode: 145
  Minor opcode: 3
  Resource id: 0x0
Failed to open device
X Error: BadDevice, invalid or uninitialized input device 169
  Major opcode: 145
  Minor opcode: 3
  Resource id: 0x0
Failed to open device
Traceback (most recent call last):
  File "/usr/lib/hplip/ui/devmgr4.py", line 707, in autoRefresh_toggled
    self.SaveConfig()
  File "/usr/lib/hplip/ui/devmgr4.py", line 1610, in SaveConfig
    user_cfg.commands.prnt = self.cmd_print
  File "/usr/lib/hplip/base/g.py", line 80, in __setattr__
    f = file(self.filename, 'w')
IOError: [Errno 13] Permission denied: '/home/greg/.hplip.conf'
Traceback (most recent call last):
  File "/usr/lib/hplip/ui/devmgr4.py", line 686, in InitialUpdate
    self.RescanDevices()
  File "/usr/lib/hplip/ui/devmgr4.py", line 718, in RescanDevices
    self.DeviceListRefresh()
  File "/usr/lib/hplip/ui/devmgr4.py", line 949, in DeviceListRefresh
    dev.queryDevice(quick=True) #, no_fwd=True)
  File "/usr/lib/hplip/base/device.py", line 1319, in queryDevice
    status_block = status.StatusType6(self)
  File "/usr/lib/hplip/base/status.py", line 983, in StatusType6
    print repr(e)
NameError: global name 'e' is not defined

ProblemType: Crash
Architecture: i386
Date: Sat Mar 31 16:19:14 2007
DistroRelease: Ubuntu 7.04
ExecutablePath: /usr/lib/hplip/toolbox
InterpreterPath: /usr/bin/python2.5
Package: hplip 1.7.1-1ubuntu2
PackageArchitecture: i386
ProcCmdline: python /usr/bin/hp-toolbox
ProcCwd: /home/greg
ProcEnviron:
 SHELL=/bin/bash
 PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games
 LANG=en_US.UTF-8
PythonArgs: ['/usr/bin/hp-toolbox']
SourcePackage: hplip
Uname: Linux tux 2.6.20-13-generic #2 SMP Sun Mar 25 00:21:25 UTC 2007 i686 GNU/Linux

Revision history for this message
Greg Aumann (greg-aumann) wrote :
Revision history for this message
Till Kamppeter (till-kamppeter) wrote :

This is fixed in HPLIP 1.7.3. Please do

sudo rm /home/greg/.hplip.conf

and then do the regression testing described in the second posting of bug 98520 and report your results there. Thank you.

Changed in hplip:
status: Unconfirmed → Fix Committed
Revision history for this message
Greg Aumann (greg-aumann) wrote :

Tested HPLIP 1.7.3 packages and agree this bug is fixed. More comments in bug 98520

Changed in hplip:
status: Fix Committed → Fix Released
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.