hplip-3.20.5 installer fails on Ubuntu 20.04 LTS

Asked by Mark Drone

HPLIP-Version: HPLIP 3.20.5
Kernel: 5.4.0-29-generic x86_64
Distro: Ubuntu 20.04 LTS (Focal Fossa)
Desktop: MATE 1.24.0
Printer: HP ENVY Photo 7100
Python Version: Python 3.8.2

Relevant output of hp-check -t :

warning: Printer is not HPLIP installed. Printers must use the hp: or hpfax: CUPS backend for HP-Devices.

-----------
| SUMMARY |
-----------

Missing Required Dependencies
-----------------------------
error: 'gtk2-engines-pixbuf' package is missing/incompatible
error: 'python-pyqt5' package is missing/incompatible

Missing Optional Dependencies
-----------------------------
error: 'python-dbus.mainloop.pyqt5' package is missing/incompatible
error: 'python-reportlab' package is missing/incompatible
error: 'python-notify' package is missing/incompatible

Total Errors: 4
Total Warnings: 1

I downloaded the *.deb packages above from older Ubuntu repositories and tried installing them with dpkg, but there were numerous dependencies that could not be satisfied. Most fo the incompatibilities appear to stem from the requirement of older versions of Python.

Will there be any effort to remedy these incompatibilities?

Question information

Language:
English Edit question
Status:
Answered
For:
HPLIP Edit question
Assignee:
No assignee Edit question
Last query:
Last reply:
Revision history for this message
Manfred Hampl (m-hampl) said :
#1

Try

sudo apt install python3-dbus.mainloop.pyqt5 python3-reportlab python3-notify2

and then re-run the installer.
It seems that the names of the packages for Ubuntu 20.04 are not correctly defined in the installer scripts.

Revision history for this message
SCHUH (marc-schuh-r) said :
#2

Good evening
I just tried the proposition of Manfred Hampl but without success

marc@PC-MARC:~$ sudo apt install python3-dbus.mainloop.pyqt5 python3-reportlab python3-notify2
[sudo] Mot de passe de marc :
Lecture des listes de paquets... Fait
Construction de l'arbre des dépendances
Lecture des informations d'état... Fait
python3-notify2 est déjà la version la plus récente (0.3-4).
Les paquets supplémentaires suivants seront installés :
  libimagequant0 python3-olefile python3-pil python3-renderpm
  python3-reportlab-accel
Paquets suggérés :
  python-pil-doc python3-pil-dbg python3-renderpm-dbg
  python3-egenix-mxtexttools python-reportlab-doc
Les NOUVEAUX paquets suivants seront installés :
  libimagequant0 python3-dbus.mainloop.pyqt5 python3-olefile python3-pil
  python3-renderpm python3-reportlab python3-reportlab-accel
