UnicodeDecodeError after selecting type net

Bug #1541877 reported by Curtis Lee Bolin
20
This bug affects 4 people
Affects Status Importance Assigned to Milestone
HPLIP
Fix Released
Undecided
Unassigned

Bug Description

$ hp-setup -i

HP Linux Imaging and Printing System (ver. 3.15.11)
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.

(Note: Defaults for each question are maked with a '*'. Press <enter> to accept the default.)

--------------------------------
| SELECT CONNECTION (I/O) TYPE |
--------------------------------

  Num Connection Description
            Type
  -------- ---------- ----------------------------------------------------------
  0* usb Universal Serial Bus (USB)
  1 net Network/Ethernet/Wireless (direct connection or JetDirect)
  2 par Parallel Port (LPT:)

Enter number 0...2 for connection type (q=quit, enter=usb*) ? 1

Using connection type: net

\Traceback (most recent call last):
  File "/usr/bin/hp-setup", line 351, in <module>
    device_uri = mod.getDeviceUri(devices = device.probeDevices(bus))
  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 0xa1 in position 363: invalid start byte

Changed in hplip:
status: New → Fix Released
Revision history for this message
Alexander Sehdeva (alex.sehdeva) wrote :

Enter number 0...2 for connection type (q=quit, enter=usb*) ? 1

Using connection type: net

