Debian installer requires pyqt5-dbus but fails on pyqt4-dbus missing library

Bug #1785603 reported by Fred CHAMPREUX
34
This bug affects 7 people
Affects Status Importance Assigned to Milestone
HPLIP
In Progress
Undecided
Unassigned

Bug Description

I try to install hplip drivers to support my new HP Color LaserJet Pro MFP M281fdw.
I downloaded this file from hplip website: hplip-3.18.7

My system runs Debian 9.3:
Distributor ID: Debian
Description: Debian GNU/Linux 9.3 (stretch)

When installing, hplip-3.18.7.run installer requires missing libraries:
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 REQUIRED
pyqt5 gui_qt5 REQUIRED
Do you want to install these missing dependencies (y=yes*, n=no, q=quit) ? y

It starts install and at the end claims the following:
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.

dpkg-query -l '*qt5*' returns the following.I hope it fits the requirements:
ii python-dbus.ma 5.7+dfsg-5 amd64 D-Bus Qt main loop support for Py
ii python-pyqt5 5.7+dfsg-5 amd64 Python 2 bindings for Qt5
un python-pyqt5-d <none> <none> (no description available)

How can I solve this and finish-up installation?

Thanks for your help,

Frédéric.

Tags: install
Revision history for this message
srinivas (srinivas5) wrote :

Hi Fred,

Please do an update of debian os. Then retry installing hplip-3.18.7.run.
Let me know if you still see the issue.

Regards,
Srinivas Teja.

Changed in hplip:
status: New → In Progress
Revision history for this message
brian_p (claremont102) wrote :

One of the languages your printer deals in is PDF emulation. This makes it an ideal candidate for driverless printing on stretch. The question is - are you wedded to using HPLIP or do you just want to print?

--
Brian.

Revision history for this message
Fred CHAMPREUX (fchampreux) wrote :

Hi Srinivas,

My system udpated to 9.5, but the issue is still present.
Installer claims that only 9.1 is supported ...

Best regards,
Frédéric

Revision history for this message
Fred CHAMPREUX (fchampreux) wrote :

Hi Brian,

My printer is HP Color LaserJet Pro MFP M281fdw. I do use scanning and draw some schematics too, not only text.
Hplip is the only driver proposed by HP to support this printer, as far as I know.
Do you know about an alternative for short term?
Thanks,

Best regards,

Frédéric

Revision history for this message
srinivas (srinivas5) wrote :

Hi,

HPLIP 3.18.7 doesnot support 9.5 yet. So you are getting error "Installer claims that only 9.1 is supported ...".
I have tried installing hplip-3.18.7.run on debian 9.4 and it installed without any failure.
Actually pyqt4-dbus and pyqt4 packages are not required and installer will not complain as missed packages.
You can also see this in build and install step "--disable-qt4 --enable-qt5"
Instead pyqt5-dbus and pyqt5 packages are only required and used.

Regards,
Srinivas Teja.

Revision history for this message
brian_p (claremont102) wrote :

Hi Frédéric,

Sorry, I cannnot help with installing from hplip-3.18.7.run or with why srinivas installed without any failure but you did not. My only suggestion would be to purge any existing Debian hplip packages from the system with apt before trying again.

> Hplip is the only driver proposed by HP to support this printer,
> as far as I know.

The future of printing is not to need any drivers. With the M281fdw it is here for you now.

1. Get the device on the network with a cabled or wireless connection.

2. Check that AirPrint is enabled (it probably is) by connecting to the IP address of the device with a web browser (see the manual).

3. Check that the Bonjour broadcasts from the device are detected with avahi-daemon by looking at the output of 'avahi-browse -art'.

4. In /etc/cups/cups-browsed.conf have CreateIPPPrinterQueues Yes and restart cups-browsed.

5. 'lpstat -a' and print dialogs of applications should list the printer.

We can deal with scanning later.

--
Brian.

Revision history for this message
brian_p (claremont102) wrote :

Frédéric - some feedback on how you are progressing with this issue would be useful. It seems a shame to have a nice, new printer and not have it working.

