[jaunty] Cannot add a printer

Bug #333727 reported by Artem Popov
66
This bug affects 2 people
Affects Status Importance Assigned to Milestone
System Config Printer
Fix Released
Medium
system-config-printer (Ubuntu)
Fix Released
Medium
Unassigned

Bug Description

Binary package hint: system-config-printer

When I attempt to add a printer in Jaunty's system-config-printer, the following error is happening:

$ system-config-printer
Traceback (most recent call last):
  File "/usr/share/system-config-printer/system-config-printer.py", line 3318, in on_new_printer_activate
    self.newPrinterGUI.init("printer")
  File "/usr/share/system-config-printer/system-config-printer.py", line 3730, in init
    self.fillDeviceTab()
  File "/usr/share/system-config-printer/system-config-printer.py", line 4928, in fillDeviceTab
    device_select_path = model.get_path (iter)
UnboundLocalError: local variable 'iter' referenced before assignment
Error in sys.excepthook:
Traceback (most recent call last):
  File "/usr/lib/python2.5/site-packages/apport_python_hook.py", line 85, in apport_excepthook
    os.O_WRONLY|os.O_CREAT|os.O_EXCL), 'w')
OSError: [Errno 17] File exists: '/var/crash/_usr_share_system-config-printer_system-config-printer.py.1000.crash'

Original exception was:
Traceback (most recent call last):
  File "/usr/share/system-config-printer/system-config-printer.py", line 3318, in on_new_printer_activate
    self.newPrinterGUI.init("printer")
  File "/usr/share/system-config-printer/system-config-printer.py", line 3730, in init
    self.fillDeviceTab()
  File "/usr/share/system-config-printer/system-config-printer.py", line 4928, in fillDeviceTab
    device_select_path = model.get_path (iter)
UnboundLocalError: local variable 'iter' referenced before assignment

Revision history for this message
In , antonio (antonio-redhat-bugs) wrote :

Description of problem:
When I try to add a printer it asks for root password and then idles

Version-Release number of selected component (if applicable):
system-config-printer-1.1.4-1.fc11.i586

How reproducible:
always

Steps to Reproduce:
1.open system-config-printer
2.add a new printer
3.root login

Actual results:
idles

Expected results:
it should continue process with new windows

Additional info:

another rawhide system on same network with same release of component work fine.

Revision history for this message
In , antonio (antonio-redhat-bugs) wrote :

I issued system-config-printer in a terminal.
Have a look to the output.Tnx

su
Password:
[root@AcerF10 antonio]# system-config-printer

(system-config-printer.py:3487): GVFS-RemoteVolumeMonitor-WARNING **: cannot connect to the session bus: org.freedesktop.DBus.Error.NoReply: Did not receive a reply. Possible causes include: the remote application did not send a reply, the message bus security policy blocked the reply, the reply timeout expired, or the network connection was broken.

(system-config-printer.py:3487): GVFS-RemoteVolumeMonitor-WARNING **: cannot connect to the session bus: org.freedesktop.DBus.Error.NoReply: Did not receive a reply. Possible causes include: the remote application did not send a reply, the message bus security policy blocked the reply, the reply timeout expired, or the network connection was broken.
Traceback (most recent call last):
  File "/usr/share/system-config-printer/system-config-printer.py", line 3318, in on_new_printer_activate
    self.newPrinterGUI.init("printer")
  File "/usr/share/system-config-printer/system-config-printer.py", line 3730, in init
    self.fillDeviceTab()
  File "/usr/share/system-config-printer/system-config-printer.py", line 4928, in fillDeviceTab
    device_select_path = model.get_path (iter)
UnboundLocalError: local variable 'iter' referenced before assignment

Revision history for this message
In , Tim (tim-redhat-bugs) wrote :

Oops, sorry. Fixed in system-config-printer-1.1.4-2.fc11. Thanks for reporting it.

Changed in system-config-printer:
status: Unknown → Fix Released
Changed in system-config-printer:
importance: Undecided → Medium
status: New → Triaged
Revision history for this message
Till Kamppeter (till-kamppeter) wrote :

Tim, we are after feature freeze now, can you post a patch or a reference to the appropriate patch in the Git repository? Thanks.

Revision history for this message
Tim Waugh (twaugh) wrote :

I always include bug numbers in the commit log when fixing a reported bug, so you just need to search for that. In this case, RH bugzilla bug #486587 is the one to search for:

$ git log --grep=486587
commit 051bc7f077ebc6a64bc984f4e5ce355a3e4ed4b5
Author: Tim Waugh <email address hidden>
Date: Fri Feb 20 15:34:29 2009 +0000

    Fixed bug introduced in commit e5243a7 (bug #486587).

Revision history for this message
Sergio Zanchetta (primes2h) wrote :
Revision history for this message
Sergio Zanchetta (primes2h) wrote :

Just a note.
This bug prevents me from translating system-config-printer, because I can't check where strings are due to the impossibility of adding a printer.
I hope it'll be fixed very soon. :-)

Revision history for this message
Dmitry Tantsur (divius) wrote :

Hi!

Jaunty, system-config-printer 1.1.3+git20090218 does nothing after clicking "Add" button. "Looking for printers" window appears and disappears after a while (there's no printer connected, I want to add a network printer).

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

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

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

  * debian/patches/01_delay_autostart.patch: Redirect stdout of the system
    tray applet to /dev/null, as otherwise it comes to crashes (LP: #153610).

  * debian/patches/30_new-printer-unboundlocalerror.patch: Upstream fix
    for crash when adding new printer (LP: #333727).

 -- Till Kamppeter <email address hidden> Mon, 9 Mar 2009 10:10:47 +0100

Changed in system-config-printer:
status: Triaged → Fix Released
Changed in system-config-printer:
importance: Unknown → Medium
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.