You are not logged in.

#1 2013-05-17 15:09:08

Cthulhu82
Member
From: Angers, France
Registered: 2013-04-01
Posts: 149

Wireless printer and system-config-printer

Hello everyone.

I recently (and mistakenly) remove my wireless printer from Gnome printer list, and I cannot add it again any more. When I launch system-config-printer in the terminal, and try to add it, I can see it in the proposal, but cannon add it and obtain this output :

No ID match for device cnijnet:/88-87-17-14-28-F2:
MFG:Canon;MDL:MG5200;
Traceback (most recent call last):
  File "/usr/share/system-config-printer/newprinter.py", line 3425, in on_tvNPMakes_cursor_changed
    self.fillModelList()
  File "/usr/share/system-config-printer/newprinter.py", line 3443, in fillModelList
    text = pmodel + _(" (recommended)")
UnicodeDecodeError: 'ascii' codec can't decode byte 0xc3 in position 11: ordinal not in range(128)
Traceback (most recent call last):
  File "/usr/share/system-config-printer/newprinter.py", line 791, in on_ppdsloader_finished_next
    self.nextNPTab ()
  File "/usr/share/system-config-printer/newprinter.py", line 1405, in nextNPTab
    self.ppd = self.getNPPPD()
  File "/usr/share/system-config-printer/newprinter.py", line 3715, in getNPPPD
    nr = model.get_path(iter)[0]
  File "/usr/lib/python2.7/site-packages/gi/types.py", line 113, in function
    return info.invoke(*args, **kwargs)
TypeError: Argument 1 does not allow None as a value

My printer is a Canon MG 5250, using the Canon drivers (cnij-filters-5200) from AUR. There is no apparent problem of communication with the printer, as I can use the scanner properly.
I tried to recompile the drivers, in case a recent upgrade brokes them, but nothing changed.

Any help will be appreciated smile.

Last edited by Cthulhu82 (2013-05-19 12:44:15)


« En essayant continuellement, on finit par réussir.
Donc plus ça rate, plus ça a de chance de marcher. »
Devise Shadock

Offline

#2 2013-05-18 10:46:53

Cthulhu82
Member
From: Angers, France
Registered: 2013-04-01
Posts: 149

Re: Wireless printer and system-config-printer

And here is the debug log

