hplip installer complaining about missing pyqt4-dbus and pyqt4 packages in Debian 9.3

Bug #1748598 reported by Josep Lladonosa
22
This bug affects 4 people
Affects Status Importance Assigned to Milestone
HPLIP
In Progress
Undecided
Afshan F

Bug Description

In the same way as the closed bug for Debian 8.7
(https://bugs.launchpad.net/hplip/+bug/1670181)
when hplip (3.17.11) is going to be installed in a Debian 9.3, it complains about missing dependencies and stops installation:

error: A required dependency 'pyqt4-dbus (PyQt 4 DBus - DBus Support for
PyQt4)' is still missing.
error: A required dependency 'pyqt4 (PyQt 4- Qt interface for Python
(for Qt version 4.x))' is still missing.
error: Installation cannot continue without these dependencies.
error: Please manually install this dependency and re-run this installer.

The fact is that it seems that installer takes Debian 9.1 distro config from ./installer/distros.dat to try installation but it fails.
If file distros.dat is updated with a section for 9.3 and a reference to it in same file, its installation works, so the point is that:
something is failing when installing hplip in a newer Debian version (9.3) using latest hplip's known distro version (9.1). I guess I could have taken out version numbers from previous sentence and that this is the part should be solved otherwise for each new Debian distro (and others?), there will be failed installations and bugs reported.

Thanks,
Josep

Revision history for this message
Josep Lladonosa (jepjep) wrote :

With this

"If file distros.dat is updated with a section for 9.3 and a reference to it in same file, its installation works"

I meant creating a section for 9.3 by just taking 9.1 section and changing all 9.1 by 9.3. Well, I only changed release date from it.

Revision history for this message
Narcis Garcia (narcisgarcia) wrote :

I suppose Debian 9.2 should be registered too. Or even better: Support any Debian 9.x with an unique profile.

Qt 4 dependencies should be updated for python-qt4-dbus and python-qt4 packages respectively.
In the meanwhile, a workaround is to choose "custom installation" and exclude Qt4 interface when asked.

Revision history for this message
Afshan F (afshan) wrote :

Hi Josep,

As Debian 9.2 and 9.3 is not yet supported by HPLIP, there will be missing packages which needs to get installed to complete the installation of HPLIP driver. So please install the missing dependencies manually until the support is given to Debian 9.2 and 9.3.

Regards,
Afshan

Changed in hplip:
assignee: nobody → Afshan F (afshan)
status: New → In Progress
Revision history for this message
Josep Lladonosa (jepjep) wrote :

Hi, Afshan,

Perhaps I did not express myself correctly:

Dependencies in 9.1, 9.2 and 9.3 are the same.

Installing in 9.1 is ok.
When installation is tried in 9.2 or 9.3, hplip installer takes 9.1 configuration to proceed but it fails complaining about dependencies. It should not complain because installation in 9.1 is successful.

By the way, pyqt4-dbus and pyqt4 packages, in Debian 9.x are python-qt4-dbus and python-qt4.

Thanks,
Josep

Revision history for this message
Dante León Marín Carril (leondante) wrote :

I came here only to say that these people are freaking stupid. Is amazing the answer after telling whit the issue is, and is amazing how only with a single name changing in a package you can have all your freaking work completely messed up. We need some heroes that solve this stupid issue of missing packages because a stupid 4 characters changing.

For love's sake! Is the same package!

Revision history for this message
Neil Dewhurst (neil.dewhurst) wrote :

Hello. I have this problem with Debian Stretch 9.8, that is to say the hplip installer fails do to missing package dependencies "pyqt4-dbus" & "pyqt4-dbus". These packages are in fact installed, but are currently named "python-qt4" & "python-qt4-dbus".

How to get past this name change issue. Should I edit a script, add a symbol link or add some extra name in a list file?

Thanks.

Revision history for this message
Marcello Messori (double-m) wrote :

I had the same issue with HPLIP 3.19.5 in a Debian 9.9: after installing the missing packages, the issue was still there.

I succeded in installing HPLIP by running the script hplip-3.19.5.run with no GUI :) by selecting c=custom in the section "INSTALLATION MODE" (and doing the same at the end of the installation process, using i=interective in "PRINTER SETUP").

HTH

Revision history for this message
Muhammad Faheem Mohd Ezani (faheemezani) wrote :

I ran a HPLIP 3.19.6 script on my Debian 10.0 and encountered the same error. Despite attempting to install "python-qt4-dbus" and "python-qt4", the same persists. Trying to install "pyqt4-dbus" and "pyqt4" packages also ended up futile because they were not recognized.

So, I followed the same way as Marcello Messori's steps (as posted on 2019-05-30) above but only disabled installation for qt4. These were my steps:

(1) Run the script: ./hplip-3.19.6.run

