When using python 3.5: $ hp-setup HP Linux Imaging and Printing System (ver. 3.17.10) Printer/Fax Setup Utility ver. 9.0 Copyright (c) 2001-15 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=slp) \Traceback (most recent call last): File "/usr/share/hplip/ui5/setupdialog.py", line 1297, in NextButton_clicked self.showDevicesPage() File "/usr/share/hplip/ui5/setupdialog.py", line 566, in showDevicesPage filter_dict, self.search, net_search=net_search_type) File "/usr/share/hplip/base/device.py", line 487, in probeDevices detected_devices = slp.detectNetworkDevices(ttl, timeout) File "/usr/share/hplip/base/slp.py", line 115, in detectNetworkDevices x= to_string_utf8(x) File "/usr/share/hplip/base/sixext.py", line 113, in to_string_utf8 return s.decode("utf-8") UnicodeDecodeError: 'utf-8' codec can't decode byte 0x9e in position 363: invalid start byte Aborted Workaround: Set USE on package to PYTHON_TARGETS: -* python2_7 PYTHON_SINGLE_TARGET: -* python2_7
I can not reproduce. Probably there are some unicode characters slipping in which can't be processed. Can you please try if the patch attached to this bug [1] fixes the issue. https://bugs.launchpad.net/hplip/+bug/1480152
I can still produce the bug by removing the workaround. Forgive me if I did this wrong: mkdir -p /etc/portage/patches/net-print/hplip-3.17.10 cd /etc/portage/patches/net-print/hplip-3.17.10/ wget https://launchpadlibrarian.net/213208457/sixext.patch emerge -va hplip ... * Applying sixext.patch ... The text leading up to this was: -------------------------- |--- /src/base/sixext.py 2015-06-16 16:40:00.369392772 +0530 |+++ sixext.py 2015-07-31 15:36:08.011051408 +0530 -------------------------- No file to patch. Skipping patch. 1 out of 1 hunk ignored [ !! ] * ERROR: net-print/hplip-3.17.10::gentoo failed (prepare phase): * patch -p1 failed with /etc/portage/patches/net-print/hplip-3.17.10/sixext.patch * * Call stack: ...
Created attachment 526812 [details, diff] sixext.patch Well the patch failed to apply, so the bug should be still there. I just applied it manually to test. Use this one here. It should work as user patch.
The attached patch fixed it.
Strange according to upstream this bug should be fixed.
This is fixed in Git with hplip-3.18.3-r1. Thanks for the report.