system-config-printer.py crashed with NameError in on_shared_activate()

Bug #324012 reported by Marco Simonelli
32
This bug affects 2 people
Affects Status Importance Assigned to Milestone
system-config-printer (Ubuntu)
Fix Released
High
Unassigned

Bug Description

Binary package hint: system-config-printer

when i have closed, it has crashed

ProblemType: Crash
Architecture: i386
DistroRelease: Ubuntu 9.04
ExecutablePath: /usr/share/system-config-printer/system-config-printer.py
InterpreterPath: /usr/bin/python2.5
Package: system-config-printer-gnome 1.1.2+git20090125-0ubuntu1
PackageArchitecture: all
ProcCmdline: python /usr/share/system-config-printer/system-config-printer.py
ProcEnviron:
 LANG=it_IT.UTF-8
 SHELL=/bin/bash
PythonArgs: ['/usr/share/system-config-printer/system-config-printer.py']
SourcePackage: system-config-printer
Title: system-config-printer.py crashed with NameError in on_shared_activate()
Traceback:
 Traceback (most recent call last):
   File "/usr/share/system-config-printer/system-config-printer.py", line 2973, in on_shared_activate
     self.cups._begin_operation (_("modifying printer %s") % name)
 NameError: global name 'name' is not defined
Uname: Linux 2.6.28-6-generic i686
UserGroups: adm admin audio cdrom dialout dip floppy fuse lpadmin plugdev video

Tags: apport-crash
Revision history for this message
Marco Simonelli (sumydi) wrote :
Revision history for this message
Nicolas DERIVE (kalon33) wrote :

Confirmed as it was tested by at least two users

Changed in system-config-printer:
status: New → Confirmed
Revision history for this message
Nicolas DERIVE (kalon33) wrote :

It's impossible to change shared status using system-config-printer.

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

I can also confirm this bug. It is principally impossible to change the "Shared" status of a printer by the right-click menu in the main window.

Tim, do you have a patch for that?

Changed in system-config-printer:
importance: Undecided → High
milestone: none → ubuntu-9.04-beta
Revision history for this message
Colin Watson (cjwatson) wrote :

Till: it looks to me as if adding "name = unicode (model.get_value (iter, 2), 'utf-8')" above the offending line would do it; compare with the on_enabled_activate method immediately above.

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

Thank you, this works for me.

Changed in system-config-printer (Ubuntu):
status: Confirmed → In Progress
Revision history for this message
Till Kamppeter (till-kamppeter) wrote :

Upstream has also fixed it, I will take the upstream version.

Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package system-config-printer - 1.1.3+git20090218-0ubuntu9

---------------
system-config-printer (1.1.3+git20090218-0ubuntu9) jaunty; urgency=low

  * debian/patches/45_fix-right-click-menu-shared-command.patch: Upstream fix
    for a crash which prevented from making a printer shared or not shared
    via the right-click menu on the printer icons in the main window
    (LP: #324012).

 -- Till Kamppeter <email address hidden> Wed, 18 Mar 2009 23:05:47 +0100

Changed in system-config-printer:
status: In Progress → 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.