Hplip 3.20.6 dependencies

Bug #1888044 reported by Andrew Laughton
12
This bug affects 2 people
Affects Status Importance Assigned to Milestone
HPLIP
In Progress
Undecided
Unassigned

Bug Description

hplip-3.20.6.run shows that the following dependencies are not installed;
Package-Name Component Required/Optional
pyqt5-dbus gui_qt5 OPTIONAL
pil scan OPTIONAL
reportlab fax OPTIONAL
pyqt5 gui_qt5 REQUIRED
python-notify gui_qt5 OPTIONAL

These packages do not exist in Kubuntu 20.04
I have a package called python3-pyqt5 that is installed, but hplip-3.20.6.run does not pick it up.

Tags: hplip kubuntu
Revision history for this message
Mark Reid (mrreid) wrote :

I recently upgraded to Ubuntu 20.04.

I've just overcome this same missing dependencies problem installing HPLIP 3.20.6 after weeks of stumbling around in the dark.

My 1st problem was python 2.7 was in use. Fixed this with a .bash_aliases file containing:

alias python='/usr/bin/python3'

logged out and back in and had python 3.8

Still no joy but at least HPLIP installation no longer complained about python 2.7 being in use. Dependencies (as above) still missing.

The thing that fixed it was:

sudo pip3 install pyqt5.sip

HPLIP then installed and I've a fully operational (print/scan/fax) again.

Revision history for this message
Andrew Laughton (laughton-andrew) wrote : Re: [Bug 1888044] Re: Hplip 3.20.6 dependencies

I added the "alias python='/usr/bin/python3'" to the ~./.bash_aliases file,
rebooted.
Python 3.8 now starts when I enter the Python shell.
I do not remember this being an error message but I did it anyway.

sudo apt-get install python3-pip then
sudo pip3 install pyqt5.sip went OK.

Tried to run ./hplip-3.20.6.run and still had the same errors as before.

Any other hints ?

On Sat, 18 Jul 2020 at 18:05, Mark Reid <email address hidden> wrote:

> I recently upgraded to Ubuntu 20.04.
>
> I've just overcome this same missing dependencies problem installing
> HPLIP 3.20.6 after weeks of stumbling around in the dark.
>
> My 1st problem was python 2.7 was in use. Fixed this with a
> .bash_aliases file containing:
>
> alias python='/usr/bin/python3'
>
> logged out and back in and had python 3.8
>
> Still no joy but at least HPLIP installation no longer complained about
> python 2.7 being in use. Dependencies (as above) still missing.
>
> The thing that fixed it was:
>
> sudo pip3 install pyqt5.sip
>
>
> HPLIP then installed and I've a fully operational (print/scan/fax) again.
>
> --
> You received this bug notification because you are subscribed to the bug
> report.
> https://bugs.launchpad.net/bugs/1888044
>
> Title:
> Hplip 3.20.6 dependencies
>
> To manage notifications about this bug go to:
> https://bugs.launchpad.net/hplip/+bug/1888044/+subscriptions
>

--
Andrew

Revision history for this message
Mark Reid (mrreid) wrote :

I'll try to be more precise but my fix was a lot of trial and error.

I switched from python 2.7 to python 3.8 via .bash_aliases (as stated in previous post)

I made sure HPLIP was uninstalled (via Synaptic Package Manager as HPLIP was part of the 20.04 distribution). I also cleaned up (deleted) the directories and files left behind by previous HPLIP installation attempts. These were all in the directory(ies) where I had ran HPLIP installation attempts.

I made sure PyQt5 was actually installed (pip3 install pyqt5); in my case it was; then I installed the SIP (pip3 install pyqt5.sip)

So basically I had a "clean" (free of HPLIP) system, with PyQt5 and it's corresponding SIP installed and the system using python 3.8 rather than python 2.7.

That's when "sh hplip-3.20.6.run" worked for me.

Changed in hplip:
status: New → In Progress
Revision history for this message
Andrew Laughton (laughton-andrew) wrote :
Download full text (12.2 KiB)

Hi Shivani

I was trying to get my HP Color LaserJet Pro MFP M177fw to work with Xsane.
I have had it working in the past, but now it keeps coming up with
"Failed to open device
'hpaio:/net/hp_color_laserjet_pro_mfp_m177fw?ip=192.168.43.63&queue=false'.
Error during device I/O "

I was trying to update to the latest version of hplip in case the problem
had been fixed, however after viewing the changes between 3.20.3 and 3.20.6
there was nothing changed that was relevant, so I have stopped trying.

I also discovered that HP Device Manager ver. 15.0, /usr/bin/hp-toolbox
comes up with an error "error: No module named 'PyQt4'"
For some unknown reason this is not a dependency, and Pyqt4 does not exist
in the Kubuntu repositories.
There are a number of Pyqt5 packages, so I am guessing that I need an
updated version of HP Device Manager, which is not available.

Might be time to upgrade to a Canon printer with sane support.

In case you are interested the following is the output from
/usr/bin/hp-toolbox and /usr/bin/hp-check
It includes the comment that "Ubuntu-20.04 version is not supported."
===========================================================================================
andrew@Alienware-17:~/Downloads/Deb$ /usr/bin/hp-toolbox

HP Linux Imaging and Printing System (ver. 3.20.3)
HP Device Manager ver. 15.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.

error: No module named 'PyQt4'

===========================================================================================
andrew@Alienware-17:~/Downloads/Deb$ /usr/bin/hp-check
Saving output in log file: /home/andrew/Downloads/Deb/hp-check.log

HP Linux Imaging and Printing System (ver. 3.20.3)
Dependency/Version Check Utility ver. 15.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.

Note: hp-check can be run in three modes:
1. Compile-time check mode (-c or --compile): Use this mode before
compiling the HPLIP supplied tarball (.tar.gz or .run) to determine if the
proper dependencies are
installed to successfully compile HPLIP.

2. Run-time check mode (-r or --run): Use this mode to determine if a
distro supplied package (.deb, .rpm, etc) or an already built HPLIP
supplied tarball has the proper
dependencies installed to successfully run.

3. Both compile- and run-time check mode (-b or --both) (Default): This
mode will check both of the above cases (both compile- and run-time
dependencies).

Check types:

a. EXTERNALDEP - External Dependencies

b. GENERALDEP - General Dependencies (required both at compile and run
time)

c. COMPILEDEP - Compile time Dependencies

d. [All are run-time checks]

PYEXT SCANCONF QUEUES PERMISSION

Status Types:
    OK
    MISSING - Missing Dependency or Permission or Plug-in
    INCOMPAT - Incompatible dependency-version or Plugin-version

warning: ubuntu-20.04 version is not supported. Using ubunt...

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.