Bug 999629

Summary: [abrt] system-config-printer-1.4.1-8.fc19: newprinter.py:3578:on_NPDrivers_query_tooltip:UnicodeDecodeError: 'ascii' codec can't decode byte 0xd0 in position 0: ordinal not in range(128)
Product: [Fedora] Fedora Reporter: qpmmy <qpmm>
Component: system-config-printerAssignee: Tim Waugh <twaugh>
Status: CLOSED ERRATA QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 19CC: jpopelka, twaugh
Target Milestone: ---   
Target Release: ---   
Hardware: i686   
OS: Unspecified   
Whiteboard: abrt_hash:664e99f3123d79fe49667b02e03fc2866308f70c
Fixed In Version: system-config-printer-1.4.2-1.fc19 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2013-11-18 13:54:13 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 Flags
File: backtrace
none
File: environ none

Description qpmmy 2013-08-21 18:07:53 UTC
Description of problem:
Was setting up HP LaserJet printer via system-config-printer and just chose it from the list of all available printer models.

Version-Release number of selected component:
system-config-printer-1.4.1-8.fc19

Additional info:
reporter:       libreport-2.1.6
cmdline:        /usr/bin/python /usr/share/system-config-printer/system-config-printer.py
dso_list:       system-config-printer-libs-1.4.1-8.fc19.noarch
executable:     /usr/share/system-config-printer/system-config-printer.py
kernel:         3.10.7-200.fc19.i686.PAE
runlevel:       N 5
type:           Python
uid:            1000

Truncated backtrace:
newprinter.py:3578:on_NPDrivers_query_tooltip:UnicodeDecodeError: 'ascii' codec can't decode byte 0xd0 in position 0: ordinal not in range(128)

Traceback (most recent call last):
  File "/usr/share/system-config-printer/newprinter.py", line 3578, in on_NPDrivers_query_tooltip
    markup += _("This PPD is generated by foomatic.")
UnicodeDecodeError: 'ascii' codec can't decode byte 0xd0 in position 0: ordinal not in range(128)

Local variables in innermost frame:
keyboard_mode: False
ppddict: {'ppd-type': [u'postscript'], 'ppd-model-number': [0], 'ppd-product': [u''], 'ppd-natural-language': [u'en'], 'ppd-psversion': [u''], 'ppd-make': [u'HP'], 'ppd-make-and-model': [u'HP LaserJet 6L Foomatic/lj4dith'], 'ppd-device-id': [u'MFG:Hewlett-Packard;MDL:HP LaserJet 6L;DES:Hewlett-Packard LaserJet 6L Printer;DRV:Dlj4dith,R0,M0,TG;']}
tv: <TreeView object at 0x94568ec (GtkTreeView at 0x94f0e78)>
markup: u'HP LaserJet 6L Foomatic/lj4dith '
tooltip: <Tooltip object at 0xacb05acc (GtkTooltip at 0x97c5418)>
ret: (<GtkTreePath at 0xa2723d0>, <TreeViewColumn object at 0xacb05cac (GtkTreeViewColumn at 0x9629518)>, 121, 7)
drivername: u'foomatic:HP-LaserJet_6L-lj4dith.ppd'
x: 121
y: 113
path: <GtkTreePath at 0xa2723d0>
self: <NewPrinterGUI object at 0x94520f4 (newprinter+NewPrinterGUI at 0x92ced70)>
bin_y: 91
bin_x: 121

Comment 1 qpmmy 2013-08-21 18:07:59 UTC
Created attachment 788953 [details]
File: backtrace

Comment 2 qpmmy 2013-08-21 18:08:02 UTC
Created attachment 788954 [details]
File: environ

Comment 3 Tim Waugh 2013-11-18 13:54:13 UTC
Are you able to reproduce this with system-config-printer >= 1.4.2?  I think this might have been fixed in system-config-printer-1.4.2-1.fc19.