0 mis à jour, 7 nouvellement installés, 0 à enlever et 0 non mis à jour.
Il est nécessaire de prendre 0 o/1 068 ko dans les archives.
Après cette opération, 5 042 ko d'espace disque supplémentaires seront utilisés.
Souhaitez-vous continuer ? [O/n] o
Sélection du paquet libimagequant0:amd64 précédemment désélectionné.
(Lecture de la base de données... 357514 fichiers et répertoires déjà installés.)
Préparation du dépaquetage de .../0-libimagequant0_2.12.2-1.1_amd64.deb ...
Dépaquetage de libimagequant0:amd64 (2.12.2-1.1) ...
Sélection du paquet python3-dbus.mainloop.pyqt5 précédemment désélectionné.
Préparation du dépaquetage de .../1-python3-dbus.mainloop.pyqt5_5.14.1+dfsg-3bui
ld1_amd64.deb ...
Dépaquetage de python3-dbus.mainloop.pyqt5 (5.14.1+dfsg-3build1) ...
Sélection du paquet python3-olefile précédemment désélectionné.
Préparation du dépaquetage de .../2-python3-olefile_0.46-2_all.deb ...
Dépaquetage de python3-olefile (0.46-2) ...
Sélection du paquet python3-pil:amd64 précédemment désélectionné.
Préparation du dépaquetage de .../3-python3-pil_7.0.0-4build1_amd64.deb ...
Dépaquetage de python3-pil:amd64 (7.0.0-4build1) ...
Sélection du paquet python3-renderpm:amd64 précédemment désélectionné.
Préparation du dépaquetage de .../4-python3-renderpm_3.5.34-1ubuntu1_amd64.deb .
..
Dépaquetage de python3-renderpm:amd64 (3.5.34-1ubuntu1) ...
Sélection du paquet python3-reportlab-accel:amd64 précédemment désélectionné.
Préparation du dépaquetage de .../5-python3-reportlab-accel_3.5.34-1ubuntu1_amd6
4.deb ...
Dépaquetage de python3-reportlab-accel:amd64 (3.5.34-1ubuntu1) ...
Sélection du paquet python3-reportlab précédemment désélectionné.
Préparation du dépaquetage de .../6-python3-reportlab_3.5.34-1ubuntu1_all.deb ..
.
Dépaquetage de python3-reportlab (3.5.34-1ubuntu1) ...
Paramétrage de python3-dbus.mainloop.pyqt5 (5.14.1+dfsg-3build1) ...
Paramétrage de python3-renderpm:amd64 (3.5.34-1ubuntu1) ...
Paramétrage de python3-olefile (0.46-2) ...
Paramétrage de python3-reportlab-accel:amd64 (3.5.34-1ubuntu1) ...
Paramétrage de libimagequant0:amd64 (2.12.2-1.1) ...
Paramétrage de python3-pil:amd64 (7.0.0-4build1) ...
Paramétrage de python3-reportlab (3.5.34-1ubuntu1) ...
Traitement des actions différées (« triggers ») pour libc-bin (2.31-0ubuntu9) ..
.
marc@PC-MARC:~$ sh hplip-3.20.5.run
Creating directory hplip-3.20.5
Verifying archive integrity... All good.
Uncompressing HPLIP 3.20.5 Self Extracting Archive.
…………………………………………………..

HP Linux Imaging and Printing System (ver. 3.20.5)
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_Sun-17-May-2020_20:48:09.log

\
note: Defaults for each question are maked with a '*'. Press <enter> to accept the default.

INSTALLATION MODE
-----------------
Automatic mode will install the full HPLIP solution with the most common options.
Custom mode allows you to choose installation options to fit specific requirements.

Please choose the installation mode (a=automatic*, c=custom, q=quit) : a

INTRODUCTION
------------
This installer will install HPLIP version 3.20.5 on your computer.
Please close any running package management systems now (YaST, Adept, Synaptic, Up2date, etc).

DISTRO/OS CONFIRMATION
----------------------
Distro appears to be Ubuntu 20.04.

Is "Ubuntu 20.04" your correct distro/OS and version (y=yes*, n=no, q=quit) ? y

Initializing. Please wait...

ENTER USER PASSWORD
-------------------
Please enter the sudoer (marc)'s password:

INSTALLATION NOTES
------------------
Enable the universe/multiverse repositories. Also be sure you are using the Ubuntu "Main" Repositories. See: https://help.ubuntu.com/community/Repositories/Ubuntu for more information. Disable the CD-ROM/DVD source if you do not have the Ubuntu installation media inserted in the drive.

Please read the installation notes. Press <enter> to continue or 'q' to quit:

SECURITY PACKAGES
-----------------
AppArmor is installed.
AppArmor protects the application from external intrusion attempts making the application secure

Would you like to have this installer install the hplip specific policy/profile (y=yes*, n=no, q=quit) ? y

RUNNING PRE-INSTALL COMMANDS
----------------------------
OK

MISSING DEPENDENCIES
--------------------
Following dependencies are not installed. HPLIP will not work if all REQUIRED dependencies are not installed and some of the HPLIP features will not work if OPTIONAL dependencies are not installed.
Package-Name Component Required/Optional
pyqt5-dbus gui_qt5 OPTIONAL
pil scan OPTIONAL
python-dbus fax REQUIRED
reportlab fax OPTIONAL
pyqt5 gui_qt5 REQUIRED
python-notify gui_qt5 OPTIONAL
Do you want to install these missing dependencies (y=yes*, n=no, q=quit) ? y

INSTALL MISSING REQUIRED DEPENDENCIES
-------------------------------------
note: Installation of dependencies requires an active internet connection.
warning: Missing REQUIRED dependency: pyqt5 (PyQt 5- Qt interface for Python (for Qt version 4.x))
warning: Missing REQUIRED dependency: python-dbus (Python DBus - Python bindings for DBus)

INSTALL MISSING OPTIONAL DEPENDENCIES
-------------------------------------
note: Installation of dependencies requires an active internet connection.
warning: Missing OPTIONAL dependency for option 'gui_qt5': pyqt5-dbus (PyQt 5 DBus - DBus Support for PyQt5)
warning: Missing OPTIONAL dependency for option 'gui_qt5': python-notify (Python libnotify - Python bindings for the libnotify Desktop notifications)
warning: Missing OPTIONAL dependency for option 'fax': reportlab (Reportlab - PDF library for Python)
warning: Missing OPTIONAL dependency for option 'scan': pil (PIL - Python Imaging Library (required for commandline scanning with hp-scan))
warning: This installer cannot install 'pil' for your distro/OS and/or version.

CHECKING FOR NETWORK CONNECTION
-------------------------------
Network connection present.

RUNNING PRE-PACKAGE COMMANDS
----------------------------
sudo dpkg --configure -a (Pre-depend step 1)
sudo apt-get install --yes --force-yes -f (Pre-depend step 2)
sudo apt-get update (Pre-depend step 3)
OK