(2) When the script prompts 'Please choose the installation mode (a=automatic*, c=custom, q=quit) :', I chose 'c'

(3) When the script prompts 'Do you wish to enable 'Graphical User Interfaces (Qt4)' (y=yes*, n=no, q=quit) ?', I chose 'n'

(4) When the script prompts 'Do you wish to enable 'Graphical User Interfaces (Qt5)' (y=yes*, n=no, q=quit) ?', I chose 'y'

For the rest of the other prompts, I chose default options (marked with *).

After that, it successfully installs, and I managed to execute the 'hp-setup' command nicely and thereby print a test page!

Revision history for this message
christian (christn) wrote :

Dear faheemezani,
Thanks for this steps. Is actually helped in fixing the issues.
However, you forgot few critical steps in between within the process.
Bellow are what i have added in addition to yours.

(1) Run the script: ./hplip-3.19.6.run

(2) When the script prompts 'Please choose the installation mode (a=automatic*, c=custom, q=quit) :', I chose 'c'

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

(4) Would you like to install Custom Discrete Drivers or Class Drivers ( 'd'= Discrete Drivers*,'c'= Class Drivers,'q'= Quit)? : d

(5) Do you wish to enable 'Network/JetDirect I/O' (y=yes*, n=no, q=quit) ? y

(6) Do you wish to enable 'Graphical User Interfaces (Qt4)' (y=yes*, n=no, q=quit) ? n

(7) Do you wish to enable 'Graphical User Interfaces (Qt5)' (y=yes*, n=no, q=quit) ? y

(8) Do you wish to enable 'PC Send Fax support' (y=yes*, n=no, q=quit) ? y
Do you wish to enable 'Scanning support' (y=yes*, n=no, q=quit) ? y

(9) Do you wish to enable 'HPLIP documentation (HTML)' (y=yes*, n=no, q=quit) ? y

For the rest of the other prompts, I chose default options (marked with *).

After that, it successfully installs, and I managed to execute the 'hp-setup' command nicely and thereby print a test page!

It works for both ubutun 18.04 and Debian Buster 10.2 or 10.3
Thanks one more.

Revision history for this message
Vivaek Shivakumar (vivaek) wrote :

I'm running into the same issue. I tried the custom install as you describe, but it does not prompt me about GUI Qt4, it just skips from asking Network/JetDirect I/O to asking about GUI Qt5... and if I proceed it still ends up complaining about missing pyqt4 and pyqt4-dbus.

I'm on Debian 10.4

Revision history for this message
DrLecter (dalecter) wrote :

I've changed the hplip-3.x/installer/distros.dat file as follows, mnanually checked that python-qt4 and python-qt4-dbus were installed, followed #9 and installed successfully in Debian 10.5

Revision history for this message
carex (aclarck5) wrote :

I am running Debian Buster 10.9 and I am running in the same problems. See below.
I am lost.
Thanks for any help.

DEPENDENCY AND CONFLICT RESOLUTION
----------------------------------
Running 'su -c "apt-get install --force-yes -y gtk2-engines-pixbuf"'
Please wait, this may take several minutes...
Running 'su -c "apt-get install --force-yes -y python-pyqt5"'
Please wait, this may take several minutes...
Running 'su -c "apt-get install --force-yes -y python-dbus.mainloop.pyqt5"'
Please wait, this may take several minutes...
error: A required dependency 'pyqt4-dbus (PyQt 4 DBus - DBus Support for PyQt4)' is still missing.
error: A required dependency 'pyqt4 (PyQt 4- Qt interface for Python (for Qt version 4.x))' is still missing.

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

RE-CHECKING DEPENDENCIES
------------------------
error: A required dependency 'pyqt4-dbus (PyQt 4 DBus - DBus Support for PyQt4)' is still missing.
error: A required dependency 'pyqt4 (PyQt 4- Qt interface for Python (for Qt version 4.x))' is still missing.
error: Installation cannot continue without these dependencies.
error: Please manually install this dependency and re-run this installer.
carex@nuc3:~/Downloads$

Revision history for this message
carex (aclarck5) wrote :

ok. I solved it brutaly.
For info I am running Debian 10 (debian_version: 10.9)
I spent the last 2 days trying to scan with my HP Officejet 9022. Without success.
The official Debian version (aptitude) is hplip-3.18.12 and is (for me) a total failure with my HP.
And before being competely exhausted I had a brillant idea. Try another version of hplip.
The one I tried first was hplip-3.21.4 but no progress at all. hp-setup could not detected my wifi HP printer.
Then I tried the hplip-3.19.3 and , Oh Miracle, hp-setup did install the necessary packages, the compile and install successfully.Now, at least, I can print and scan (with simple-scan).

Oufffff.

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.