+<NewPrinterGUI object at 0x23ab6e0 (newprinter+NewPrinterGUI at 0x2861ce0)>
Connected as user damien
+<PrinterPropertiesDialog object at 0x2092820 (printerproperties+PrinterPropertiesDialog at 0x218eee0)>
<authconn.Connection instance at 0x23bd680>: Operation += "R\xc3\xa9cup\xc3\xa9ration des informations de la file d'attente"
Authentication pass: 1
Authentication: password callback set
Authentication pass: 1
Authentication: password callback set
Authentication pass: 1
Authentication: password callback set
<authconn.Connection instance at 0x23bd680>: Operation ended
+<ppdcache.PPDCache instance at 0x20a5518>
refresh
Created subscription 237, events=['printer-added', 'printer-deleted', 'printer-state-changed']
Next notifications fetch in 1s
update_jobs
get_notifications
update_jobs
Next notifications fetch in 60s
Connected as user damien
Authentication pass: 1
Authentication: password callback set
Authentication pass: 1
Authentication: password callback set
No firewall 
Examining firewall
<firewallsettings.SystemConfigFirewall instance at 0x211bf80> in _get_fw_data: _fw_data is (None, None)
Using cached firewall data
<firewallsettings.SystemConfigFirewall instance at 0x211bf80> in _get_fw_data: _fw_data is (None, None)
Using cached firewall data
<firewallsettings.SystemConfigFirewall instance at 0x211bf80> in _get_fw_data: _fw_data is (None, None)
Using cached firewall data
Firewall all OK; fetching devices
Using polkit-1 connection class
+<asyncipp._IPPAuthOperation instance at 0x209c7e8>
New IPPConnection
+<_IPPConnectionThread(Thread-1, initial daemon)>
+<asyncipp.IPPAuthConnection instance at 0x209edd0>
Awaiting further instructions
DevicesGet new API: True
+<asyncpk1.PK1Connection instance at 0x209eea8>
+<asyncconn.Connection object at 0x1e30990>
fetchDevices
+<asyncconn._AsyncMethodCall instance at 0x2d95e18>
<asyncconn._AsyncMethodCall instance at 0x2d95e18>: calling <bound method PK1Connection.getDevices of <asyncpk1.PK1Connection instance at 0x209eea8>>
Converted ()/{'exclude_schemes': ['dnssd', 'snmp', 'bluetooth'], 'reply_handler': <bound method _AsyncMethodCall.reply_handler of <asyncconn._AsyncMethodCall instance at 0x2d95e18>>, 'error_handler': <bound method _AsyncMethodCall.error_handler of <asyncconn._AsyncMethodCall instance at 0x2d95e18>>, 'auth_handler': <bound method _AsyncMethodCall.auth_handler of <asyncconn._AsyncMethodCall instance at 0x2d95e18>>} to (0, 0, [], ['dnssd', 'snmp', 'bluetooth'])
+_PK1AsyncMethodCall: <asyncpk1._PK1AsyncMethodCall instance at 0x2d95fc8>
Calling PK method DevicesGet
<asyncpk1._PK1AsyncMethodCall instance at 0x2d95fc8>: calling <dbus.proxies._DeferredMethod instance at 0x2da4098>
get_notifications
update_jobs
Next notifications fetch in 60s
<asyncpk1._PK1AsyncMethodCall instance at 0x2d95fc8>: no error, calling reply handler <bound method _AsyncMethodCall.reply_handler of <asyncconn._AsyncMethodCall instance at 0x2d95e18>>
<asyncconn._AsyncMethodCall instance at 0x2d95e18>: to reply_handler at <bound method Connection._subst_reply_handler of <asyncconn.Connection object at 0x1e30990>>
DESTROY: <asyncconn._AsyncMethodCall instance at 0x2d95e18>
<asyncconn.Connection object at 0x1e30990>: chaining up to <bound method _GetDevicesCall._reply_handler of <cupshelpers.cupshelpers._GetDevicesCall object at 0x2d9ee90>>
fetchDevices
+<asyncconn._AsyncMethodCall instance at 0x2da45a8>
<asyncconn._AsyncMethodCall instance at 0x2da45a8>: calling <bound method PK1Connection.getDevices of <asyncpk1.PK1Connection instance at 0x209eea8>>
Converted ()/{'reply_handler': <bound method _AsyncMethodCall.reply_handler of <asyncconn._AsyncMethodCall instance at 0x2da45a8>>, 'include_schemes': ['dnssd', 'snmp', 'bluetooth'], 'auth_handler': <bound method _AsyncMethodCall.auth_handler of <asyncconn._AsyncMethodCall instance at 0x2da45a8>>, 'error_handler': <bound method _AsyncMethodCall.error_handler of <asyncconn._AsyncMethodCall instance at 0x2da45a8>>} to (0, 0, ['dnssd', 'snmp', 'bluetooth'], [])
+_PK1AsyncMethodCall: <asyncpk1._PK1AsyncMethodCall instance at 0x2da4830>
Calling PK method DevicesGet
<asyncpk1._PK1AsyncMethodCall instance at 0x2da4830>: calling <dbus.proxies._DeferredMethod instance at 0x2da48c0>
DESTROY: <asyncpk1._PK1AsyncMethodCall instance at 0x2d95fc8>
-<asyncconn._AsyncMethodCall instance at 0x2d95e18>
-_PK1AsyncMethodCall: <asyncpk1._PK1AsyncMethodCall instance at 0x2d95fc8>
<asyncpk1._PK1AsyncMethodCall instance at 0x2da4830>: no error, calling reply handler <bound method _AsyncMethodCall.reply_handler of <asyncconn._AsyncMethodCall instance at 0x2da45a8>>
<asyncconn._AsyncMethodCall instance at 0x2da45a8>: to reply_handler at <bound method Connection._subst_reply_handler of <asyncconn.Connection object at 0x1e30990>>
DESTROY: <asyncconn._AsyncMethodCall instance at 0x2da45a8>
<asyncconn.Connection object at 0x1e30990>: chaining up to <bound method _GetDevicesCall._reply_handler of <cupshelpers.cupshelpers._GetDevicesCall object at 0x21297d0>>
DESTROY: <asyncconn.Connection object at 0x1e30990>
DESTROY: <asyncpk1.PK1Connection instance at 0x209eea8>
DESTROY: <asyncipp.IPPAuthConnection instance at 0x209edd0>
DESTROY: <asyncpk1._PK1AsyncMethodCall instance at 0x2da4830>
-<asyncconn._AsyncMethodCall instance at 0x2da45a8>
-_PK1AsyncMethodCall: <asyncpk1._PK1AsyncMethodCall instance at 0x2da4830>
Putting None on the task queue
Next task: None
Thread exiting
-<asyncipp._IPPAuthOperation instance at 0x209c7e8>
-<asyncconn.Connection object at 0x1e30990>
-<asyncpk1.PK1Connection instance at 0x209eea8>
-<asyncipp.IPPAuthConnection instance at 0x209edd0>
-<_IPPConnectionThread(Thread-1, stopped daemon 139654889195264)>
nextNPTab: need PPDs loaded
+<PPDsLoader object at 0x2123c30 (ppdsloader+PPDsLoader at 0x2f98da0)>
Asking CUPS for PPDs
Using polkit-1 connection class
+<asyncipp._IPPAuthOperation instance at 0x209eea8>
New IPPConnection
+<_IPPConnectionThread(Thread-2, initial daemon)>
+<asyncipp.IPPAuthConnection instance at 0x209edd0>
Awaiting further instructions
+<asyncpk1.PK1Connection instance at 0x209c7e8>
+<asyncconn.Connection object at 0x21297d0>
<asyncconn.Connection object at 0x21297d0>: chaining up to <bound method PPDsLoader._cups_connect_reply of <PPDsLoader object at 0x2123c30 (ppdsloader+PPDsLoader at 0x2f98da0)>>
+<asyncconn._AsyncMethodCall instance at 0x23b1dd0>
<asyncconn._AsyncMethodCall instance at 0x23b1dd0>: calling <function binding at 0x2135050>
+_PK1AsyncMethodCall: <asyncpk1._PK1AsyncMethodCall instance at 0x2d95e18>
<asyncpk1._PK1AsyncMethodCall instance at 0x2d95e18>: calling <function <lambda> at 0x2132de8>
+<asyncipp._IPPAuthOperation instance at 0x2da45a8>
Next task: (<method 'getPPDs2' of 'cups.Connection' objects>, (), {}, <bound method _PK1AsyncMethodCall._ipp_reply_handler of <asyncpk1._PK1AsyncMethodCall instance at 0x2d95e18>>, <bound method _IPPAuthOperation.error_handler of <asyncipp._IPPAuthOperation instance at 0x2da45a8>>, <bound method _IPPAuthOperation.auth_handler of <asyncipp._IPPAuthOperation instance at 0x2da45a8>>)
-<asyncipp._IPPAuthOperation instance at 0x209eea8>
Call <method 'getPPDs2' of 'cups.Connection' objects>
...success
Awaiting further instructions
<asyncpk1._PK1AsyncMethodCall instance at 0x2d95e18>: chaining up to <bound method _AsyncMethodCall.reply_handler of <asyncconn._AsyncMethodCall instance at 0x23b1dd0>>
<asyncconn._AsyncMethodCall instance at 0x23b1dd0>: to reply_handler at <bound method Connection._subst_reply_handler of <asyncconn.Connection object at 0x21297d0>>
DESTROY: <asyncconn._AsyncMethodCall instance at 0x23b1dd0>
<asyncconn.Connection object at 0x21297d0>: chaining up to <bound method PPDsLoader._cups_reply of <PPDsLoader object at 0x2123c30 (ppdsloader+PPDsLoader at 0x2f98da0)>>
DESTROY: <asyncconn.Connection object at 0x21297d0>
DESTROY: <asyncpk1.PK1Connection instance at 0x209c7e8>
DESTROY: <asyncipp.IPPAuthConnection instance at 0x209edd0>
<PPDsLoader object at 0x2123c30 (ppdsloader+PPDsLoader at 0x2f98da0)>: stored error is None
DESTROY: <PPDsLoader object at 0x2123c30 (ppdsloader+PPDsLoader at 0x2f98da0)>
Loaded PPDs this time; try nextNPTab again...

