Error with hplip/base/utils.py translate call in Debian hplip 3.18.12+dfsg0-2 causes setup to fail
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
HPLIP |
In Progress
|
Undecided
|
Unassigned |
Bug Description
Fax setup fails (causing the entire setup to fail) with this traceback:
Traceback (most recent call last):
File "/usr/share/
self.
File "/usr/share/
self.
File "/usr/share/
self.fax_number = to_unicode(
File "/usr/share/
data = utils.printable
File "/usr/share/
return s.translate(
TypeError: translate() takes exactly one argument (2 given)
Please see the attached log to show debug runs before and after my change:
--- utils.py 2019-04-29 23:49:03.202551465 -0400
+++ utils.py.new 2019-04-29 23:49:34.934764539 -0400
@@ -956,7 +956,7 @@
def printable(s):
if s:
- return s.translate(
+ return s.translate(
else:
return ""
Since I'm working in English, I don't know if that affects the translation functionality, but it was enough for me to be able to finish my printer setup.
Thanks Scott,
Will verify the changes.
Regards,
Santhosh