On debian stretch hp-toolbox fails at status page because of a trival programing error using python str
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
HPLIP |
In Progress
|
Undecided
|
Unassigned |
Bug Description
Debian 9.4, python 2.7.13, hplip 3.18.3
On hp-toolbox gui if status page is choosen, the application crashes.
Traceback (most recent call last):
File "/usr/share/
self.
File "/usr/share/
self.
File "/usr/share/
tt = str("%s %s"%(dt.
UnicodeEncodeError: 'ascii' codec can't encode character u'\xe1' in position 3: ordinal not in range(128)
Traceback (most recent call last):
File "/usr/share/
self.
File "/usr/share/
self.
File "/usr/share/
i = QTableWidgetIte
UnicodeEncodeError: 'ascii' codec can't encode character u'\xe1' in position 3: ordinal not in range(128)
devmgr5.py
line 1410 >> tt = str("%s %s"%(dt.toString(), desc))
line 1431 >> i = QTableWidgetIte
In this line the coercing to string is not work because the values can contain unicode characters.
Using "to_uncode" function (from the sourcecode of hplip) in these cases will solve the problem.
By-the-way Can I found the source code somewhere, perhaps I could file a PR?
Hi,
Debian 9.4 is not yet supported by HPLIP , so some functionalities might fail . Please use any previous versions of Debian.you can download supported hplip version source code from this link. /sourceforge. net/projects/ hplip/files/ hplip/
https:/
Debian 9.4 will be supported by HPLIP in the future release.
Thanks,
Shivani mandora.