Bug 960567 - printerproperties.py", line 595, in show: UnicodeDecodeError: 'ascii' codec can't decode byte 0xc2 in position 2: ordinal not in range(128)
Summary: printerproperties.py", line 595, in show: UnicodeDecodeError: 'ascii' codec c...
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Fedora
Classification: Fedora
Component: system-config-printer
Version: 19
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Tim Waugh
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2013-05-07 12:00 UTC by nucleo
Modified: 2013-05-24 08:21 UTC (History)
2 users (show)

Fixed In Version: system-config-printer-1.4.1-1.fc19
Clone Of:
Environment:
Last Closed: 2013-05-22 03:10:05 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)

Description nucleo 2013-05-07 12:00:13 UTC
Description of problem:
Show printer properties failed in system-config-printer.

Version-Release number of selected component (if applicable):
system-config-printer-1.4.0-4.fc19.i686

How reproducible:
Works fine on live image, but I installed F19 with own packages set, so maybe some package missing?

Steps to Reproduce:
1. Try to open printer properties window
2.
3.
  
Actual results:
system-config-printer hangs, here output in console:

GLib-GIO-Message: Using the 'memory' GSettings backend.  Your settings will not be saved or shared with other applications.
Unknown value for media-col: (unknown IPP value tag 0x34)                         
Choices: [u'media-bottom-margin', u'media-left-margin', u'media-right-margin', u'media-size', u'media-source', u'media-top-margin', u'media-type']
Selecting from choices: media-bottom-margin                                        
Traceback (most recent call last):                                                 
  File "/usr/share/system-config-printer/system-config-printer.py", line 1660, 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 595, in show
    "'%s' on %s") % (name, host))                                                  
UnicodeDecodeError: 'ascii' codec can't decode byte 0xc2 in position 2: ordinal not in range(128)

Comment 2 Fedora Update System 2013-05-09 15:13:20 UTC
system-config-printer-1.4.1-1.fc19, python-cups-1.9.63-3.fc19 has been submitted as an update for Fedora 19.
https://admin.fedoraproject.org/updates/FEDORA-2013-5419/system-config-printer-1.4.1-1.fc19,python-cups-1.9.63-3.fc19

Comment 3 Fedora Update System 2013-05-10 15:34:58 UTC
Package system-config-printer-1.4.1-1.fc19, python-cups-1.9.63-3.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.1-1.fc19 python-cups-1.9.63-3.fc19'
as soon as you are able to.
Please go to the following url:
https://admin.fedoraproject.org/updates/FEDORA-2013-5419/system-config-printer-1.4.1-1.fc19,python-cups-1.9.63-3.fc19
then log in and leave karma (feedback).

Comment 4 Fedora Update System 2013-05-22 03:10:05 UTC
system-config-printer-1.4.1-1.fc19, python-cups-1.9.63-3.fc19 has been pushed to the Fedora 19 stable repository.  If problems still persist, please make note of it in this bug report.

Comment 5 nucleo 2013-05-23 21:44:56 UTC
I again have error in printer properties but not always reproducable.
I have two printers. for one of them properties shown always, but for second sometimes failed with error

Traceback (most recent call last):
  File "/usr/share/system-config-printer/system-config-printer.py", line 1664, 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 510, in dests_iconview_item_activated
    parent=self.PrintersWindow)
  File "/usr/share/system-config-printer/printerproperties.py", line 573, in show
    self.load (name, host=host, encryption=encryption, parent=parent)
  File "/usr/share/system-config-printer/printerproperties.py", line 1477, in load
    self.updatePrinterProperties ()
  File "/usr/share/system-config-printer/printerproperties.py", line 1637, in updatePrinterProperties
    state += ' - ' + reason
UnicodeDecodeError: 'ascii' codec can't decode byte 0xd0 in position 0: ordinal not in range(128)


But after I restart cups service properties shown.

Comment 6 nucleo 2013-05-23 21:48:37 UTC
Now I have system-config-printer-1.4.1-1.fc19.i686 installed, will try system-config-printer-1.4.1-3.fc19.i686 from updates-testing

Comment 7 nucleo 2013-05-23 21:50:33 UTC
Looks like this is other bug 965578

Comment 8 Tim Waugh 2013-05-24 08:21:35 UTC
Yes, that's right. I think 1.4.1-3.fc19 ought to fix it.


Note You need to log in before you can comment on or make changes to this bug.