DEPENDENCY AND CONFLICT RESOLUTION
----------------------------------
Running 'sudo apt-get install --assume-yes gtk2-engines-pixbuf'
Please wait, this may take several minutes...
Running 'sudo apt-get install --assume-yes python-pyqt5'
Please wait, this may take several minutes...
error: Command failed. Re-try #1...
Running 'sudo apt-get install --assume-yes python-pyqt5'
Please wait, this may take several minutes...
error: Command failed. Re-try #2...
Running 'sudo apt-get install --assume-yes python-pyqt5'
Please wait, this may take several minutes...
error: Command failed. Re-try #3...
Running 'sudo apt-get install --assume-yes python-pyqt5'
Please wait, this may take several minutes...
error: Package install command failed with error code 100
Would you like to retry installing the missing package(s) (y=yes*, n=no, q=quit) ? y
Running 'sudo apt-get install --assume-yes python-pyqt5'
Please wait, this may take several minutes...
error: Package install command failed with error code 100
Would you like to retry installing the missing package(s) (y=yes*, n=no, q=quit) ? y
Running 'sudo apt-get install --assume-yes python-pyqt5'
Please wait, this may take several minutes...
error: Package install command failed with error code 100
Would you like to retry installing the missing package(s) (y=yes*, n=no, q=quit) ? n
warning: Some HPLIP functionality might not function due to missing package(s).
Running 'sudo apt-get install --assume-yes python-dbus'
Please wait, this may take several minutes...
Running 'sudo apt-get install --assume-yes python-gobject'
Please wait, this may take several minutes...
Running 'sudo apt-get install --assume-yes python-dbus.mainloop.pyqt5'
Please wait, this may take several minutes...
error: Command failed. Re-try #1...
Running 'sudo apt-get install --assume-yes python-dbus.mainloop.pyqt5'
Please wait, this may take several minutes...
error: Command failed. Re-try #2...
Running 'sudo apt-get install --assume-yes python-dbus.mainloop.pyqt5'
Please wait, this may take several minutes...
error: Command failed. Re-try #3...
Running 'sudo apt-get install --assume-yes python-dbus.mainloop.pyqt5'
Please wait, this may take several minutes...
error: Package install command failed with error code 100
Would you like to retry installing the missing package(s) (y=yes*, n=no, q=quit) ? y
Running 'sudo apt-get install --assume-yes python-dbus.mainloop.pyqt5'
Please wait, this may take several minutes...
error: Package install command failed with error code 100
Would you like to retry installing the missing package(s) (y=yes*, n=no, q=quit) ? n
warning: Some HPLIP functionality might not function due to missing package(s).
Running 'sudo apt-get install --assume-yes python-notify'
Please wait, this may take several minutes...
error: Command failed. Re-try #1...
Running 'sudo apt-get install --assume-yes python-notify'
Please wait, this may take several minutes...
error: Command failed. Re-try #2...
Running 'sudo apt-get install --assume-yes python-notify'
Please wait, this may take several minutes...
error: Command failed. Re-try #3...
Running 'sudo apt-get install --assume-yes python-notify'
Please wait, this may take several minutes...
error: Package install command failed with error code 100
Would you like to retry installing the missing package(s) (y=yes*, n=no, q=quit) ? y
Running 'sudo apt-get install --assume-yes python-notify'
Please wait, this may take several minutes...
error: Package install command failed with error code 100
Would you like to retry installing the missing package(s) (y=yes*, n=no, q=quit) ? n
warning: Some HPLIP functionality might not function due to missing package(s).
Running 'sudo apt-get install --assume-yes python-reportlab'
Please wait, this may take several minutes...
error: Command failed. Re-try #1...
Running 'sudo apt-get install --assume-yes python-reportlab'
Please wait, this may take several minutes...
error: Command failed. Re-try #2...
Running 'sudo apt-get install --assume-yes python-reportlab'
Please wait, this may take several minutes...
error: Command failed. Re-try #3...
Running 'sudo apt-get install --assume-yes python-reportlab'
Please wait, this may take several minutes...
error: Package install command failed with error code 100
Would you like to retry installing the missing package(s) (y=yes*, n=no, q=quit) ? y
Running 'sudo apt-get install --assume-yes python-reportlab'
Please wait, this may take several minutes...
error: Package install command failed with error code 100
Would you like to retry installing the missing package(s) (y=yes*, n=no, q=quit) ? n
warning: Some HPLIP functionality might not function due to missing package(s).
error: A required dependency 'pyqt5 (PyQt 5- Qt interface for Python (for Qt version 4.x))' is still missing.

RUNNING POST-PACKAGE COMMANDS
-----------------------------
OK

RE-CHECKING DEPENDENCIES
------------------------
error: A required dependency 'pyqt5 (PyQt 5- Qt interface for Python (for Qt version 4.x))' is still missing.
error: Installation cannot continue without this dependency.
error: Please manually install this dependency and re-run this installer.

Revision history for this message
Manfred Hampl (m-hampl) said :
#3

It seems that you are missing another one

sudo apt install python3-pyqt5

Revision history for this message
SCHUH (marc-schuh-r) said :
#4

Hi Manfred

I'm really happy to help you

python3-pytq5 is already installed via synaptic

Maybe there is a confusion between python-pyqt5 and python*3*-pytq5!?

Have a nice evening

Marc  (aus dem schönem Elsass)

Le 17/05/2020 à 21:35, Manfred Hampl a écrit :
> Question #690781 on HPLIP changed:
> https://answers.launchpad.net/hplip/+question/690781
>
> Manfred Hampl proposed the following answer:
> It seems that you are missing another one
>
> sudo apt install python3-pyqt5
>

Revision history for this message
Manfred Hampl (m-hampl) said :
#5

