hplip-3.21.6 installation error on debian 11

Asked by Lasse Gismo

Hi.

System is Debian 11 with KDE, Python version is 3.9.2.

Following error came up during installation - what to do?

HP Linux Imaging and Printing System (ver. 3.21.6)
HPLIP Installer ver. 5.1

...

Installer log saved in: hplip-install_Mon-23-Aug-2021_15:56:55.log

Traceback (most recent call last):
  File "/home/pitt/Downloads/hplip-3.21.6/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 "/home/pitt/Downloads/hplip-3.21.6/./install.py", line 241, in <module>
    text_install.start(language, auto, test_depends, test_unknown, assume_network, max_retries, enable, disable)
  File "/home/pitt/Downloads/hplip-3.21.6/installer/text_install.py", line 63, in start
    core = CoreInstall(MODE_INSTALLER, INTERACTIVE_MODE)
  File "/home/pitt/Downloads/hplip-3.21.6/installer/core_install.py", line 241, in __init__
    self.passwordObj = password.Password(ui_mode)
  File "/home/pitt/Downloads/hplip-3.21.6/base/password.py", line 118, in __init__
    self.__readAuthType() # self.__authType
  File "/home/pitt/Downloads/hplip-3.21.6/base/password.py", line 141, in __readAuthType
    distro_name = get_distro_name().lower().replace(" ","")
  File "/home/pitt/Downloads/hplip-3.21.6/base/password.py", line 87, in get_distro_name
    import distro
ModuleNotFoundError: No module named 'distro'

regards
Lasse

Question information

Language:
English Edit question
Status:
Solved
For:
HPLIP Edit question
Assignee:
No assignee Edit question
Solved by:
Lasse Gismo
Solved:
Last query:
Last reply:
Revision history for this message
brian_p (claremont102) said :
#1

The printer model, please?

Revision history for this message
brian_p (claremont102) said :
#2

And - USB or network?

Revision history for this message
Lasse Gismo (lassegismo) said :
#3

HP CLJ 2600, via IP/USB printbox

Revision history for this message
brian_p (claremont102) said :
#4

This is an old printer model. Unless you are desperate to test
3.21.6 I would suggest using the package provided on Debian 11.

Revision history for this message
Lasse Gismo (lassegismo) said :
#5

Problem solved myself, thanks a lot.