--
Brian.

Revision history for this message
Emm88 (emm88) wrote :
Download full text (3.6 KiB)

Hello,

Same problem here on debian stretch 9.5 (upgrade dist-upgrade OK)

 ./hplip-3.18.7.run
Creating directory hplip-3.18.7
Verifying archive integrity... All good.
...
error: debian-9.5 version is not supported, so all dependencies may not be installed. However trying to install using debian-9.4 version packages.

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 REQUIRED
pyqt5 gui_qt5 REQUIRED
Do you want to install these missing dependencies (y=yes*, n=no, q=quit) ?

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

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

RUNNING PRE-PACKAGE COMMANDS
----------------------------
su -c "dpkg --configure -a" (Pre-depend step 1)
su -c "apt-get install -f" (Pre-depend step 2)
su -c "apt-get update" (Pre-depend step 3)
OK

DEPENDENCY AND CONFLICT RESOLUTION
----------------------------------
Running 'su -c "apt-get install --force-yes -y python-dbus.mainloop.pyqt5"'
Please wait, this may take several minutes...
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...
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.

However
# dpkg --get-selections | grep qt4 | grep py
python-qt4 install
python-qt4-dbus install
python-qt4-dev install
python3-pyqt4 install

# apt-cache policy python-qt4 python-qt4-dbus
python-qt4:
  Installed: 4.11.4+dfsg-2+b1
  Candidate: 4.11.4+dfsg-2+b1
  Version table:
 *** 4.11.4+dfsg-2+b1 500
        500 http://deb.debian.org/debian stretch/main amd64 Packages
        100 /var/lib/dpkg/status
python-qt4-dbus:
  Installed: 4.11.4+dfsg-2+b1
  Candidate: 4.11.4+dfsg-2+b1
  Version table:
 *** 4.11.4+dfsg-2+b1 500
        500 http://deb.debian.org/debian s...

Read more...

Revision history for this message
Emm88 (emm88) wrote :

Also it seems to be a recurring problem of

https://bugs.launchpad.net/hplip/+bug/1748598

Nearly a duplicate

Revision history for this message
Emm88 (emm88) wrote :
Revision history for this message
Ingo Kappler (ingo-kappler) wrote :

As a note, I managed working around it on Debian stretch (9.5) by choosing custom installation and then not selecting support for QT4 but support for QT5.

Revision history for this message
Emm88 (emm88) wrote :

Hello, Thanks Ingo for the tipes.
It was not obvious this option was available
Yes it works

extracts
Please choose the installation mode (a=automatic*, c=custom, q=quit) : c
DISTRO/OS CONFIRMATION
----------------------
Distro appears to be Debian 9.5.

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

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

Do you wish to enable 'Network/JetDirect I/O' (y=yes*, n=no, q=quit) ?
Do you wish to enable 'Graphical User Interfaces (Qt4)' (y=yes*, n=no, q=quit) ? n
Do you wish to enable 'Graphical User Interfaces (Qt5)' (y=yes*, n=no, q=quit) ? y

Then accept to donwload missing dependencies if needed

Revision history for this message
peacecop kalmer: (peacecop-kalmer) wrote :

That didn't change anything. Still the same error.

Revision history for this message
Joshua Cotugno (jdcotugno) wrote :
Download full text (15.5 KiB)

Same for me- I get:

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.

when I do
pi@joshuacotugno:~/ProgramFiles $ sh hplip-3.20.6.run
Creating directory hplip-3.20.6
Verifying archive integrity... All good.
Uncompressing HPLIP 3.20.6 Self Extracting Archive.....................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................

Revision history for this message
Joshua Cotugno (jdcotugno) wrote :

PS. Sorry it's quite long- I just copied and pasted it straight from my terminal.

Revision history for this message
Scott Moore (scottbomb) wrote :

This is today in Ubuntu 20.04. I cannot set up my $100 laser printer I just bought a year ago because HP has to keep screwing up the software?

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))

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.

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.