@Marc:
Please do not put information about YOUR system into the question document of somebody else, but create a question document of your own.

and yes, the list of required packages for Ubuntu 20.04 is not correct in HPLIP Version 3.20.5

Revision history for this message
SCHUH (marc-schuh-r) said :
#6

@Manfred

Ok sorry, understood, in the future I will create a question document of
my ow

Thanks for your help

Le 18/05/2020 à 09:15, Manfred Hampl a écrit :
> Question #690781 on HPLIP changed:
> https://answers.launchpad.net/hplip/+question/690781
>
> Manfred Hampl proposed the following answer:
> @Marc:
> Please do not put information about YOUR system into the question document of somebody else, but create a question document of your own.
>
> and yes, the list of required packages for Ubuntu 20.04 is not correct
> in HPLIP Version 3.20.5
>

Revision history for this message
Mark Drone (mdrone) said :
#7

Thanks for the advice:

python3-reportlab is already the newest version (3.5.34-1ubuntu1).
python3-reportlab set to manually installed.
python3-dbus.mainloop.pyqt5 is already the newest version (5.14.1+dfsg-3build1).
python3-notify2 is already the newest version (0.3-4).
python3-pyqt5 is already the newest version (5.14.1+dfsg-3build1).
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.

Unfortunately, this doesn't cure the problem.

Revision history for this message
Manfred Hampl (m-hampl) said :
#8

Which packages does the installer now complain about?

Revision history for this message
Mark Drone (mdrone) said :
#9

Same old complaints.

I started with a clean slate and ran ./hplip-3.20.5.run again

DEPENDENCY AND CONFLICT RESOLUTION
----------------------------------
Running 'sudo apt-get install --assume-yes gtk2-engines-pixbuf'
Please wait, this may take several minutes...
Running 'sudo apt-get install --assume-yes python-pyqt5'
Please wait, this may take several minutes...
error: Command failed. Re-try #1...
Running 'sudo apt-get install --assume-yes python-pyqt5'
Please wait, this may take several minutes...
error: Command failed. Re-try #2...
Running 'sudo apt-get install --assume-yes python-pyqt5'
Please wait, this may take several minutes...
error: Command failed. Re-try #3...
Running 'sudo apt-get install --assume-yes python-pyqt5'
Please wait, this may take several minutes...
error: Package install command failed with error code 100
Would you like to retry installing the missing package(s) (y=yes*, n=no, q=quit)
 ? n
warning: Some HPLIP functionality might not function due to missing package(s).
Running 'sudo apt-get install --assume-yes python-dbus.mainloop.pyqt5'
Please wait, this may take several minutes...
error: Command failed. Re-try #1...
Running 'sudo apt-get install --assume-yes python-dbus.mainloop.pyqt5'
Please wait, this may take several minutes...
error: Command failed. Re-try #2...
Running 'sudo apt-get install --assume-yes python-dbus.mainloop.pyqt5'
Please wait, this may take several minutes...
error: Command failed. Re-try #3...
Running 'sudo apt-get install --assume-yes python-dbus.mainloop.pyqt5'
Please wait, this may take several minutes...
error: Package install command failed with error code 100
Would you like to retry installing the missing package(s) (y=yes*, n=no, q=quit) ?
 ? n
warning: Some HPLIP functionality might not function due to missing package(s).
Running 'sudo apt-get install --assume-yes python-notify'
Please wait, this may take several minutes...
error: Command failed. Re-try #1...
Running 'sudo apt-get install --assume-yes python-notify'
Please wait, this may take several minutes...
error: Command failed. Re-try #2...
Running 'sudo apt-get install --assume-yes python-notify'
Please wait, this may take several minutes...
error: Command failed. Re-try #3...
Running 'sudo apt-get install --assume-yes python-notify'
Please wait, this may take several minutes...
error: Package install command failed with error code 100
Would you like to retry installing the missing package(s) (y=yes*, n=no, q=quit) ?
 ? n
warning: Some HPLIP functionality might not function due to missing package(s).
Running 'sudo apt-get install --assume-yes python-reportlab'
Please wait, this may take several minutes...
error: Command failed. Re-try #1...
Running 'sudo apt-get install --assume-yes python-reportlab'
Please wait, this may take several minutes...
error: Command failed. Re-try #2...
Running 'sudo apt-get install --assume-yes python-reportlab'
Please wait, this may take several minutes...
error: Command failed. Re-try #3...
Running 'sudo apt-get install --assume-yes python-reportlab'
Please wait, this may take several minutes...
error: Package install command failed with error code 100
Would you like to retry installing the missing package(s) (y=yes*, n=no, q=quit) ?
 ? n
warning: Some HPLIP functionality might not function due to missing package(s).
error: A required dependency 'pyqt5 (PyQt 5- Qt interface for Python (for Qt version 4.x))' is still missing.

RUNNING POST-PACKAGE COMMANDS
-----------------------------
OK

RE-CHECKING DEPENDENCIES
------------------------
error: A required dependency 'pyqt5 (PyQt 5- Qt interface for Python (for Qt version 4.x))' is still missing.
error: Installation cannot continue without this dependency.
error: Please manually install this dependency and re-run this installer.

$ python3 ./install.py

RUNNING SCANJET DEPENDENCY COMMANDS
-----------------------------------
sudo apt-get install --assume-yes python3-pip (Scanjet-depend step 1)
sudo pip3 install --upgrade pip (Scanjet-depend step 2)
sudo apt-get install --assume-yes libleptonica-dev (Scanjet-depend step 3)
sudo apt-get install --assume-yes tesseract-ocr (Scanjet-depend step 4)
sudo apt-get install --assume-yes libtesseract-dev (Scanjet-depend step 5)
sudo -H pip3 install tesserocr (Scanjet-depend step 6)
sudo -H pip3 install opencv-python (Scanjet-depend step 7)
sudo -H pip3 install PyPDF2 (Scanjet-depend step 8)
sudo -H pip3 install imutils (Scanjet-depend step 9)
sudo -H pip3 install ocrmypdf (Scanjet-depend step 10)
sudo -H pip3 install scikit-image (Scanjet-depend step 11)
sudo -H pip3 install scipy (Scanjet-depend step 12)
sudo apt-get install --assume-yes qpdf (Scanjet-depend step 13)
OK

Everything compiles properly. When it gets to the printer setup, I chose interactive mode (because GUI mode exits immediately) and here's what happens:

PRINTER SETUP
-------------
Please make sure your printer is connected and powered on at this time.
Do you want to setup printer in GUI mode? (u=GUI mode*, i=Interactive mode) : i
Running 'hp-setup -i' command....
Traceback (most recent call last):
  File "/usr/bin/hp-setup", line 48, in <module>
    from base import device, utils, tui, models, module, services, os_utils
  File "/usr/share/hplip/base/device.py", line 42, in <module>
    from . import status
  File "/usr/share/hplip/base/status.py", line 33, in <module>
    import cupsext
ImportError: libhpipp.so.0: failed to map segment from shared object
error: hp-setup failed. Please run hp-setup manually.

RE-STARTING HP_SYSTRAY
----------------------

HP Linux Imaging and Printing System (ver. 3.20.5)
System Tray Status Service ver. 2.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.

warning: GUI Modules PyQt4 and PyQt5 are not installed
error: hp-systray requires Qt4 GUI and DBus support. Exiting.

Once again, running hp-doctor finds the following:

Missing Required Dependencies
-----------------------------
error: 'gtk2-engines-pixbuf' package is missing/incompatible
error: 'python-pyqt5' package is missing/incompatible
Missing Optional Dependencies
-----------------------------
error: 'python-dbus.mainloop.pyqt5' package is missing/incompatible
error: 'python-reportlab' package is missing/incompatible

