hp-toolbox launch error - python 3.8 issue?
by Chuck56 from LinuxQuestions.org on (#4XD57)
The HP Device Manager is not launching from my panel widget nor from the cli. The error at the end is: ModuleNotFoundError: No module named 'distro'
I poked around in the /usr/lib64/python3.8/site-packages/pip/_vendor directory and didn't see the usual *.pyc files like are in the /usr/lib64/python2.7/site-packages/pip/_vendor directory.
I'm wondering if python 3.8 is the cause or do I need to look elsewhere?
Code:me@desktop:~$ hp-toolbox
/usr/share/hplip/base/utils.py:2061: SyntaxWarning: "is" with a literal. Did you mean "=="?
if weburl is "" or weburl is None:
HP Linux Imaging and Printing System (ver. 3.19.12)
HP Device Manager ver. 15.0
Copyright (c) 2001-18 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.
/usr/share/hplip/installer/core_install.py:2074: SyntaxWarning: "is" with a literal. Did you mean "=="?
if home_dir is "":
/usr/share/hplip/ui4/devmgr5_base.py:287: SyntaxWarning: "is not" with a literal. Did you mean "!="?
if self.latest_available_version is not "":
/usr/share/hplip/ui4/devmgr5_base.py:409: SyntaxWarning: "is not" with a literal. Did you mean "!="?
if self.latest_available_version is not "":
warning: Reportlab not installed. Fax coverpages disabled.
warning: Please install version 2.0+ of Reportlab for coverpage support.
Traceback (most recent call last):
File "/usr/share/hplip/base/password.py", line 85, in get_distro_name
os_name = platform.dist()[0]
AttributeError: module 'platform' has no attribute 'dist'
During handling of the above exception, another exception occurred:
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/ui4/devmgr5.py", line 189, 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 118, in __init__
self.__readAuthType() # self.__authType
File "/usr/share/hplip/base/password.py", line 140, in __readAuthType
distro_name = get_distro_name().lower()
File "/usr/share/hplip/base/password.py", line 87, in get_distro_name
import distro
ModuleNotFoundError: No module named 'distro'
me@desktop:~$EDIT: I'm running slackware64-current (with ktown)


I poked around in the /usr/lib64/python3.8/site-packages/pip/_vendor directory and didn't see the usual *.pyc files like are in the /usr/lib64/python2.7/site-packages/pip/_vendor directory.
I'm wondering if python 3.8 is the cause or do I need to look elsewhere?
Code:me@desktop:~$ hp-toolbox
/usr/share/hplip/base/utils.py:2061: SyntaxWarning: "is" with a literal. Did you mean "=="?
if weburl is "" or weburl is None:
HP Linux Imaging and Printing System (ver. 3.19.12)
HP Device Manager ver. 15.0
Copyright (c) 2001-18 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.
/usr/share/hplip/installer/core_install.py:2074: SyntaxWarning: "is" with a literal. Did you mean "=="?
if home_dir is "":
/usr/share/hplip/ui4/devmgr5_base.py:287: SyntaxWarning: "is not" with a literal. Did you mean "!="?
if self.latest_available_version is not "":
/usr/share/hplip/ui4/devmgr5_base.py:409: SyntaxWarning: "is not" with a literal. Did you mean "!="?
if self.latest_available_version is not "":
warning: Reportlab not installed. Fax coverpages disabled.
warning: Please install version 2.0+ of Reportlab for coverpage support.
Traceback (most recent call last):
File "/usr/share/hplip/base/password.py", line 85, in get_distro_name
os_name = platform.dist()[0]
AttributeError: module 'platform' has no attribute 'dist'
During handling of the above exception, another exception occurred:
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/ui4/devmgr5.py", line 189, 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 118, in __init__
self.__readAuthType() # self.__authType
File "/usr/share/hplip/base/password.py", line 140, in __readAuthType
distro_name = get_distro_name().lower()
File "/usr/share/hplip/base/password.py", line 87, in get_distro_name
import distro
ModuleNotFoundError: No module named 'distro'
me@desktop:~$EDIT: I'm running slackware64-current (with ktown)