kagou@satori:~$ cd /usr/share/system-config-printer
kagou@satori:/usr/share/system-config-printer$ python -c 'import cups, ppds;c=cups.Connection();a=c.getPPDs();p=ppds.PPDs(a);print p.getPPDNameFromDeviceID("Canon","iP3000","Canon iP3000")'
Traceback (most recent call last):
File "<string>", line 1, in <module>
File "/usr/share/system-config-printer/ppds.py", line 309, in getPPDNameFromDeviceID
if uri.startswith ("hp:") or uri.startswith ("hpfax:"):
AttributeError: 'NoneType' object has no attribute 'startswith'
kagou@satori:/usr/share/system-config-printer$
kagou@satori:~$ cd /usr/share/ system- config- printer /usr/share/ system- config- printer$ python -c 'import cups, ppds;c= cups.Connection ();a=c. getPPDs( );p=ppds. PPDs(a) ;print p.getPPDNameFro mDeviceID( "Canon" ,"iP3000" ,"Canon iP3000")' system- config- printer/ ppds.py" , line 309, in getPPDNameFromD eviceID /usr/share/ system- config- printer$
kagou@satori:
Traceback (most recent call last):
File "<string>", line 1, in <module>
File "/usr/share/
if uri.startswith ("hp:") or uri.startswith ("hpfax:"):
AttributeError: 'NoneType' object has no attribute 'startswith'
kagou@satori: