Bug 574827 - check-device-ids.py fails when drivers available but none match
Summary: check-device-ids.py fails when drivers available but none match
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Fedora
Classification: Fedora
Component: system-config-printer
Version: 13
Hardware: All
OS: Linux
low
medium
Target Milestone: ---
Assignee: Tim Waugh
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2010-03-18 16:09 UTC by Yulia Kopkova
Modified: 2010-03-24 00:44 UTC (History)
2 users (show)

Fixed In Version: system-config-printer-1.2.0-4.fc13
Clone Of:
: 575063 (view as bug list)
Environment:
Last Closed: 2010-03-24 00:44:06 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)

Description Yulia Kopkova 2010-03-18 16:09:02 UTC
Description of problem:
Drivers do not install automatically for Kyocera Mita FS-1020D

Version-Release number of selected component (if applicable):
system-config-printer-1.1.93-6.fc13

How reproducible:
Always

Steps to Reproduce:
1. Remove foomatic, foomatic-db-ppds from the system
2. Remove printer and switch it off
3. Switch on printer 
  
Actual results:
Message that driver was not found

Expected results:
Installed queue

Additional info:
# tail -f /var/log/messages
Mar 18 16:11:44 dhcp-lab-184 kernel: usb 2-1: new full speed USB device using uhci_hcd and address 3
Mar 18 16:11:44 dhcp-lab-184 kernel: usb 2-1: New USB device found, idVendor=0482, idProduct=000e
Mar 18 16:11:44 dhcp-lab-184 kernel: usb 2-1: New USB device strings: Mfr=1, Product=2, SerialNumber=3
Mar 18 16:11:44 dhcp-lab-184 kernel: usb 2-1: Product: Kyocera Mita FS-1020D
Mar 18 16:11:44 dhcp-lab-184 kernel: usb 2-1: Manufacturer: Kyocera Mita
Mar 18 16:11:44 dhcp-lab-184 kernel: usb 2-1: SerialNumber: XAX4Y97885
Mar 18 16:11:44 dhcp-lab-184 kernel: usblp0: USB Bidirectional printer dev 3 if 0 alt 0 proto 2 vid 0x0482 pid 0x000E
Mar 18 16:11:44 dhcp-lab-184 udev-configure-printer: invalid or missing IEEE 1284 Device ID

# python /usr/share/system-config-printer/check-device-ids.py
Examining connected devices
Installing relevant drivers using session service
Fetching driver list
└── Kyocera FS-1020D: MFG:Kyocera;MDL:FS-1020D;
    (No drivers)
Traceback (most recent call last):
  File "/usr/share/system-config-printer/check-device-ids.py", line 169, in <module>
    missing = set (bestmatches) - set (drivers)

There are 2 divers in foomatic I can found:
FS-1020D
Mita FS-1020D

I suppose that in this case "Mita FS-1020D" should be used.

Comment 1 Tim Waugh 2010-03-18 16:27:32 UTC
(In reply to comment #0)
> Traceback (most recent call last):
>   File "/usr/share/system-config-printer/check-device-ids.py", line 169, in
> <module>
>     missing = set (bestmatches) - set (drivers)

Were there some lines after that?  I'm not entirely sure what went wrong there.

Comment 2 Tim Waugh 2010-03-18 16:58:13 UTC
Could you please try again with system-config-printer-1.2.0-2.fc13?

http://koji.fedoraproject.org/koji/buildinfo?buildID=162544

Comment 3 Yulia Kopkova 2010-03-19 09:36:30 UTC
Tim,

I've tried a new version:

Without any drivers installed
python /usr/share/system-config-printer/check-device-ids.py
Examining connected devices
Installing relevant drivers using session service
Fetching driver list
└── Kyocera FS-1020D: MFG:Kyocera;MDL:FS-1020D;
    (No drivers)

With foomatic drivers installed
# python /usr/share/system-config-printer/check-device-ids.py
Examining connected devices
Installing relevant drivers using session service
Fetching driver list
└── Kyocera FS-1020D: MFG:Kyocera;MDL:FS-1020D;
    (No drivers)
        MISSING  foomatic:Kyocera-FS-1020D-Postscript.ppd [/usr/lib/cups/driver/foomatic]
        MISSING  foomatic:Kyocera-FS-1020D-ljet4d.ppd [/usr/lib/cups/driver/foomatic]
        MISSING  foomatic:Kyocera-FS-1020D-ljet4.ppd [/usr/lib/cups/driver/foomatic]
        MISSING  foomatic:Kyocera-FS-1020D-hpijs.ppd [/usr/lib/cups/driver/foomatic]
        MISSING  foomatic:Kyocera-FS-1020D-hpijs-pcl5e.ppd [/usr/lib/cups/driver/foomatic]
        MISSING  foomatic:Kyocera-FS-1020D-lj4dith.ppd [/usr/lib/cups/driver/foomatic]

Comment 4 Tim Waugh 2010-03-19 10:14:39 UTC
Ah, that's better.  Now I now which files to change, thanks :-)

I'll keep this bug open for the check-device-ids.py bug and open a new one for the foomatic change.

Comment 5 Fedora Update System 2010-03-19 10:17:35 UTC
system-config-printer-1.2.0-2.fc13 has been submitted as an update for Fedora 13.
http://admin.fedoraproject.org/updates/system-config-printer-1.2.0-2.fc13

Comment 6 Yulia Kopkova 2010-03-19 10:42:56 UTC
I(In reply to comment #4)
> Ah, that's better.  Now I now which files to change, thanks :-)
> 
Just to clarify (seems I was not really clear) I've seen check-device-ids.py failed when foomatic drivers were installed (Comment 0)

With no drivers installed it behaved and behaves like mention in Comment 3

Now, running check-device-ids.py with foomatic installed do not cause any fails.

> I'll keep this bug open for the check-device-ids.py bug and open a new one for
> the foomatic change.    
Thanks!

Comment 7 Fedora Update System 2010-03-23 02:01:11 UTC
system-config-printer-1.2.0-4.fc13 has been pushed to the Fedora 13 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/system-config-printer-1.2.0-4.fc13

Comment 8 Fedora Update System 2010-03-24 00:44:02 UTC
system-config-printer-1.2.0-4.fc13 has been pushed to the Fedora 13 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.