Bug 1046466 - [abrt] system-config-printer: printerproperties.py:1579:updateMarkerLevels:UnicodeEncodeError: 'ascii' codec can't encode characters in position 0-5: ordinal not in range(128)
Summary: [abrt] system-config-printer: printerproperties.py:1579:updateMarkerLevels:Un...
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Fedora
Classification: Fedora
Component: python-cups
Version: 19
Hardware: x86_64
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Tim Waugh
QA Contact: Fedora Extras Quality Assurance
URL: https://retrace.fedoraproject.org/faf...
Whiteboard: abrt_hash:f41e3600f3340321425621dd2f0...
: 1023321 1062940 (view as bug list)
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2013-12-25 13:50 UTC by Bo-Yin Yang
Modified: 2014-03-15 15:13 UTC (History)
4 users (show)

Fixed In Version: python-cups-1.9.65-1.fc20
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2014-03-15 15:13:33 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)
File: backtrace (2.20 KB, text/plain)
2013-12-25 13:50 UTC, Bo-Yin Yang
no flags Details
File: environ (1.53 KB, text/plain)
2013-12-25 13:50 UTC, Bo-Yin Yang
no flags Details

Description Bo-Yin Yang 2013-12-25 13:50:34 UTC
Version-Release number of selected component:
system-config-printer-1.4.3-2.fc19

Additional info:
reporter:       libreport-2.1.10
cmdline:        /usr/bin/python /usr/share/system-config-printer/system-config-printer.py
dso_list:       system-config-printer-libs-1.4.3-2.fc19.noarch
executable:     /usr/share/system-config-printer/system-config-printer.py
kernel:         3.11.10-200.fc19.x86_64
runlevel:       N 5
type:           Python
uid:            10000

Truncated backtrace:
printerproperties.py:1579:updateMarkerLevels:UnicodeEncodeError: 'ascii' codec can't encode characters in position 0-5: ordinal not in range(128)

Traceback (most recent call last):
  File "/usr/share/system-config-printer/system-config-printer.py", line 1698, in on_edit_activate
    self.dests_iconview_item_activated (self.dests_iconview, paths[0])
  File "/usr/share/system-config-printer/system-config-printer.py", line 509, in dests_iconview_item_activated
    parent=self.PrintersWindow)
  File "/usr/share/system-config-printer/printerproperties.py", line 579, in show
    self.load (name, host=host, encryption=encryption, parent=parent)
  File "/usr/share/system-config-printer/printerproperties.py", line 1485, in load
    self.updateMarkerLevels()
  File "/usr/share/system-config-printer/printerproperties.py", line 1579, in updateMarkerLevels
    localized_name = self.ppd.localizeMarkerName(name)
UnicodeEncodeError: 'ascii' codec can't encode characters in position 0-5: ordinal not in range(128)

Local variables in innermost frame:
rows: 2
name: u'\u9752\u8272\u5217\u5370\u5361\u5323'
val: [100, 100, 100, 80, 100]
level: 100
color: u'#00FFFF'
self: <PrinterPropertiesDialog object at 0x1b511e0 (printerproperties+PrinterPropertiesDialog at 0x16fc780)>
num_markers: 0
cols: 4
markers: [(u'#00FFFF', u'\u9752\u8272\u5217\u5370\u5361\u5323', u'toner', 100), (u'#FF00FF', u'\u6d0b\u7d05\u8272\u5217\u5370\u5361\u5323', u'toner', 100), (u'#FFFF00', u'\u9ec3\u8272\u5217\u5370\u5361\u5323', u'toner', 100), (u'#000000', u'\u9ed1\u8272\u5217\u5370\u5361\u5323', u'toner', 80), (u'none', u'\u5713\u9f13\u5361\u5323', u'opc', 100)]
marker_info: {'marker-names': [u'\u9752\u8272\u5217\u5370\u5361\u5323', u'\u6d0b\u7d05\u8272\u5217\u5370\u5361\u5323', u'\u9ec3\u8272\u5217\u5370\u5361\u5323', u'\u9ed1\u8272\u5217\u5370\u5361\u5323', u'\u5713\u9f13\u5361\u5323'], 'marker-types': [u'toner', u'toner', u'toner', u'toner', u'opc'], 'marker-levels': [100, 100, 100, 80, 100], 'marker-colors': [u'#00FFFF', u'#FF00FF', u'#FFFF00', u'#000000', u'none']}
printer: <cupshelpers.Printer "Generic-PostScript">
can_refresh: True
marker_type: u'toner'
table: <Table object at 0x1b75fa0 (GtkTable at 0x1e9fc60)>
typ: <type 'float'>
attr: 'marker-levels'

Comment 1 Bo-Yin Yang 2013-12-25 13:50:39 UTC
Created attachment 841515 [details]
File: backtrace

Comment 2 Bo-Yin Yang 2013-12-25 13:50:41 UTC
Created attachment 841516 [details]
File: environ

Comment 3 Tim Waugh 2014-02-10 12:18:31 UTC
*** Bug 1062940 has been marked as a duplicate of this bug. ***

Comment 4 Jiri Popelka 2014-02-10 17:53:38 UTC
This should be fixed with upstream commit
https://git.fedorahosted.org/cgit/pycups.git/commit/?id=a228a7ac757c12798bd2e253a787651d0afdd3e4
(included in python-cups-1.9.65)

Tim, could we build & push 1.9.65 into F20 ?
That should be safe as all the Python3 changes went into 1.9.66.

Comment 5 Tim Waugh 2014-02-11 09:22:37 UTC
Yes, let's do that.

Comment 6 Fedora Update System 2014-02-11 09:45:43 UTC
python-cups-1.9.65-1.fc20 has been submitted as an update for Fedora 20.
https://admin.fedoraproject.org/updates/python-cups-1.9.65-1.fc20

Comment 7 Fedora Update System 2014-02-12 14:51:37 UTC
Package python-cups-1.9.65-1.fc20:
* should fix your issue,
* was pushed to the Fedora 20 testing repository,
* should be available at your local mirror within two days.
Update it with:
# su -c 'yum update --enablerepo=updates-testing python-cups-1.9.65-1.fc20'
as soon as you are able to.
Please go to the following url:
https://admin.fedoraproject.org/updates/FEDORA-2014-2414/python-cups-1.9.65-1.fc20
then log in and leave karma (feedback).

Comment 8 Tim Waugh 2014-02-17 16:04:23 UTC
*** Bug 1023321 has been marked as a duplicate of this bug. ***

Comment 9 Fedora Update System 2014-03-15 15:13:33 UTC
python-cups-1.9.65-1.fc20 has been pushed to the Fedora 20 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.