Bug 162033

Summary: system-config-printer crashes with a traceback when driver==Postscript
Product: [Fedora] Fedora Reporter: Hans de Goede <hdegoede>
Component: system-config-printerAssignee: Tim Waugh <twaugh>
Status: CLOSED UPSTREAM QA Contact:
Severity: medium Docs Contact:
Priority: medium    
Version: rawhide   
Target Milestone: ---   
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2005-07-06 14:19:07 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Hans de Goede 2005-06-29 11:27:21 UTC
I had some problems with my printer so I decided to reset all my printer
configfiles to default, start system-config-printer and add my printer.

My printer is a HP Laserjet 2100, this one contains in the foomatic xml file:
<driver>Postscript</driver>

Problem:
-Selecting this printer (/dev/lp0)
-finish adding it
-click edit
-traceback:
The printer HP LaserJet 2100 (ID: HP-LaserJet_2100) is not supported by the
driver Postscript!
Couldn't load driver information.
Traceback (most recent call last):
  File "/usr/share/printconf/util/queueTree.py", line 600, in edit_button_clicked
    if self.editQueue.editQueueDialog (iter):
  File "/usr/share/printconf/util/editQueue.py", line 427, in editQueueDialog
    self.select_printer_iter (iter)
  File "/usr/share/printconf/util/editQueue.py", line 511, in select_printer_iter
    self.printer_model_selected (self.printer_view)
  File "/usr/share/printconf/util/editQueue.py", line 841, in printer_model_selected
    driver_index = self.recommended_driver
AttributeError: editQueue instance has no attribute 'recommended_driver'


Selecting 2100M works fine.

Also the entry for the 2100 is plain wrong since this one can't do Postscript,
it should use the plxmono or lj5gray driver. See the entry for the 2100M which
can do postscript but defaults to plxmono because the 2100M identifies itself as
2100 which makes it impossible to distuingish the two for hw autodetect.

Comment 1 Tim Waugh 2005-06-29 14:07:35 UTC
Reported upstream.

Comment 2 Hans de Goede 2005-06-29 14:47:47 UTC
I don't want to be a PITA, but my reason for reporting this seperatly and
against system-config-printer, is that I believe that an error in the foomatic
database should not lead to a traceback and a crash but to a nice userfriendly
dialogbox.



Comment 3 Tim Waugh 2005-06-29 14:53:55 UTC
This particular issue is that the database is not self-consistent.  There's not
much friendly you can say to the user at that point. :-/

Hmm, perhaps foomatic ought to have a consistency check in its %install step.

Comment 4 Hans de Goede 2005-06-30 05:51:13 UTC
Yes that would be an excellent idea and solution.
Now all thats left is coding it :)

Comment 5 Tim Waugh 2005-07-06 14:19:07 UTC
Turns out there are several such inconsistencies:

http://www.linuxprinting.org/pipermail/foomatic-devel/2005q3/002193.html