Bug 557695 - Clicking new printer cause s-c-p to traceback..
Summary: Clicking new printer cause s-c-p to traceback..
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Fedora
Classification: Fedora
Component: system-config-printer
Version: 11
Hardware: All
OS: Linux
low
medium
Target Milestone: ---
Assignee: Tim Waugh
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
: 560089 (view as bug list)
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2010-01-22 09:08 UTC by Jóhann B. Guðmundsson
Modified: 2010-02-05 01:35 UTC (History)
3 users (show)

Fixed In Version: 1.1.16-13.fc11
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2010-02-05 01:35:37 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)

Description Jóhann B. Guðmundsson 2010-01-22 09:08:10 UTC
Description of problem:



[johannbg@valhalla ~]$ system-config-printer --debug
Connected as user johannbg
refresh
Created subscription 39
<monitor.Monitor instance at 0x1705cb0>: printers and jobs lists provided
update_jobs
Authentication pass: 1
Authentication: password callback set
Authentication pass: 1
Authentication: password callback set
Authentication pass: 1
Authentication: password callback set
get_notifications
update_jobs
Using PolicyKit (pre-polkit-1) connection class
+<asyncipp._IPPAuthOperation instance at 0x170e830>
New IPPConnection
+<_IPPConnectionThread(Thread-1, initial daemon)>
+<asyncipp.IPPAuthConnection instance at 0x170e7e8>
+<asyncpk0.PK0Connection instance at 0x170e3b0>
+<asyncpk0.PK0Connection instance at 0x170e3b0>
+<asyncconn.Connection object at 0x1704a10>
fetchDevices
Converted ()/{'exclude_schemes': ['dnssd', 'snmp'], 'reply_handler': <bound method _GetDevicesCall._reply_handler of <cupshelpers.cupshelpers._GetDevicesCall object at 0x1704f10>>, 'error_handler': <bound method NewPrinterGUI.error_getting_devices of <__main__.NewPrinterGUI instance at 0x16f0c20>>} to (0, [], ['dnssd', 'snmp'])
+_PK1AsyncMethodCall: <asyncpk0._PK0AsyncMethodCall instance at 0x1715440>
+_PK0AsyncMethodCall: <asyncpk0._PK0AsyncMethodCall instance at 0x1715440>
Calling PK method DevicesGet
Awaiting further instructions
Traceback (most recent call last):
  File "/usr/share/system-config-printer/system-config-printer.py", line 3465, in on_new_printer_activate
    self.newPrinterGUI.init("printer")
  File "/usr/share/system-config-printer/system-config-printer.py", line 3900, in init
    self.fillDeviceTab()
  File "/usr/share/system-config-printer/system-config-printer.py", line 5172, in fillDeviceTab
    self.fetchDevices (network=False, current_uri=current_uri)
  File "/usr/share/system-config-printer/system-config-printer.py", line 4769, in fetchDevices
    error_handler=error_handler)
  File "/usr/lib/python2.6/site-packages/cupshelpers/cupshelpers.py", line 580, in getDevices
    return op.call (connection, kw)
  File "/usr/lib/python2.6/site-packages/cupshelpers/cupshelpers.py", line 552, in call
    return connection.getDevices (**kwds)
  File "/usr/share/system-config-printer/asyncconn.py", line 142, in <lambda>
    return lambda *args, **kwds: fn (*args, **kwds)
  File "/usr/share/system-config-printer/asyncpk1.py", line 330, in getDevices
    self._conn.getDevices, args, kwds)
  File "/usr/share/system-config-printer/asyncpk0.py", line 135, in _call_with_pk
    asyncmethodcall.call ()
  File "/usr/share/system-config-printer/asyncpk1.py", line 72, in call
    object = self._bus.get_object(CUPS_PK_NAME, CUPS_PK_PATH)
  File "/usr/lib/python2.6/site-packages/dbus/bus.py", line 244, in get_object
    follow_name_owner_changes=follow_name_owner_changes)
  File "/usr/lib/python2.6/site-packages/dbus/proxies.py", line 241, in __init__
    self._named_service = conn.activate_name_owner(bus_name)
  File "/usr/lib/python2.6/site-packages/dbus/bus.py", line 183, in activate_name_owner
    self.start_service_by_name(bus_name)
  File "/usr/lib/python2.6/site-packages/dbus/bus.py", line 281, in start_service_by_name
    'su', (bus_name, flags)))
  File "/usr/lib/python2.6/site-packages/dbus/connection.py", line 630, in call_blocking
    message, timeout)
