Bug#1030043: hplip-gui: traceback when launching hp-toolbox
tags 1029459 upstream
severity 1029459 important
thanks
On Mon 30 Jan 2023 at 17:27:10 +0100, Julien Patriarca wrote:
> Package: hplip-gui
> Version: 3.22.10+dfsg0-1
> Severity: grave
> Tags: patch
> Justification: renders package unusable
>
> Dear Maintainer,
>
> * What led up to the situation?
> Trying to launch hp-toolbox software, got this output:
>
> Traceback (most recent call last):
> File "/usr/bin/hp-toolbox", line 280, in <module>
> toolbox = ui.DevMgr5(__version__, device_uri, None)
> ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
> File "/usr/share/hplip/ui5/devmgr5.py", line 238, in __init__
> core = CoreInstall(MODE_CHECK)
> ^^^^^^^^^^^^^^^^^^^^^^^
> File "/usr/share/hplip/installer/core_install.py", line 240, in __init__
> self.passwordObj = password.Password(ui_mode)
> ^^^^^^^^^^^^^^^^^^^^^^^^^^
> File "/usr/share/hplip/base/password.py", line 94, in __init__
> self.__readAuthType() # self.__authType
> ^^^^^^^^^^^^^^^^^^^^^
> File "/usr/share/hplip/base/password.py", line 119, in __readAuthType
> distro_name = get_distro_std_name(os_name)
> ^^^^^^^^^^^^^^^^^^^
> NameError: name 'get_distro_std_name' is not defined. Did you mean: 'get_distro_name'?
>
>
> * What exactly did you do (or not do) that was effective (or
> ineffective)?
>
> I patched the password.py file with the correct function name and
> delete the os_name parameter when being called.
>
> * What was the outcome of this action?
>
> Positive. The hp-toolbox launched succesfully.
Thank you for your report, Julien. This issue does not
appear too dissimilar to #1029459:
https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1029459
Reducing severity because not all hp-* utilities are
affected. hp-wificonfig, for instance.
Regards,
Brian.
Reply to: