You are not logged in.
Hello, I've been attempting to add an hp printer using CUPS and I'm wondering whether anyone has gotten the hplip installer (hplip-3.19.12.run) to work. I see that Arch is not a supported distro for it but manjaro is. I think I need hplip because I cannot download the driver for my printer without it.
I downloaded the install scrip and then when I "sh hplip-3.19.12.run" it crashes with the following errors:
[likemike@Thinkpad-X220 ~/Downloads]$ sh hplip-3.19.12.run
Creating directory hplip-3.19.12
Verifying archive integrity... All good.
Uncompressing HPLIP 3.19.12 Self Extracting Archive........................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................
HP Linux Imaging and Printing System (ver. 3.19.12)
HPLIP Installer ver. 5.1
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.
Installer log saved in: hplip-install_Thu-02-Jan-2020_00:58:40.log
Traceback (most recent call last):
File "/home/likemike/Downloads/hplip-3.19.12/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 "./install.py", line 241, in <module>
text_install.start(language, auto, test_depends, test_unknown, assume_network, max_retries, enable, disable)
File "/home/likemike/Downloads/hplip-3.19.12/installer/text_install.py", line 63, in start
core = CoreInstall(MODE_INSTALLER, INTERACTIVE_MODE)
File "/home/likemike/Downloads/hplip-3.19.12/installer/core_install.py", line 240, in __init__
self.passwordObj = password.Password(ui_mode)
File "/home/likemike/Downloads/hplip-3.19.12/base/password.py", line 118, in __init__
self.__readAuthType() # self.__authType
File "/home/likemike/Downloads/hplip-3.19.12/base/password.py", line 140, in __readAuthType
distro_name = get_distro_name().lower()
File "/home/likemike/Downloads/hplip-3.19.12/base/password.py", line 87, in get_distro_name
import distro
ModuleNotFoundError: No module named 'distro'I found a post on https://bugs.archlinux.org/task/64656 that said commenting out the following lines will resolve the issue (although some of the error messages I received were not experienced by the person in the post.)
os_name = platform.dist()[0]
except AttributeError:
import distro
os_name = distro.linux_distribution()[0]
This didn't mitigate any of the error messages.
I am hoping someone will offer some instruction or things I can try to rule things out. There was no useful information in the log file it pointed me too. Advice on commands I can run to provide more clues for this question is also welcome.
Thanks,
-likemike
Last edited by likemike (2020-01-03 03:19:50)
Offline
1. Use code tags when pasting to the boards: https://wiki.archlinux.org/index.php/Co … s_and_code
Offline
Thank you, I got it to work. I entered the code tags.
For those who may encounter the same problem, download the hplip package
sudo pacman -S hplipThen navigate to the CUPS web interface at: http://localhost:631 and go to the administration tab to add the printer.
Last edited by likemike (2020-01-03 03:06:32)
Offline