Canon MG5200
Trying make/model names
init_makes: 0.002s
mfgl: canon
mdll: mg5200
make: Canon
re-split mdll: mg 5200
Trying best match
MG5200 Ver.3.40 <= MG5200 <= MG5200 Ver.3.40
MG5200 Ver.3.40: match length 6
exact: canonmg5200.ppd
No ID match for device cnijnet:/88-87-17-14-28-F2:
MFG:Canon;MDL:MG5200;
Traceback (most recent call last):
  File "/usr/share/system-config-printer/newprinter.py", line 3425, in on_tvNPMakes_cursor_changed
    self.fillModelList()
  File "/usr/share/system-config-printer/newprinter.py", line 3443, in fillModelList
    text = pmodel + _(" (recommended)")
UnicodeDecodeError: 'ascii' codec can't decode byte 0xc3 in position 11: ordinal not in range(128)
Will fetch ppd? 1
Traceback (most recent call last):
  File "/usr/share/system-config-printer/newprinter.py", line 791, in on_ppdsloader_finished_next
    self.nextNPTab ()
  File "/usr/share/system-config-printer/newprinter.py", line 1405, in nextNPTab
    self.ppd = self.getNPPPD()
  File "/usr/share/system-config-printer/newprinter.py", line 3715, in getNPPPD
    nr = model.get_path(iter)[0]
  File "/usr/lib/python2.7/site-packages/gi/types.py", line 113, in function
    return info.invoke(*args, **kwargs)
