Bug 957343 - [abrt] system-config-printer-1.4.0-4.fc19: newprinter.py:3926:on_btnNPApply_clicked:UnicodeDecodeError: 'ascii' codec can't decode byte 0xc3 in position 16: ordinal not in range(128)
Summary: [abrt] system-config-printer-1.4.0-4.fc19: newprinter.py:3926:on_btnNPApply_c...
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Fedora
Classification: Fedora
Component: system-config-printer
Version: 19
Hardware: i686
OS: Linux
unspecified
unspecified
Target Milestone: ---
Assignee: Tim Waugh
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard: abrt_hash:b51b1f4edb4ee5b5fbfe67a0556...
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2013-04-27 11:33 UTC by klaus
Modified: 2013-05-22 03:20 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:20:05 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)
File: backtrace (851 bytes, text/plain)
2013-04-27 11:33 UTC, klaus
no flags Details
File: environ (1.33 KB, text/plain)
2013-04-27 11:33 UTC, klaus
no flags Details

Description klaus 2013-04-27 11:33:25 UTC
Description of problem:
I tried to set up my printer epson sx 218 for use with fedora 19 - alpha.
Aafter detecting a driver, dialog for giving a name to printer opened, 
name for printer was inserted, then I clicked on proceed,
then progam crashed 

Version-Release number of selected component:
system-config-printer-1.4.0-4.fc19

Additional info:
cmdline:        /usr/bin/python /usr/share/system-config-printer/system-config-printer.py
core_backtrace: 5072252ede6c0c5771c1c9ec846cd8b7a155d11a 0xf56 on_btnNPApply_clicked /usr/share/system-config-printer/newprinter.py -
dso_list:       system-config-printer-libs-1.4.0-4.fc19.noarch
executable:     /usr/share/system-config-printer/system-config-printer.py
kernel:         3.9.0-0.rc8.git0.2.fc19.i686.PAE
runlevel:       N 5
uid:            1000
ureports_counter: 2

Truncated backtrace:
newprinter.py:3926:on_btnNPApply_clicked:UnicodeDecodeError: 'ascii' codec can't decode byte 0xc3 in position 16: ordinal not in range(128)

Traceback (most recent call last):
  File "/usr/share/system-config-printer/newprinter.py", line 3926, in on_btnNPApply_clicked
    self.cups._begin_operation (_("adding printer %s") % name)
UnicodeDecodeError: 'ascii' codec can't decode byte 0xc3 in position 16: ordinal not in range(128)

Local variables in innermost frame:
info: u'EPSON Epson Stylus SX218'
widget: <Button object at 0xa65966c (GtkButton at 0xa7c05d8)>
checkppd: None
name: u'EPSON-Epson-Stylus-SX218'
ppd: <cups.PPD object at 0xaf49380>
self: <NewPrinterGUI object at 0xa659324 (newprinter+NewPrinterGUI at 0xa5cf9d0)>
uri: 'usb://EPSON/Stylus%20SX218?serial=4D464A4B3238393362&interface=1'
location: u'localhost.localdomain'
check: False

Comment 1 klaus 2013-04-27 11:33:28 UTC
Created attachment 740769 [details]
File: backtrace

Comment 2 klaus 2013-04-27 11:33:31 UTC
Created attachment 740770 [details]
File: environ

Comment 3 klaus 2013-04-28 12:09:03 UTC
To be more detailed, after searching for printer drivers, the dialog box
: New printer - printer description with 'printer name' ' description' and 'place' came up, I clicked on 'Apply' but dialog box sat there, stuck, nothing else happened then. No printer installed, no printing possible ;-(

Comment 4 klaus 2013-04-29 09:34:13 UTC
today I did delete fedoras epson printer driver and install
epson-inkjet-printer-escpr-1.2.2-1lsb3.2.i486.rpm
from http://download.ebz.epson.net/dsc/du/02/DriverDownloadInfo.do?LG2=EN&CN2=&DSCMI=19825&DSCCHK=5c7b4ff541de9a525dc84fb439258ab38e7fefd2
when it came to the printer name dialog screen it still hang but in the background
the print settings dialog window did show that the printer sx218 was detected and correctly installed. I could do some test printing and then simply did shut the printer name dialog screen (click on x). Then the printer icon still did show up in print settings dialog, usable, even when I reopened the system-printer-config tool. Anyway this is a workaround and not the straight way to set up the printer.
So looks like bug is in saving the setings given in the new printer printer name and descripion dialog box somehow, which should shut down or proceed when 'apply'-button is pressed.

Comment 5 Tim Waugh 2013-04-30 15:39:06 UTC
Fixed upstream in commit 20868d9.

Comment 6 klaus 2013-05-05 18:57:18 UTC
>>> Fixed upstream in commit 20868d9.

Thanks for reply and efforts, but what does your comment mean actually.
I did download the updated version of that espon driver for fedora
(your update) only to find that printer icon gave me an exclamation mark
and printing was no longer possible. I had to uninstall the update and reinstall the original driver from http://download.ebz.epson.net/dsc/du/02/DriverDownloadInfo.do?LG2=EN&CN2=&DSCMI=19825&DSCCHK=5c7b4ff541de9a525dc84fb439258ab38e7fefd2 to have a printer working again.

Already beginning to fear that this 'Schrödinger Cat' gets more unpredictable the more it is updated. On other hand having honest respect for the developers like you working on an 'alpha' version before it is finished and stable. Have similiar experience from other fields of 'development' ;-))

Comment 7 Jiri Popelka 2013-05-06 14:32:11 UTC
(In reply to comment #6)
> >>> Fixed upstream in commit 20868d9.
> Thanks for reply and efforts, but what does your comment mean actually.

It means it's been fixed with this commit:
https://git.fedorahosted.org/cgit/system-config-printer.git/commit/?id=20868d9503285865b9558ba3cd33e3f33ccde7c0

You originally reported (via the crash reporting tool - abrt) a crash in system-config-printer and that's what Tim fixed upstream (http://en.wikipedia.org/wiki/Upstream_%28software_development%29).
This hasn't been fixed in Fedora yet.

We can't help you with any third-party software, i.e the driver from epson.net.

Comment 8 Fedora Update System 2013-05-09 15:13:06 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 9 Fedora Update System 2013-05-10 15:34:38 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 10 Fedora Update System 2013-05-22 03:20: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.


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