Do you want to update repository and Install missing/incompatible packages. (a=install all*, c=custom_install, s=skip):a
Updating repository
-------------------
cmd =sudo dpkg --configure -a
cmd =sudo apt-get install --yes --force-yes -f
cmd =sudo apt-get update
Installing Missing/Incompatible packages
----------------------------------------
cmd =sudo apt-get install --assume-yes python-notify
error: Failed to install 'python-notify' package, please install manually.
cmd =sudo apt-get install --assume-yes python-dbus.mainloop.pyqt5
error: Failed to install 'python-dbus.mainloop.pyqt5' package, please install manually.
cmd =sudo apt-get install --assume-yes gtk2-engines-pixbuf
cmd =sudo apt-get install --assume-yes python-reportlab
error: Failed to install 'python-reportlab' package, please install manually.
cmd =sudo apt-get install --assume-yes python-pyqt5
error: Failed to install 'python-pyqt5' package, please install manually.

error: 'python-notify' package is missing/incompatible

Alas . . . no hp-systray

Revision history for this message
Manfred Hampl (m-hampl) said :
#10

What output do you receive for the commands

which python
/usr/bin/env python --version
python --version
python -c 'import PyQt4'
python -c 'import PyQt5'
python2 -c 'import PyQt4'
python2 -c 'import PyQt5'
python3 -c 'import PyQt4'
python3 -c 'import PyQt5'

Revision history for this message
Mark Drone (mdrone) said :
#11

A little out of sequence, but output is as follows:

$ which python
/usr/bin/python

$ /usr/bin/env python --version
Python 3.8.2

$ python --version
Python 3.8.2

$ python -c 'import PyQt4'
Traceback (most recent call last):
  File "<string>", line 1, in <module>
ModuleNotFoundError: No module named 'PyQt4'

$ python2 -c 'import PyQt4'
Traceback (most recent call last):
  File "<string>", line 1, in <module>
ImportError: No module named PyQt4

$ python3 -c 'import PyQt4'
Traceback (most recent call last):
  File "<string>", line 1, in <module>
ModuleNotFoundError: No module named 'PyQt4'

$ python -c 'import PyQt5'

$ python2 -c 'import PyQt5'
Traceback (most recent call last):
  File "<string>", line 1, in <module>
ImportError: No module named PyQt5

$ python3 -c 'import PyQt5'

Revision history for this message
Manfred Hampl (m-hampl) said :
#12

I am sorry, I do not have a clue why the HPLIP installer does not identify that yo u already have the python-PyQt5 package installed.
I suggest that you create a bug report.

Revision history for this message
Mark Drone (mdrone) said :
#13

Thanks very much for your assistance, Manfred.

Revision history for this message
Marc DERUMAUX (marc-derumaux) said :
#14

For those like me who look forward a solution to make HP device working, here is a working process (thanks to that post : https://gitlab.com/sane-project/backends/-/issues/150). My own device is a HP scanjet pro 2500 f1 but probably it solves hplip for any other devices on 20.4.

I'm on Kubuntu 20.4 x64, Those steps where OK :

    sudo apt install hplip
    sudo apt purge hplip
    sudo apt autoremove
    sudo rm -rf /usr/share/hplip
    sudo apt install libsane-hpaio

hp-plugin couldn't download automatically so I had to get it from : https://developers.hp.com/hp-linux-imaging-and-printing/plugins And download 3.20.3 version of the two files hplip-3.20.3-plugin.run hplip-3.20.3-plugin.run.asc to make it compatible with distro packages. Then :

sudo hp-plugin -i

Indicate "p" to give path and if you're in the right folder, a dot as path : .

scanimage -L

detects the scanner

xsane, kscanlite or simple-scan works.

Can you help with this problem?

Provide an answer of your own, or ask Mark Drone for more information if necessary.

To post a message you must log in.