Article 6MDF9 slackware-current: hp-setup from hplip-3.23.12-x86_64-4 throws UnicodeDecodeError after selecting printer

slackware-current: hp-setup from hplip-3.23.12-x86_64-4 throws UnicodeDecodeError after selecting printer

by
pdags
from LinuxQuestions.org on (#6MDF9)
When I try to add a printer using hp-setup to add a network printer I've successfully added in the past I get the error below.

Steps:
  1. Run hp-setup from cli
  2. Select "Network/Ethernet/Wireless network (direct connection or JetDirect)
  3. Select my printer
  4. Click "Next" followed by the crash
I see that there were patches applied to -4 to fix unicode errors, but they don't seem to work for whatever this is. I assume this is a system misconfiguration problem on my end, but I don't know where to start checking things.

Things I've tried:
  • downgrading hplip to 3.23.12-x86_64-1 through 3 (same error)
  • downgrading to hplip-3.20.6-x86_64-7 (ModuleNotFoundError: No module named 'cupsext')
  • reinstalling hplip
The trace:
Code:HP Linux Imaging and Printing System (ver. 3.23.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.

Searching... (bus=net, timeout=5, ttl=4, search=(None) desc=0, method=mdns)
...clipped some stuff here...
hp-setup[17284]: debug: Found 1 devices
hp-setup[17284]: debug: Cache miss: officejet_pro_9010_series
hp-setup[17284]: debug: Reading file: /usr/share/hplip/data/models/models.dat
hp-setup[17284]: debug: Searching for section [officejet_pro_9010_series] in file /usr/share/hplip/data/models/models.dat
hp-setup[17284]: debug: Found section [officejet_pro_9010_series] in file /usr/share/hplip/data/models/models.dat
hp-setup[17284]: debug: Cache miss: hp_officejet_pro_9010_series
hp-setup[17284]: debug: Reading file: /usr/share/hplip/data/models/models.dat
hp-setup[17284]: debug: Searching for section [hp_officejet_pro_9010_series] in file /usr/share/hplip/data/models/models.dat
hp-setup[17284]: debug: Found section [hp_officejet_pro_9010_series] in file /usr/share/hplip/data/models/models.dat
hp-setup[17284]: debug: Unable to open file /var/lib/hp/hplip.state for reading.
hp-setup[17284]: debug: {}
hp-setup[17284]: debug: HP_OfficeJet_Pro_9010
hp-setup[17284]: debug: (CUPS 1.2.x) Getting list of PPDs using CUPS_GET_PPDS...
hp-setup[17284]: debug: CUPS PPD base path = /usr/share/cups/model
hp-setup[17284]: debug: Foomatic PPD base path = /usr/share/ppd
Traceback (most recent call last):
File "/usr/share/hplip/ui5/setupdialog.py", line 1395, in NextButton_clicked
self.showAddPrinterPage()
File "/usr/share/hplip/ui5/setupdialog.py", line 709, in showAddPrinterPage
self.findPrinterPPD()
File "/usr/share/hplip/ui5/setupdialog.py", line 798, in findPrinterPPD
self.print_ppd = cups.getPPDFile2(
^^^^^^^^^^^^^^^^^
File "/usr/share/hplip/prnt/cups.py", line 540, in getPPDFile2
family_class=getFamilyClassName(model)
^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/share/hplip/prnt/cups.py", line 178, in getFamilyClassName
dict=m.read_all_files(False)
^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/share/hplip/base/models.py", line 456, in read_all_files
self.read_section(self.released_dat)
File "/usr/share/hplip/base/models.py", line 487, in read_section
line = fd.readline()
^^^^^^^^^^^^^
File "/usr/lib64/python3.11/encodings/ascii.py", line 26, in decode
return codecs.ascii_decode(input, self.errors)[0]
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
UnicodeDecodeError: 'ascii' codec can't decode byte 0xe2 in position 913: ordinal not in range(128)
Aborted
External Content
Source RSS or Atom Feed
Feed Location https://feeds.feedburner.com/linuxquestions/latest
Feed Title LinuxQuestions.org
Feed Link https://www.linuxquestions.org/questions/
Reply 0 comments