You are not logged in.

#1 2020-01-02 06:52:24

likemike
Member
Registered: 2019-12-29
Posts: 54

[SOLVED]does HPLIP installer work on Arch? hplip-3.19.12.run fails

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

#2 2020-01-02 06:55:48

jasonwryan
Anarchist
From: .nz
Registered: 2009-05-09
Posts: 30,426
Website

Re: [SOLVED]does HPLIP installer work on Arch? hplip-3.19.12.run fails


Arch + dwm   •   Mercurial repos  •   Surfraw

Registered Linux User #482438

Offline

#3 2020-01-03 02:51:17

likemike
Member
Registered: 2019-12-29
Posts: 54

Re: [SOLVED]does HPLIP installer work on Arch? hplip-3.19.12.run fails

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 hplip

Then 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

Board footer

Powered by FluxBB