system-config-printer.py crashed with UnboundLocalError in on_tvNPDevices_cursor_changed()

Bug #435740 reported by ShaneK
48
This bug affects 7 people
Affects Status Importance Assigned to Milestone
system-config-printer (Ubuntu)
Fix Released
Critical
Unassigned

Bug Description

Binary package hint: system-config-printer

Karmic Koala

Expected to be able to add a network printer and print.

Crashes on locating step.

ProblemType: Crash
Architecture: amd64
Date: Thu Sep 24 04:43:58 2009
DistroRelease: Ubuntu 9.10
ExecutablePath: /usr/share/system-config-printer/system-config-printer.py
InterpreterPath: /usr/bin/python2.6
Lpstat: Error: command ['lpstat', '-v'] failed with exit code 1: lpstat: No destinations added.
MachineType: Gateway ML6732
Package: system-config-printer-gnome 1.1.12+git20090826-0ubuntu3
PackageArchitecture: all
Papersize: letter
ProcCmdLine: BOOT_IMAGE=/boot/vmlinuz-2.6.31-10-generic root=UUID=b1fe2277-fb1d-4bc2-8f7a-c4395409ea27 ro quiet splash
ProcCmdline: python /usr/share/system-config-printer/system-config-printer.py
ProcEnviron:
 LANG=en_US.UTF-8
 SHELL=/bin/bash
ProcVersionSignature: Ubuntu 2.6.31-10.35-generic
PythonArgs: ['/usr/share/system-config-printer/system-config-printer.py']
SourcePackage: system-config-printer
Title: system-config-printer.py crashed with UnboundLocalError in on_tvNPDevices_cursor_changed()
Traceback:
 Traceback (most recent call last):
   File "/usr/share/system-config-printer/system-config-printer.py", line 5662, in on_tvNPDevices_cursor_changed
     if host == None and device.type in ["socket", "lpd", "ipp"]:
 UnboundLocalError: local variable 'host' referenced before assignment
Uname: Linux 2.6.31-10-generic x86_64
UserGroups: adm admin cdrom dialout lpadmin plugdev sambashare
dmi.bios.date: 03/24/2008
dmi.bios.vendor: Phoenix Technologies LTD
dmi.bios.version: 93.13
dmi.board.vendor: Gateway
dmi.board.version: 93.13
dmi.chassis.asset.tag: No Asset Tag
dmi.chassis.type: 8
dmi.chassis.vendor: Gateway
dmi.chassis.version: Rev.1
dmi.modalias: dmi:bvnPhoenixTechnologiesLTD:bvr93.13:bd03/24/2008:svnGateway:pnML6732:pvr3410125R:rvnGateway:rn:rvr93.13:cvnGateway:ct8:cvrRev.1:
dmi.product.name: ML6732
dmi.product.version: 3410125R
dmi.sys.vendor: Gateway

Revision history for this message
ShaneK (shane-kravec) wrote :
tags: removed: need-duplicate-check
visibility: private → public
Changed in system-config-printer (Ubuntu):
status: New → In Progress
Revision history for this message
Till Kamppeter (till-kamppeter) wrote :

Please apply the attached patch with

sudo patch -p4 < unboundlocalerror-in-on_tvnpdevices_cursor_changed-lp435740.patch

Please test whether this fixes the problem.

Please also have a look at bug 436218.

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

Sorry, must be

sudo patch -p0 < unboundlocalerror-in-on_tvnpdevices_cursor_changed-lp435740.patch

Changed in system-config-printer (Ubuntu):
milestone: none → ubuntu-9.10-beta
status: In Progress → Fix Committed
importance: Undecided → Critical
Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package system-config-printer - 1.1.12+git20090826-0ubuntu4

---------------
system-config-printer (1.1.12+git20090826-0ubuntu4) karmic; urgency=low

  * debian/patches/57_backend-integration-dnssd-bluetooth.patch: Fixed crash
    which prevents from changing of make/model/driver/PPD of an existing print
    queue (LP: #436218).
  * debian/patches/60_conserve-device-id-for-search-and-queue-name.patch:
    Fixed crash which prevents setting up a network printer (LP: #435740).

 -- Till Kamppeter <email address hidden> Fri, 25 Sep 2009 18:38:09 +0200

Changed in system-config-printer (Ubuntu):
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.