dbus.exceptions.DBusException: org.freedesktop.DBus.Error.ServiceUnknown: The name org.opensuse.CupsPkHelper.Mechanism was not provided by any .service files
Canceled subscription 39
<monitor.Monitor instance at 0x1705cb0> exited
-_PK0AsyncMethodCall: <asyncpk0._PK0AsyncMethodCall instance at 0x1715440>
-_PK1AsyncMethodCall: <asyncpk0._PK0AsyncMethodCall instance at 0x1715440>


Version-Release number of selected component (if applicable):

system-config-printer-1.1.16-8.fc11.x86_64
system-config-printer-libs-1.1.16-8.fc11.x86_64


How reproducible:

Always

Steps to Reproduce:
1. Start s-c-p click new 
2.
3.
  
Actual results:

The above

Expected results:

Unicorns shooting rainbows from their horn surrounded by singing pony's

Additional info:

Comment 1 Jóhann B. Guðmundsson 2010-01-22 09:13:48 UTC
Still present in 1.1.16 from koji

Comment 2 Jóhann B. Guðmundsson 2010-01-22 09:15:00 UTC
Whoops Still present in 1.1.16-10 <-- from koji

Comment 3 Tim Waugh 2010-01-22 09:21:39 UTC
Not sure what version you're trying but please try this one:

https://admin.fedoraproject.org/updates/F11/FEDORA-2010-0776

*** This bug has been marked as a duplicate of bug 556170 ***

Comment 4 Jóhann B. Guðmundsson 2010-01-22 09:45:40 UTC
I used this one http://koji.fedoraproject.org/koji/buildinfo?buildID=151890 which is the latest available build for F11 from koji and it's still present... 

I installed cups-pk-helper as you suggested in bug 556170 and s-c-p tracebacks 

Thou differently now.. 

[johannbg@valhalla ~]$ system-config-printer --debug
Connected as user johannbg
refresh
Created subscription 43
<monitor.Monitor instance at 0x2f3fd88>: printers and jobs lists provided
update_jobs
Authentication pass: 1
Authentication: password callback set
Authentication pass: 1
Authentication: password callback set
Authentication pass: 1
Authentication: password callback set
get_notifications
update_jobs
Using PolicyKit (pre-polkit-1) connection class
+<asyncipp._IPPAuthOperation instance at 0x2f49908>
New IPPConnection
+<_IPPConnectionThread(Thread-1, initial daemon)>
+<asyncipp.IPPAuthConnection instance at 0x2f498c0>Awaiting further instructions

