SlackwareThis Forum is for the discussion of Slackware Linux.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
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:~$
I have the python-pip package installed with all its files. I see from you post that your system doesn't have a 3.8 distro.pyc either. Then I wonder what is going on with hplip on my system?
well, looking better at it, it seems an additional python-distro package is needed: try this (you have to build yourself one using a SlackBuild), the explanation should be in the slack-desc
Distribution: Slackware64-current with "True Multilib" and KDE4Town.
Posts: 9,085
Rep:
Quote:
Originally Posted by ponce
well, looking better at it, it seems an additional python-distro package is needed: try this (you have to build yourself one using a SlackBuild), the explanation should be in the slack-desc
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.