system-config-printer.py crashed with AttributeError in on_printer_removed(): 'NoneType' object has no attribute 'name'

Bug #741449 reported by Ant
20
This bug affects 2 people
Affects Status Importance Assigned to Milestone
system-config-printer (Ubuntu)
Fix Released
Undecided
Unassigned

Bug Description

Binary package hint: system-config-printer

Trying to Add/Install Brother MFC7220 print drivers. Error appears following the deletion of an added printer.

ProblemType: Crash
DistroRelease: Ubuntu 11.04
Package: system-config-printer-gnome 1.3.1+20110222-0ubuntu10
ProcVersionSignature: Ubuntu 2.6.38-7.38-generic 2.6.38
Uname: Linux 2.6.38-7-generic x86_64
Architecture: amd64
Date: Thu Mar 24 14:15:38 2011
ExecutablePath: /usr/share/system-config-printer/system-config-printer.py
InstallationMedia: Ubuntu 11.04 "Natty Narwhal" - Alpha amd64 (20110322.1)
InterpreterPath: /usr/bin/python2.7
Lpstat: Error: command ['lpstat', '-v'] failed with exit code 1: lpstat: No destinations added.
MachineType: TOSHIBA PORTEGE M800
Papersize: a4
ProcCmdline: /usr/bin/python /usr/share/system-config-printer/system-config-printer.py
ProcEnviron:
 LANGUAGE=en_AU:en
 LANG=en_AU.UTF-8
 SHELL=/bin/bash
ProcKernelCmdLine: BOOT_IMAGE=/vmlinuz-2.6.38-7-generic root=UUID=c0ceec1f-3f29-4139-95ee-b5211faf9ba2 ro rootflags=subvol=@ quiet splash vt.handoff=7
PythonArgs: ['/usr/share/system-config-printer/system-config-printer.py']
SourcePackage: system-config-printer
Title: system-config-printer.py crashed with AttributeError in on_printer_removed(): 'NoneType' object has no attribute 'name'
Traceback:
 Traceback (most recent call last):
   File "/usr/share/system-config-printer/printerproperties.py", line 1789, in on_printer_removed
     if self.printer.name == printer:
 AttributeError: 'NoneType' object has no attribute 'name'
UpgradeStatus: No upgrade log present (probably fresh install)
UserGroups: adm admin cdrom dialout lpadmin plugdev sambashare
dmi.bios.date: 01/08/2009
dmi.bios.vendor: TOSHIBA
dmi.bios.version: V3.20
dmi.board.name: PORTEGE M800
dmi.board.vendor: TOSHIBA
dmi.board.version: Not Applicable
dmi.chassis.asset.tag: No Asset Tag
dmi.chassis.type: 10
dmi.chassis.vendor: TOSHIBA
dmi.chassis.version: N/A
dmi.modalias: dmi:bvnTOSHIBA:bvrV3.20:bd01/08/2009:svnTOSHIBA:pnPORTEGEM800:pvrPPM81A-08S01S:rvnTOSHIBA:rnPORTEGEM800:rvrNotApplicable:cvnTOSHIBA:ct10:cvrN/A:
dmi.product.name: PORTEGE M800
dmi.product.version: PPM81A-08S01S
dmi.sys.vendor: TOSHIBA

Revision history for this message
Ant (anthonyvigh) wrote :
tags: removed: need-duplicate-check
visibility: private → public
Revision history for this message
Till Kamppeter (till-kamppeter) wrote :

Fixed upstream in GIT revision e046f1d34. Thanks to Tim Waugh for the quick fix.

Changed in system-config-printer (Ubuntu):
status: New → In Progress
Changed in system-config-printer (Ubuntu):
status: In Progress → Fix Committed
Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package system-config-printer - 1.3.1+20110222-0ubuntu11

---------------
system-config-printer (1.3.1+20110222-0ubuntu11) natty; urgency=low

  * When creating a printer, opening its "Properties" dialog, closing the
    dialog again, and deleting the printer a traceback happens (LP: #741449).
 -- Till Kamppeter <email address hidden> Fri, 25 Mar 2011 14:00:00 +0100

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.