The officially official Devuan Forum!

You are not logged in.

#1 2023-02-01 09:43:03

fred43
Member
Registered: 2018-08-03
Posts: 13  

Devuan daedalus: Hack to exec hplip-3.22.10-plugin.run for the scanner

Problem:
There seems to be a mismatch between the devuan supplied Python3 and the HPLIP supplied python3 script. Hence the hplip-3.22.10-plugin.run will fail to install the plugin for the scanner.

Solution:
1. Make a backup of the files we change!

2. Change temporarily the content of "/etc/os-release" to:

PRETTY_NAME="Debian GNU/Linux bookworm/sid"
NAME="Debian GNU/Linux"
ID=debian
HOME_URL="https://www.debian.org/"
SUPPORT_URL="https://www.debian.org/support"
BUG_REPORT_URL="https://bugs.debian.org/"

Also change temporarily in the file "/usr/share/hplip/base/password.py" the following:

On line 119 and 322
distro_name = get_distro_std_name(os_name)
to
distro_name = get_distro_name()

3. The command $ ./hplip-3.22.10-plugin.run will now install the plugin.

4. After the plugin has been installed reverse the changes.

Last edited by fred43 (2023-02-01 09:45:11)

Offline

#2 2023-02-01 12:21:44

aluma
Member
Registered: 2022-10-26
Posts: 533  

Re: Devuan daedalus: Hack to exec hplip-3.22.10-plugin.run for the scanner

This issue started after last year's update Python3 and not only in Debian.
In my experience, the hp-setup GUI does not work.
At the same time, I managed to install the printer in interactive mode without any problems:

hp-setup -i

Offline

#3 2023-02-01 21:34:00

fred43
Member
Registered: 2018-08-03
Posts: 13  

Re: Devuan daedalus: Hack to exec hplip-3.22.10-plugin.run for the scanner

Thank you for your input.

I personally set up the printing via localhost:631 and the HP-Postscript-driver.

My problem started when I wanted to use the scanning facility of the printer. 'hp-plugin' didn't work. For hplip_3.22_6 I got around it by manually downloading the plugin and exchanging the devuan 'os-release' file with the debian one.

For hplip_3.22_10 I had to make changes to /usr/share/hplip/base/passwor.py as well. It does the job for now. wink

Last edited by fred43 (2023-02-01 21:36:04)

Offline

#4 2023-02-02 09:21:26

aluma
Member
Registered: 2022-10-26
Posts: 533  

Re: Devuan daedalus: Hack to exec hplip-3.22.10-plugin.run for the scanner

Often during installation there is a problem with hplip-*-plugin.run, it is available in the browser, but the hp-setup program cannot download it.

You can download it yourself to your computer and specify the path to it during installation.
Here is HP official site and unofficial
https://developers.hp.com/hp-linux-imag … ng/plugins
https://www.openprinting.org/download/p … P/plugins/

Offline

Board footer