TypeError: Argument 1 does not allow None as a value
DESTROY: <asyncpk1._PK1AsyncMethodCall instance at 0x2d95e18>
Putting None on the task queue
Next task: None
Thread exiting
-<asyncipp._IPPAuthOperation instance at 0x2da45a8>
Canceled subscription 237
DESTROY: <PrinterPropertiesDialog object at 0x2092820 (printerproperties+PrinterPropertiesDialog at 0x218eee0)>
DESTROY: <NewPrinterGUI object at 0x23ab6e0 (newprinter+NewPrinterGUI at 0x2861ce0)>
-<asyncconn.Connection object at 0x21297d0>
-<PPDsLoader object at 0x2123c30 (ppdsloader+PPDsLoader at 0x2f98da0)>
-<asyncconn._AsyncMethodCall instance at 0x23b1dd0>
-<asyncpk1.PK1Connection instance at 0x209c7e8>
-<asyncipp.IPPAuthConnection instance at 0x209edd0>
-_PK1AsyncMethodCall: <asyncpk1._PK1AsyncMethodCall instance at 0x2d95e18>
-<_IPPConnectionThread(Thread-2, stopped daemon 139654889195264)>

« En essayant continuellement, on finit par réussir.
Donc plus ça rate, plus ça a de chance de marcher. »
Devise Shadock

Offline

#3 2013-05-26 07:47:09

Cthulhu82
Member
From: Angers, France
Registered: 2013-04-01
Posts: 149

Re: Wireless printer and system-config-printer

I kinda solved the problem by installing the printer with the cups web browser interface.
Everything work fine, but if I try to, system-config-printer is still broken.

I am tempted to report it as a bug, the only problem is I'm not sure if it is a system-config-printer bug or one from the dependancies, and I don't know what I can do to be certain…

Last edited by Cthulhu82 (2013-05-26 07:48:54)


« En essayant continuellement, on finit par réussir.
Donc plus ça rate, plus ça a de chance de marcher. »
Devise Shadock

Offline

Board footer

Powered by FluxBB