hp-setup[4649]: debug:
DEVICE CHOOSER setup_fax=True, setup_print=True
hp-setup[4649]: debug: 0000: 01 07 01 a7 00 00 65 6e 00 03 00 00 00 00 01 97 28 78 2d 68 70 2d 76 65 72 3d 30 31 29 28 78 2d ......en........(x-hp-ver=01)(x-
hp-setup[4649]: debug: 0020: 68 70 2d 6d 61 63 3d 30 30 31 65 30 62 35 63 65 34 65 32 29 28 78 2d 68 70 2d 6e 75 6d 5f 70 6f hp-mac=001e0b5ce4e2)(x-hp-num_po
hp-setup[4649]: debug: 0040: 72 74 3d 30 31 29 28 78 2d 68 70 2d 69 70 3d 31 39 32 2e 31 36 38 2e 30 30 31 2e 30 31 30 29 28 rt=01)(x-hp-ip=192.168.001.010)(
hp-setup[4649]: debug: 0060: 78 2d 68 70 2d 68 6e 3d 48 50 35 43 45 34 45 31 29 28 78 2d 68 70 2d 70 31 3d 4d 46 47 3a 48 50 x-hp-hn=HP5CE4E1)(x-hp-p1=MFG:HP
hp-setup[4649]: debug: 0080: 3b 4d 44 4c 3a 50 68 6f 74 6f 73 6d 61 72 74 20 44 37 34 30 30 20 73 65 72 69 65 73 3b 43 4d 44 ;MDL:Photosmart D7400 series;CMD
hp-setup[4649]: debug: 00a0: 3a 4d 4c 43 2c 50 43 4c 2c 50 4d 4c 2c 44 57 2d 50 43 4c 2c 44 45 53 4b 4a 45 54 2c 44 59 4e 3b :MLC,PCL,PML,DW-PCL,DESKJET,DYN;
hp-setup[4649]: debug: 00c0: 31 32 38 34 2e 34 44 4c 3a 34 64 2c 34 65 2c 31 3b 43 4c 53 3a 50 52 49 4e 54 45 52 3b 44 45 53 1284.4DL:4d,4e,1;CLS:PRINTER;DES
hp-setup[4649]: debug: 00e0: 3a 43 43 32 34 37 41 3b 53 4e 3a 4d 59 38 34 47 4b 31 30 47 54 30 34 58 4b 3b 53 3a 30 33 38 30 :CC247A;SN:MY84GK10GT04XK;S:0380
hp-setup[4649]: debug: 0100: 30 38 43 34 38 34 30 30 31 30 32 31 30 30 37 38 63 62 30 30 30 30 30 34 31 62 38 30 30 32 66 34 08C4840010210078cb0000041b8002f4
hp-setup[4649]: debug: 0120: 36 62 38 30 30 36 34 34 37 62 38 30 30 32 39 34 34 62 38 30 30 36 34 34 38 62 38 30 30 33 66 34 6b8006447b8002944b8006448b8003f4
hp-setup[4649]: debug: 0140: 35 62 38 30 30 35 38 3b 5a 3a 30 31 30 32 2c 30 35 30 30 30 30 30 39 30 31 36 61 38 31 30 31 33 5b80058;Z:0102,05000009016a81013
hp-setup[4649]: debug: 0160: 32 34 31 30 31 33 32 34 31 30 31 33 32 34 31 30 31 33 32 34 31 30 31 33 32 34 21 9a bc 84 a0 28 24101324101324101324101324!....(
hp-setup[4649]: debug: 0180: 22 c3 21 9a bc d4 ff ff fa 40 a0 35 88 a3 29 28 78 2d 68 70 2d 67 75 69 64 3d 30 30 31 65 30 62 ".!......@.5..)(x-hp-guid=001e0b
hp-setup[4649]: debug: 01a0: 35 63 65 34 65 31 29 5ce4e1)
Traceback (most recent call last):
  File "/usr/bin/hp-setup", line 351, in <module>
    device_uri = mod.getDeviceUri(devices = device.probeDevices(bus))
  File "/usr/share/hplip/base/device.py", line 486, 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 0x9a in position 363: invalid start byte

Revision history for this message
Joost Holstein (jdholstein) wrote :
Download full text (4.0 KiB)

althoug Curtis Lee Bolin marks this as fixed on 2016-05-27
I'm still having this issue.
I'm using ver. 3.16.3 of hplip but still seem to get this utf-8 error.

Any tips anyone?

sudo hp-setup -i -g

HP Linux Imaging and Printing System (ver. 3.16.3)
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.

hp-setup[3689]: debug: param=
hp-setup[3689]: debug: selected_device_name=None
(Note: Defaults for each question are maked with a '*'. Press <enter> to accept the default.)

--------------------------------
| SELECT CONNECTION (I/O) TYPE |
--------------------------------

  Num Connection Description
            Type
  -------- ---------- ----------------------------------------------------------
  0* usb Universal Serial Bus (USB)
  1 net Network/Ethernet/Wireless (direct connection or JetDirect)
  2 par Parallel Port (LPT:)

Enter number 0...2 for connection type (q=quit, enter=usb*) ? 1

Using connection type: net

hp-setup[3689]: debug:
DEVICE CHOOSER setup_fax=True, setup_print=True
hp-setup[3689]: debug: 0000: 01 07 01 9c 00 00 65 6e 00 03 00 00 00 00 01 8c 28 78 2d 68 70 2d 76 65 72 3d 30 31 29 28 78 2d ......en........(x-hp-ver=01)(x-
hp-setup[3689]: debug: 0020: 68 70 2d 6d 61 63 3d 30 30 31 32 37 39 34 34 31 39 64 31 29 28 78 2d 68 70 2d 6e 75 6d 5f 70 6f hp-mac=0012794419d1)(x-hp-num_po
hp-setup[3689]: debug: 0040: 72 74 3d 30 31 29 28 78 2d 68 70 2d 69 70 3d 31 39 32 2e 31 36 38 2e 30 30 31 2e 30 32 31 29 28 rt=01)(x-hp-ip=192.168.001.021)(
hp-setup[3689]: debug: 0060: 78 2d 68 70 2d 68 6e 3d 48 50 42 39 31 38 30 29 28 78 2d 68 70 2d 70 31 3d 4d 46 47 3a 48 50 3b x-hp-hn=HPB9180)(x-hp-p1=MFG:HP;
hp-setup[3689]: debug: 0080: 4d 44 4c 3a 50 68 6f 74 6f 73 6d 61 72 74 20 50 72 6f 20 42 39 31 30 30 20 73 65 72 69 65 73 3b MDL:Photosmart Pro B9100 series;
hp-setup[3689]: debug: 00a0: 43 4d 44 3a 4d 4c 43 2c 50 43 4c 2c 50 4d 4c 2c 44 57 2d 50 43 4c 2c 44 59 4e 2c 44 45 53 4b 4a CMD:MLC,PCL,PML,DW-PCL,DYN,DESKJ
hp-setup[3689]: debug: 00c0: 45 54 3b 31 32 38 34 2e 34 44 4c 2c 34 64 2c 34 65 2c 31 3b 38 30 32 2e 33 3b 43 4c 53 3a 50 52 ET;1284.4DL,4d,4e,1;802.3;CLS:PR
hp-setup[3689]: debug: 00e0: 49 4e 54 45 52 3b 44 45 53 3a 48 50 20 50 68 6f 74 6f 73 6d 61 72 74 20 50 72 6f 20 42 39 31 30 INTER;DES:HP Photosmart Pro B910
hp-setup[3689]: debug: 0100: 30 20 73 65 72 69 65 73 3b 53 4e 3a 4d 59 36 41 39 32 31 30 35 51 30 34 43 31 3b 53 3a 30 33 38 0 series;SN:MY6A92105Q04C1;S:038
hp-setup[3689]: debug: 0120: 38 30 30 43 34 30 30 30 30 31 30 34 31 31 41 43 38 64 62 38 30 30 30 30 38 65 62 38 30 30 30 30 800C4000010411AC8db800008eb80000
hp-setup[3689]: debug: 0140: 38 66 62 38 30 30 30 30 39 30 62 38 30 30 30 30 34 37 63 37 30 32 30 30 34 38 63 37 30 32 30 30 8fb8000090b8000047c70200...

Read more...

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.