Bug 1108903
Summary: | [abrt] system-config-printer: PhysicalDevice.py:199:get_info:UnicodeDecodeError: 'ascii' codec can't decode byte 0xc3 in position 55: ordinal not in range(128) | ||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Product: | [Fedora] Fedora | Reporter: | Peter H. Jones <jones.peter.busi> | ||||||||
Component: | system-config-printer | Assignee: | Tim Waugh <twaugh> | ||||||||
Status: | CLOSED DUPLICATE | QA Contact: | Fedora Extras Quality Assurance <extras-qa> | ||||||||
Severity: | unspecified | Docs Contact: | |||||||||
Priority: | unspecified | ||||||||||
Version: | 20 | CC: | jpopelka, twaugh | ||||||||
Target Milestone: | --- | ||||||||||
Target Release: | --- | ||||||||||
Hardware: | x86_64 | ||||||||||
OS: | Unspecified | ||||||||||
URL: | https://retrace.fedoraproject.org/faf/reports/bthash/ad4e1de15bb120e55e4ac545c107a9ef6043e8e7 | ||||||||||
Whiteboard: | abrt_hash:4100211dde34f38d35a15ca656e54dd32303974c | ||||||||||
Fixed In Version: | Doc Type: | Bug Fix | |||||||||
Doc Text: | Story Points: | --- | |||||||||
Clone Of: | Environment: | ||||||||||
Last Closed: | 2014-06-13 10:07:43 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
Peter H. Jones
2014-06-12 19:26:19 UTC
Created attachment 908266 [details]
File: backtrace
Created attachment 908267 [details]
File: dso_list
Created attachment 908268 [details]
File: environ
After the search for drivers ended, I was presented with a list of printers. When I selected Brother, 2270 was not in the HL section of the list, with or without the hyphen. On this machine, I haven't installed the rpms from Brother. (In reply to Peter H. Jones from comment #0) > File "/usr/share/system-config-printer/PhysicalDevice.py", line 199, in > get_info > info.find(self._network_host) == -1) and \ > UnicodeDecodeError: 'ascii' codec can't decode byte 0xc3 in position 55: > ordinal not in range(128) > > Local variables in innermost frame: > info: 'HP LaserJet P2015 Series (209DF5) @ Ordinateur de Montr\xc3\xa9al Cam' info.find(self._network_host) fails because 'info' is (utf-8) encoded and self._network_host is most likely unicode. The only idea I have is to remove if type (host) == unicode: host = host.encode ('utf-8') if type (dnssdhost) == unicode: dnssdhost = dnssdhost.encode ('utf-8') from _get_host_from_uri() but it might as well cause other issues as I don't see which strings are unicode and which are encoded. These problems started to appear with python-2.7 and will hopefully be solved with switching to python-3 in system-config-printer-1.5 *** This bug has been marked as a duplicate of bug 968142 *** |