toolbox.py crashed with NameError in __readAuthType(): name 'get_distro_std_name' is not defined
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
hplip (Ubuntu) |
Fix Released
|
High
|
Unassigned | ||
Lunar |
Fix Released
|
High
|
Till Kamppeter |
Bug Description
[ Impact ]
HP's GUI tool hp-toolbox does not start at all, independent which printer(s) is used.
With this users lose GUI-based maintenance functionality like ink level check, print head cleaning, ...
As a workaround on all network printers (independent whether they are driverless IPP or not) the printer's web administration interface can be used, going to http://
hp-toolbox only supports HP printers, no other manufacturers.
Also, hp-toolbox, being part of hplip-gui is only used by very few users, as it is not installed by default.
Printing and scanning is not affected. Your printer gets set up fully automatically or you can set up as any non-HP printer with GNOME Control Center, system-
Scanners in HP's devices will get automatically discovered by scanning frontends, like simple-scan.
[ Test plan ]
Start the toolbox with
hp-toolbox
Without the fix you will get the crash mentioned in the title of this bug report. With the SRU applied, the toolbox starts normally and can be used.
This test can be done independently of whether one has an HP printer or not.
[ Where problems could occur ]
The changes are very small and easy to understand, so the risk of a regression is low, and as this is code for HPLIP's GUI there cannot happen more than now, that the GUI tools crash. The patch only applies to GUI code, printing and scanning cannot get affected by it.
[ Original description ]
Error occurred after installing hplip-gui
ProblemType: Crash
DistroRelease: Ubuntu 23.04
Package: hplip-data 3.22.10+dfsg0-1
ProcVersionSign
Uname: Linux 6.1.0-16-generic x86_64
NonfreeKernelMo
ApportVersion: 2.26.0-0ubuntu2
Architecture: amd64
CasperMD5CheckR
CurrentDesktop: KDE
Date: Sun Mar 19 05:07:34 2023
ExecutablePath: /usr/share/
InstallationDate: Installed on 2023-03-18 (0 days ago)
InstallationMedia: Kubuntu 23.04 "Lunar Lobster" - Alpha amd64 (20230318)
InterpreterPath: /usr/bin/python3.11
JournalErrors: -- No entries --
Lpstat: device for HP_Color_
MachineType: HP HP ZBook 17 G4
PackageArchitec
Papersize: letter
PpdFiles: Error: command ['fgrep', '-H', '*NickName', '/etc/cups/
ProcCmdline: /usr/bin/python3 /usr/bin/hp-toolbox
ProcEnviron:
LANG=en_US.UTF-8
PATH=(custom, no user)
SHELL=/bin/bash
XDG_RUNTIME_
ProcKernelCmdLine: BOOT_IMAGE=
Python3Details: /usr/bin/
PythonArgs: ['/usr/
PythonDetails: N/A
SourcePackage: hplip
Title: toolbox.py crashed with NameError in __readAuthType(): name 'get_distro_
UpgradeStatus: No upgrade log present (probably fresh install)
UserGroups: adm cdrom dip lpadmin plugdev sambashare sudo users
dmi.bios.date: 04/08/2022
dmi.bios.release: 1.41
dmi.bios.vendor: HP
dmi.bios.version: P70 Ver. 01.41
dmi.board.name: 8270
dmi.board.vendor: HP
dmi.board.version: KBC Version 46.80
dmi.chassis.type: 10
dmi.chassis.vendor: HP
dmi.ec.
dmi.modalias: dmi:bvnHP:
dmi.product.family: 103C_5336AN
dmi.product.name: HP ZBook 17 G4
dmi.product.sku: Y3J83AV
dmi.sys.vendor: HP
tags: | removed: need-duplicate-check |
Changed in hplip (Ubuntu): | |
importance: | Undecided → Medium |
information type: | Private → Public |
Changed in hplip (Ubuntu): | |
importance: | Medium → High |
assignee: | nobody → Till Kamppeter (till-kamppeter) |
Changed in hplip (Ubuntu Lunar): | |
assignee: | nobody → Till Kamppeter (till-kamppeter) |
Changed in hplip (Ubuntu): | |
assignee: | Till Kamppeter (till-kamppeter) → nobody |
Changed in hplip (Ubuntu Lunar): | |
importance: | Undecided → High |
Changed in hplip (Ubuntu): | |
status: | Confirmed → Fix Committed |
Changed in hplip (Ubuntu Lunar): | |
status: | New → Triaged |
Changed in hplip (Ubuntu Lunar): | |
status: | Triaged → In Progress |
description: | updated |
tags: |
added: verification-done-lunar removed: verification-needed-lunar |
Status changed to 'Confirmed' because the bug affects multiple users.