soapfax.py:139:setStationName:UnicodeEncodeError: 'ascii' codec can't encode characters in position 0-3: ordinal not in range(128)

Bug #1157701 reported by Jiri Popelka on 2013-03-20
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
HPLIP
Undecided
Unassigned
hplip (Fedora)
Fix Released
Undecided

Bug Description

Version number of selected component:
hplip-3.13.3

Additional info:
cmdline: /usr/bin/python /usr/bin/hp-setup --gui

Traceback (most recent call last):
  File "/usr/share/hplip/ui4/setupdialog.py", line 1231, in NextButton_clicked
    self.addPrinter()
  File "/usr/share/hplip/ui4/setupdialog.py", line 941, in addPrinter
    self.readwriteFaxInformation(False)
  File "/usr/share/hplip/ui4/setupdialog.py", line 1046, in readwriteFaxInformation
    d.setStationName(self.fax_name_company)
  File "/usr/share/hplip/fax/soapfax.py", line 139, in setStationName
    return self.post("/hp/device/set_config.html", {"FaxCompanyName": str(name)})
UnicodeEncodeError: 'ascii' codec can't encode characters in position 0-3: ordinal not in range(128)

Local variables in innermost frame:
self: <fax.soapfax.SOAPFaxDevice object at 0x402a490>
name: u'\u0424\u0410\u041a\u0421 HP LASERJET'

Description of problem:
I setup printer HP Laser Jet m1522nf with hplip

Version-Release number of selected component:
hplip-3.13.2-1.fc18

Additional info:
cmdline: /usr/bin/python /usr/bin/hp-setup --gui
dso_list: hplip-gui-3.13.2-1.fc18.x86_64
executable: /usr/bin/hp-setup
kernel: 3.8.3-203.fc18.x86_64
uid: 1000

Truncated backtrace:
soapfax.py:139:setStationName:UnicodeEncodeError: 'ascii' codec can't encode characters in position 0-3: ordinal not in range(128)

Traceback (most recent call last):
  File "/usr/share/hplip/ui4/setupdialog.py", line 1231, in NextButton_clicked
    self.addPrinter()
  File "/usr/share/hplip/ui4/setupdialog.py", line 941, in addPrinter
    self.readwriteFaxInformation(False)
  File "/usr/share/hplip/ui4/setupdialog.py", line 1046, in readwriteFaxInformation
    d.setStationName(self.fax_name_company)
  File "/usr/share/hplip/fax/soapfax.py", line 139, in setStationName
    return self.post("/hp/device/set_config.html", {"FaxCompanyName": str(name)})
UnicodeEncodeError: 'ascii' codec can't encode characters in position 0-3: ordinal not in range(128)

Local variables in innermost frame:
self: <fax.soapfax.SOAPFaxDevice object at 0x402a490>
name: u'\u0424\u0410\u041a\u0421 HP LASERJET'

Created attachment 713177
File: backtrace

Created attachment 713178
File: core_backtrace

Created attachment 713179
File: environ

I setup printer HP Laser Jet m1522nf with hplip

Package: hplip-3.13.2-1.fc18
OS Release: Fedora release 18 (Spherical Cow)

Jiri Popelka (jpopelka) wrote :
tags: added: cyrilic local name printer problem russion setap when with
Changed in hplip:
status: New → Fix Committed
Changed in hplip:
status: Fix Committed → Fix Released

hplip-3.13.7-1.fc19 has been submitted as an update for Fedora 19.
https://admin.fedoraproject.org/updates/FEDORA-2013-13508/hplip-3.13.7-1.fc19

hplip-3.13.7-1.fc19 has been pushed to the Fedora 19 stable repository. If problems still persist, please make note of it in this bug report.

Changed in hplip (Fedora):
importance: Unknown → Undecided
status: Unknown → Fix Released
To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.