+<asyncpk0.PK0Connection instance at 0x2f49488>
+<asyncpk0.PK0Connection instance at 0x2f49488>
+<asyncconn.Connection object at 0x2f40990>
fetchDevices
Converted ()/{'exclude_schemes': ['dnssd', 'snmp'], 'reply_handler': <bound method _GetDevicesCall._reply_handler of <cupshelpers.cupshelpers._GetDevicesCall object at 0x2f40e90>>, 'error_handler': <bound method NewPrinterGUI.error_getting_devices of <__main__.NewPrinterGUI instance at 0x2f2bcf8>>} to (0, [], ['dnssd', 'snmp'])
+_PK1AsyncMethodCall: <asyncpk0._PK0AsyncMethodCall instance at 0x2f50518>
+_PK0AsyncMethodCall: <asyncpk0._PK0AsyncMethodCall instance at 0x2f50518>
Calling PK method DevicesGet
Traceback (most recent call last):
  File "/usr/share/system-config-printer/system-config-printer.py", line 3465, in on_new_printer_activate
    self.newPrinterGUI.init("printer")
  File "/usr/share/system-config-printer/system-config-printer.py", line 3900, in init
    self.fillDeviceTab()
  File "/usr/share/system-config-printer/system-config-printer.py", line 5172, in fillDeviceTab
    self.fetchDevices (network=False, current_uri=current_uri)
  File "/usr/share/system-config-printer/system-config-printer.py", line 4769, in fetchDevices
    error_handler=error_handler)
  File "/usr/lib/python2.6/site-packages/cupshelpers/cupshelpers.py", line 580, in getDevices
    return op.call (connection, kw)
  File "/usr/lib/python2.6/site-packages/cupshelpers/cupshelpers.py", line 552, in call
    return connection.getDevices (**kwds)
  File "/usr/share/system-config-printer/asyncconn.py", line 142, in <lambda>
    return lambda *args, **kwds: fn (*args, **kwds)
  File "/usr/share/system-config-printer/asyncpk1.py", line 336, in getDevices
    self._conn.getDevices, args, kwds)
  File "/usr/share/system-config-printer/asyncpk0.py", line 135, in _call_with_pk
    asyncmethodcall.call ()
  File "/usr/share/system-config-printer/asyncpk1.py", line 72, in call
    object = self._bus.get_object(CUPS_PK_NAME, CUPS_PK_PATH)
  File "/usr/lib/python2.6/site-packages/dbus/bus.py", line 244, in get_object
    follow_name_owner_changes=follow_name_owner_changes)
  File "/usr/lib/python2.6/site-packages/dbus/proxies.py", line 241, in __init__
    self._named_service = conn.activate_name_owner(bus_name)
  File "/usr/lib/python2.6/site-packages/dbus/bus.py", line 183, in activate_name_owner
    self.start_service_by_name(bus_name)
  File "/usr/lib/python2.6/site-packages/dbus/bus.py", line 281, in start_service_by_name
    'su', (bus_name, flags)))
  File "/usr/lib/python2.6/site-packages/dbus/connection.py", line 630, in call_blocking
    message, timeout)
dbus.exceptions.DBusException: org.freedesktop.DBus.Error.Spawn.ChildExited: Launch helper exited with unknown return code 1
Canceled subscription 43
<monitor.Monitor instance at 0x2f3fd88> exited
-_PK0AsyncMethodCall: <asyncpk0._PK0AsyncMethodCall instance at 0x2f50518>
-_PK1AsyncMethodCall: <asyncpk0._PK0AsyncMethodCall instance at 0x2f50518>

Comment 5 Tim Waugh 2010-01-22 11:17:16 UTC
Ah, this isn't a duplicate after all.  The fix that was already included was for PolicyKit 1.0.  For the old-style PolicyKit code the fix needed to be applied there as well.

Comment 6 Jóhann B. Guðmundsson 2010-01-22 13:49:23 UTC
Confirmed fixed with system-config-printer-1.1.16-11.fc11

Great work.

Comment 7 Fedora Update System 2010-01-22 22:34:46 UTC
system-config-printer-1.1.16-11.fc11 has been pushed to the Fedora 11 testing repository.  If problems still persist, please make note of it in this bug report.
 If you want to test the update, you can install it with 
 su -c 'yum --enablerepo=updates-testing update system-config-printer'.  You can provide feedback for this update here: http://admin.fedoraproject.org/updates/F11/FEDORA-2010-0776

Comment 8 Fedora Update System 2010-01-27 01:04:37 UTC
system-config-printer-1.1.16-13.fc11 has been pushed to the Fedora 11 testing repository.  If problems still persist, please make note of it in this bug report.
 If you want to test the update, you can install it with 
 su -c 'yum --enablerepo=updates-testing update system-config-printer'.  You can provide feedback for this update here: http://admin.fedoraproject.org/updates/F11/FEDORA-2010-0776

Comment 9 Jiri Popelka 2010-01-31 17:47:19 UTC
*** Bug 560089 has been marked as a duplicate of this bug. ***

Comment 10 Scott R. Godin 2010-02-02 16:29:11 UTC
Updated:
  system-config-printer.i586 0:1.1.16-13.fc11                                                                                          

Dependency Updated:
  system-config-printer-libs.i586 0:1.1.16-13.fc11                                                                                     


running s-c-p now does allow the new printer dialog box to run properly.

Comment 12 Fedora Update System 2010-02-05 01:34:51 UTC
system-config-printer-1.1.16-13.fc11 has been pushed to the Fedora 11 stable repository.  If problems still persist, please make note of it in this bug report.


Note You need to log in before you can comment on or make changes to this bug.