Bug 15642

Summary: cannot add network printer on ipp or JetDirect
Product: Mageia Reporter: Chris Denice <eatdirt>
Component: RPM PackagesAssignee: Mageia Bug Squad <bugsquad>
Status: RESOLVED FIXED QA Contact:
Severity: critical    
Priority: Normal CC: makowski.mageia
Version: Cauldron   
Target Milestone: ---   
Hardware: x86_64   
OS: Linux   
Whiteboard:
Source RPM: system-config-printer-1.5.5-2.mga5.src.rpm CVE:
Status comment:

Description Chris Denice 2015-04-07 11:39:59 CEST
Adding a network printer with ipp (or JetDirect) fails when selecting the driver.

Maybe the drivers are not present; but I just clicked on what was proposed as a recommended driver.

cheers,
chris.

---

Here the logs:

No ID match for device ipp://192.168.12.116:631/ipp:
MFG:RICOH;MDL:Aficio MP C5502;CMD:PJL,RCS,POSTSCRIPT,PCL,PCLXL;DES:RICOH Aficio MP C5502;
No ID match for device ipp://192.168.12.116:631/ipp:
MFG:RICOH;MDL:Aficio MP C5502;CMD:PJL,RCS,POSTSCRIPT,PCL,PCLXL;DES:RICOH Aficio MP C5502;
filldownloadableDrivers
No ID match for device ipp://192.168.12.116:631/ipp:
MFG:RICOH;MDL:Aficio MP C5502;CMD:PJL,RCS,POSTSCRIPT,PCL,PCLXL;DES:RICOH Aficio MP C5502;
filldownloadableDrivers
No ID match for device ipp://192.168.12.116:631/ipp:
MFG:RICOH;MDL:Aficio MP C5502;CMD:PJL,RCS,POSTSCRIPT,PCL,PCLXL;DES:RICOH Aficio MP C5502;
Traceback (most recent call last):
  File "/usr/share/system-config-printer/newprinter.py", line 901, in on_btnNPForward_clicked
    self.nextNPTab()
  File "/usr/share/system-config-printer/newprinter.py", line 1469, in nextNPTab
    self.ppd = self.getNPPPD()
  File "/usr/share/system-config-printer/newprinter.py", line 3880, in getNPPPD
    ppd = cups.PPD(tmpf.file)
TypeError: unicode or bytes object required
Traceback (most recent call last):
  File "/usr/share/system-config-printer/newprinter.py", line 901, in on_btnNPForward_clicked
    self.nextNPTab()
  File "/usr/share/system-config-printer/newprinter.py", line 1469, in nextNPTab
    self.ppd = self.getNPPPD()
  File "/usr/share/system-config-printer/newprinter.py", line 3880, in getNPPPD
    ppd = cups.PPD(tmpf.file)
TypeError: unicode or bytes object required
Traceback (most recent call last):
  File "/usr/share/system-config-printer/newprinter.py", line 901, in on_btnNPForward_clicked
    self.nextNPTab()
  File "/usr/share/system-config-printer/newprinter.py", line 1469, in nextNPTab
    self.ppd = self.getNPPPD()
  File "/usr/share/system-config-printer/newprinter.py", line 3880, in getNPPPD
    ppd = cups.PPD(tmpf.file)
TypeError: unicode or bytes object required
Traceback (most recent call last):
  File "/usr/share/system-config-printer/newprinter.py", line 901, in on_btnNPForward_clicked
    self.nextNPTab()
  File "/usr/share/system-config-printer/newprinter.py", line 1469, in nextNPTab
    self.ppd = self.getNPPPD()
  File "/usr/share/system-config-printer/newprinter.py", line 3880, in getNPPPD
    ppd = cups.PPD(tmpf.file)
TypeError: unicode or bytes object required


Reproducible: 

Steps to Reproduce:
Comment 1 Philippe Makowski 2015-04-08 19:19:00 CEST
seems that we need this patch :
https://git.fedorahosted.org/cgit/system-config-printer.git/commit/newprinter.py?id=237cb43419c2bfe374543e8632e385463b96438a

CC: (none) => makowski.mageia

Comment 2 Philippe Makowski 2015-04-10 13:15:10 CEST
should be fixed in system-config-printer-1.5.5-3.mga5.src.rpm

Status: NEW => RESOLVED
Resolution: (none) => FIXED

Comment 3 Chris Denice 2015-04-10 19:10:36 CEST
thanks philippe, it is.