Bug#847671: hplip-gui: Setting printer as default printer crashes HP Device Manager
Package: hplip-gui
Version: 3.16.11+repack0-1
Severity: important
When I try to set a printer as the default printer on the HP Device Manager,
the Device Manager crashes with the following error:
TypeError: argument 1 must be str or None, not bytes
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/usr/share/hplip/ui5/devmgr5.py", line 2046, in
SetDefaultButton_clicked
result, result_str = cups.cups_operation(cups.setDefaultPrinter, GUI_MODE,
'qt4', self, self.cur_printer.encode('utf8'))
File "/usr/share/hplip/prnt/cups.py", line 857, in cups_operation
result, status_str = operation_func(*cups_op_args)
File "/usr/share/hplip/prnt/cups.py", line 680, in setDefaultPrinter
return cupsext.setDefaultPrinter(printer_name)
SystemError: <built-in function setDefaultPrinter> returned a result with an
error set
Abortado
-- Package-specific info:
-- System Information:
Debian Release: stretch/sid
APT prefers unstable
APT policy: (500, 'unstable'), (1, 'experimental')
Architecture: amd64 (x86_64)
Foreign Architectures: i386
Kernel: Linux 4.8.0-1-amd64 (SMP w/4 CPU cores)
Locale: LANG=es_AR.utf8, LC_CTYPE=es_AR.utf8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Init: systemd (via /run/systemd/system)
Versions of packages hplip-gui depends on:
ii dbus-x11 [dbus-session-bus] 1.10.14-1
ii gksu 2.0.2-9
ii hplip 3.16.11+repack0-1
ii python3-dbus.mainloop.pyqt5 5.7+dfsg-2+b1
ii python3-pyqt5 5.7+dfsg-2+b1
Versions of packages hplip-gui recommends:
ii python3-notify2 0.3-3
pn xsane | simple-scan | skanlite <none>
hplip-gui suggests no packages.
-- no debconf information
Reply to: