Bug 1017561
Summary: | [abrt] system-config-printer-1.4.2-1.fc19: newprinter.py:2683:on_tvNPDevices_cursor_changed:UnicodeDecodeError: 'ascii' codec can't decode byte 0xe2 in position 44: ordinal not in range(128) | ||||||||
---|---|---|---|---|---|---|---|---|---|
Product: | [Fedora] Fedora | Reporter: | Terry Moschou <tmoschou> | ||||||
Component: | system-config-printer | Assignee: | Tim Waugh <twaugh> | ||||||
Status: | CLOSED ERRATA | QA Contact: | Fedora Extras Quality Assurance <extras-qa> | ||||||
Severity: | unspecified | Docs Contact: | |||||||
Priority: | unspecified | ||||||||
Version: | 19 | CC: | jpopelka, nathanael, twaugh | ||||||
Target Milestone: | --- | ||||||||
Target Release: | --- | ||||||||
Hardware: | x86_64 | ||||||||
OS: | Unspecified | ||||||||
Whiteboard: | abrt_hash:9dd32a55a187b62c1c5606d077fc3004fac4106e | ||||||||
Fixed In Version: | system-config-printer-1.4.3-2.fc19 | Doc Type: | Bug Fix | ||||||
Doc Text: | Story Points: | --- | |||||||
Clone Of: | Environment: | ||||||||
Last Closed: | 2013-11-06 07:39:17 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: | |||||||||
Attachments: |
|
Description
Terry Moschou
2013-10-10 07:43:23 UTC
Created attachment 810349 [details]
File: backtrace
Created attachment 810350 [details]
File: environ
(In reply to Terry Moschou from comment #0) > Vendor: The openSUSE Project > openSUSE? should that be right? That's correct, yes. cups-pk-helper originates from openSUSE. http://www.vuntz.net/journal/post/2010/02/19/A-few-words-about-cups-pk-helper... > Under Devices->Network Printer several entries marked 'None' appeared after > a while. I sellected one of them, before the error occured. Hmm, I don't remember ever seeing any 'None' entries there. > device.menuentry += " (%s)" % device.info > UnicodeDecodeError: 'ascii' codec can't decode byte 0xe2 in position 44: > ordinal not in range(128) Means that device.menuentry was unicode while device.info was (utf-8) encoded, I'll check what can be done here. https://git.fedorahosted.org/cgit/system-config-printer.git/commit/?id=29696294d1c12828b1aa8fc7fe22aa4348237b5b could hopefully fix it. doesn't seem to fix it for me. (I manually edited that line (2685) in a similar way and I got device.menuentry += " (%s)" % [ device.info('utf-8') if isinstance(w,bytes) else w for w in device.info ] TypeError: 'str' object is not callable Probably did it wrong however I also applied the patch linked to above. Still no go. I actually made one more commit later. https://git.fedorahosted.org/cgit/system-config-printer.git/commit/?id=856349f18be42f0c95e1f021c348d4858e54a1f3 Would be great if you could try it too. You can simply replace /usr/share/system-config-printer/newprinter.py with https://git.fedorahosted.org/cgit/system-config-printer.git/plain/newprinter.py If that doesn't help I'll add some debug outputs so we can see what is actually going on there. So after struggling with it for a bit I renamed the computer that was advertising the printer and this solved the issue. Its an iMac so they do some stupid "Soand-So's-iMac" naming convention. My guess is that the apostrophe is one of those odd apostrophe's similar to the ones MS uses the 'Smart/Curly' apostrophe. Anyway I'll rename the computer and try out your file and report back. system-config-printer-1.4.3-1.fc20 has been submitted as an update for Fedora 20. https://admin.fedoraproject.org/updates/system-config-printer-1.4.3-1.fc20 system-config-printer-1.4.3-1.fc19 has been submitted as an update for Fedora 19. https://admin.fedoraproject.org/updates/system-config-printer-1.4.3-1.fc19 Package system-config-printer-1.4.3-1.fc19: * should fix your issue, * was pushed to the Fedora 19 testing repository, * should be available at your local mirror within two days. Update it with: # su -c 'yum update --enablerepo=updates-testing system-config-printer-1.4.3-1.fc19' as soon as you are able to. Please go to the following url: https://admin.fedoraproject.org/updates/FEDORA-2013-19726/system-config-printer-1.4.3-1.fc19 then log in and leave karma (feedback). system-config-printer-1.4.3-2.fc19 has been pushed to the Fedora 19 stable repository. If problems still persist, please make note of it in this bug report. system-config-printer-1.4.3-2.fc20 has been pushed to the Fedora 20 stable repository. If problems still persist, please make note of it in this bug report. |