Description of problem: Added a network printer with the "Print Settings" tool and printed a test page. Version-Release number of selected component: system-config-printer-1.4.1-6.fc19 Additional info: reporter: libreport-2.1.5 cmdline: /usr/bin/python /usr/share/system-config-printer/system-config-printer.py dso_list: system-config-printer-libs-1.4.1-6.fc19.noarch executable: /usr/share/system-config-printer/system-config-printer.py kernel: 3.9.5-301.fc19.x86_64 runlevel: N 5 uid: 0 Truncated backtrace: printerproperties.py:1573:updateMarkerLevels:UnicodeEncodeError: 'ascii' codec can't encode character u'\xe9' in position 10: ordinal not in range(128) Traceback (most recent call last): File "/usr/share/system-config-printer/printerproperties.py", line 1903, in on_printer_event self.on_printer_modified (None, printer, False) File "/usr/share/system-config-printer/printerproperties.py", line 1893, in on_printer_modified self.updatePrinterProperties () File "/usr/share/system-config-printer/printerproperties.py", line 1679, in updatePrinterProperties self.updateMarkerLevels () File "/usr/share/system-config-printer/printerproperties.py", line 1573, in updateMarkerLevels localized_name = self.ppd.localizeMarkerName(name) UnicodeEncodeError: 'ascii' codec can't encode character u'\xe9' in position 10: ordinal not in range(128) Local variables in innermost frame: num_markers: 1 color: u'none' cols: 4 can_refresh: True table: <Table object at 0x3235fa0 (GtkTable at 0x3206120)> row: 0 localized_name: None rows: 2 val: [-1, -1, -1, -1, -1, -1] self: <PrinterPropertiesDialog object at 0x1ca62d0 (printerproperties+PrinterPropertiesDialog at 0x18e8180)> markers: [(u'#000000', u'Toner noir', u'toner', -1), (u'none', u'Toner usag\xe9 1', u'wasteToner', -1), (u'#00FFFF', u'Toner cyan', u'toner', -1), (u'#FF00FF', u'Toner magenta', u'toner', -1), (u'#FFFF00', u'Toner jaune', u'toner', -1), (u'none', u'Toner usag\xe9 2', u'wasteToner', -1)] label: <Label object at 0x3240140 (GtkLabel at 0x2ec6300)> widget: <Label object at 0x3235f50 (GtkLabel at 0x2f58a80)> printer: <cupshelpers.Printer "ricoh"> marker_type: u'wasteToner' typ: <type 'float'> inklevel: <GtkInkLevel object at 0x3240410 (gtkinklevel+GtkInkLevel at 0x1ba2020)> attr: 'marker-levels' name: u'Toner usag\xe9 1' level: -1 vbox: <VBox object at 0x3240460 (GtkVBox at 0x2e5a5c0)> marker_info: {'marker-names': [u'Toner noir', u'Toner usag\xe9 1', u'Toner cyan', u'Toner magenta', u'Toner jaune', u'Toner usag\xe9 2'], 'marker-types': [u'toner', u'wasteToner', u'toner', u'toner', u'toner', u'wasteToner'], 'marker-levels': [-1, -1, -1, -1, -1, -1], 'marker-colors': [u'#000000', u'none', u'#00FFFF', u'#FF00FF', u'#FFFF00', u'none']} col: 0 subhbox: <HBox object at 0x3240320 (GtkHBox at 0x320c880)>
Created attachment 816037 [details] File: backtrace
Created attachment 816038 [details] File: core_backtrace
Created attachment 816039 [details] File: environ
I have at the moment no idea what happened in this case, but we've fixed a lot of encoding related problems since version you are using. Please update to 1.4.3 - it's in updates-testing now, so run yum --enablerepo=updates-testing update 'system-config-printer*' and let me know if you are able to reproduce the problem with 1.4.3. Thanks
Stil have the problem with system-config-printer 1.4.3. https://retrace.fedoraproject.org/faf/reports/255324/
Created attachment 816779 [details] The error in ABRT
(In reply to Fujisan from comment #0) > localized_name = self.ppd.localizeMarkerName(name) > UnicodeEncodeError: 'ascii' codec can't encode character u'\xe9' in position > 10: ordinal not in range(128) > ... > name: u'Toner usag\xe9 1' Thanks, seems to be a problem in python-cups - PPD_localizeMarkerName() doesn't accept unicode. I'll take a look.
Should be fixed upstream with https://git.fedorahosted.org/cgit/pycups.git/commit/?id=a228a7ac757c12798bd2e253a787651d0afdd3e4
*** This bug has been marked as a duplicate of bug 1046466 ***