Bug#948932: closed by Didier Raboud <odyx@debian.org> (Bug#948932: fixed in hplip 3.19.12+dfsg0-3)
Thanks for working on this bug.
I still get an error, though the error is different now.
Here's the new output
user@debian-10-testing:~$ hp-setup -ldebug
HP Linux Imaging and Printing System (ver. 3.19.12)
Printer/Fax Setup Utility ver. 9.0
Copyright (c) 2001-18 HP Development Company, LP
This software comes with ABSOLUTELY NO WARRANTY.
This is free software, and you are welcome to distribute it
under certain conditions. See COPYING file for more details.
hp-setup[937]: debug: param=
hp-setup[937]: debug: selected_device_name=None
hp-setup[937]: debug: Using PyQt5
hp-setup[937]: debug: Sys.argv=['/usr/bin/hp-setup', '-ldebug']
printer_name=None param= jd_port=1 device_uri=None remove=False
hp-setup[937]: debug: Starting GUI Event Loop...
hp-setup[937]: debug: Cache miss: officejet_pro_8500_a909g
hp-setup[937]: debug: Reading file: /usr/share/hplip/data/models/models.dat
hp-setup[937]: debug: Searching for section [officejet_pro_8500_a909g]
in file /usr/share/hplip/data/models/models.dat
hp-setup[937]: debug: Found section [officejet_pro_8500_a909g] in file
/usr/share/hplip/data/models/models.dat
Found device: hp:/net/Officejet_Pro_8500_A909g?hostname=hp8500
hp-setup[937]: debug: Unable to open file /var/lib/hp/hplip.state for
reading.
hp-setup[937]: debug: {}
hp-setup[937]: debug: Officejet_Pro_8500_A909g
hp-setup[937]: debug: (CUPS 1.2.x) Getting list of PPDs using
CUPS_GET_PPDS...
hp-setup[937]: debug: CUPS PPD base path = /usr/share/cups/model
hp-setup[937]: debug: Foomatic PPD base path = /usr/share/ppd/hplip
hp-setup[937]: debug: Matching PPD list to model officejet_pro_8500_a909g...
hp-setup[937]: debug: Found match:
hplip:0/ppd/hplip/HP/hp-officejet_pro_8500_a909g.ppd
hp-setup[937]: debug: Found match:
hplip-data:0/ppd/hplip/HP/hp-officejet_pro_8500_a909g.ppd
hp-setup[937]: debug: Found match:
drv:///hpcups.drv/hp-officejet_pro_8500_a909g.ppd
hp-setup[937]: debug:
[('hplip:0/ppd/hplip/HP/hp-officejet_pro_8500_a909g.ppd', []),
('hplip-data:0/ppd/hplip/HP/hp-officejet_pro_8500_a909g.ppd', []),
('drv:///hpcups.drv/hp-officejet_pro_8500_a909g.ppd', [])]
hp-setup[937]: debug: 3 matches found. Searching based on PDL: Host >
PS,PDF > PCL/Other
hp-setup[937]: debug: 3 matches found. Searching based on Filters:
HPCUPS > HPIJS
hp-setup[937]: debug: Selecting PPD:
drv:///hpcups.drv/hp-officejet_pro_8500_a909g.ppd
hp-setup[937]: debug: {}
hp-setup[937]: debug: Searching for fax PPD for model
officejet_pro_8500_a909g hpcups_build =1
hp-setup[937]: debug:
ppds=['/usr/share/ppd/hplip/HP/HP-Fax4-hpcups.ppd.gz',
'/usr/share/ppd/hplip/HP/HP-Fax2-hpcups.ppd.gz',
'/usr/share/ppd/hplip/HP/HP-Fax-hpcups.ppd.gz',
'/usr/share/ppd/hplip/HP/HP-Fax3-hpcups.ppd.gz']
hp-setup[937]: debug: Found fax PPD:
/usr/share/ppd/hplip/HP/HP-Fax-hpcups.ppd.gz
hp-setup[937]: debug: fax-type=1
Traceback (most recent call last):
File "/usr/share/hplip/ui5/setupdialog.py", line 1304, in
NextButton_clicked
self.showAddPrinterPage()
File "/usr/share/hplip/ui5/setupdialog.py", line 728, in
showAddPrinterPage
self.readwriteFaxInformation()
File "/usr/share/hplip/ui5/setupdialog.py", line 1127, in
readwriteFaxInformation
self.fax_number = to_unicode(d.getPhoneNum())
File "/usr/share/hplip/fax/pmlfax.py", line 146, in getPhoneNum
data = utils.printable(self.getPML(pml.OID_FAX_LOCAL_PHONE_NUM)[1])
File "/usr/share/hplip/base/utils.py", line 960, in printable
return "".join(c for c in s.translate(identity) if c not in
unprintable)
File "/usr/share/hplip/base/utils.py", line 960, in <genexpr>
return "".join(c for c in s.translate(identity) if c not in
unprintable)
TypeError: a bytes-like object is required, not 'str'
Aborted
On 1/17/20 6:42 AM, Debian Bug Tracking System wrote:
This is an automatic notification regarding your Bug report
which was filed against the hplip-data package:
#948932: /usr/share/hplip/base/utils.py: /usr/share/hplip/base/utils.py has python error
It has been closed by Didier Raboud <odyx@debian.org>.
Their explanation is attached below along with your original report.
If this explanation is unsatisfactory and you have not received a
better one in a separate message then please contact Didier Raboud <odyx@debian.org> by
replying to this email.
Reply to: