Dependency always missing: pyqt4-dbus and pyqt4? [hplip-3.20.5]

Asked by Lorenzo

Hello,

i've some problem when installing hplip-3.20.5.
In fact, the installer doesn't recognize these following dependencies (both if I choose to avoid installing the qt4 gui in custom mode and in automatic default mode):

- pyqt4-dbus
- pyqt4

I use debian as os. I've just installed these qt4 rquired package (that should be ok):

python-qt4 is already the newest version (4.12.1+dfsg-2+b1).
python-qt4-dbus is already the newest version (4.12.1+dfsg-2+b1).

And these qt5 rquired package (that should be ok):

python-pyqt5 is already the newest version (5.11.3+dfsg-1+b3).
gtk2-engines-pixbuf is already the newest version (2.24.32-3+rpt1).
python-dbus.mainloop.pyqt5 is already the newest version (5.11.3+dfsg-1+b3).

But the problem is not solved.

-> Where i'am wrong?
-> Why if I choose to avoid installing the qt4 gui in custom mode it keep asking me for the qt4 package?

******************************************************************************

I put the installation log of automatic mode:

pi@raspberry:/media/sf_CC_VMs $ ./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-07-Jun-2020_21:39:10.log

\
note: Defaults for each question are maked with a '*'. Press <enter> to accept the default.
error: debian-10.4 version is not supported, so all dependencies may not be installed. However trying to install using debian-10.3 version packages.

Press 'y' to continue auto installation. Press 'n' to quit auto instalation(y=yes, n=no*): y

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

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 Debian 10.4.

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

DISTRO/OS SELECTION
-------------------

Choose the name of the distro/OS that most closely matches your system:

Num. Distro/OS Name
---- ------------------------
0 Mepis
1 Debian
2 SUSE Linux
3 Mandriva Linux
4 Fedora
5 Red Hat
6 Red Hat Enterprise Linux
7 Ubuntu
8 PCLinuxOS
9 Linux Mint
10 gOS
11 Linpus Linux
12 Manjaro Linux
13 IGOS
14 Boss
15 Linux From Scratch

Enter number 0...15 (q=quit) ?1

Choose the version of "Debian" that most closely matches your system:

Num. Distro/OS Version
---- ----------------------------------------
0 Unknown or not listed
1 10.0 ("Buster", Released 22/07/2017)
2 10.1 ("Buster", Released 22/07/2017)
3 10.2 ("Buster", Released 22/07/2017)
4 10.3 ("Buster", Released 08/02/2020)
5 6.0 ("Squeeze")
6 6.0.1 ("Squeeze")
7 6.0.10 ("Squeeze")
8 6.0.2 ("Squeeze")
9 6.0.3 ("Squeeze")
10 6.0.4 ("Squeeze")
11 6.0.5 ("Squeeze")
12 6.0.6 ("Squeeze")
13 6.0.7 ("Squeeze")
14 6.0.8 ("Squeeze")
15 6.0.9 ("Squeeze")
16 7.0 ("Wheezy", Released 04/05/2013)
17 7.1 ("Wheezy", Released 04/05/2013)
18 7.2 ("Wheezy", Released 04/05/2013)
19 7.3 ("Wheezy", Released 04/05/2013)
20 7.4 ("Wheezy", Released 04/05/2013)
21 7.5 ("Wheezy", Released 04/05/2013)
22 7.6 ("Wheezy", Released 04/05/2013)
23 7.7 ("Wheezy", Released 04/05/2013)
24 7.8 ("Wheezy", Released 04/05/2013)
25 7.9 ("Wheezy", Released 04/05/2013)
26 8.0 ("Jessie", Released 04/05/2015)
27 8.1 ("Jessie", Released 04/05/2015)
28 8.2 ("Jessie", Released 04/05/2015)
29 8.3 ("Jessie", Released 04/05/2015)
30 8.4 ("Jessie", Released 04/05/2016)
31 8.5 ("Jessie", Released 27/08/2016)
32 8.6 ("Jessie", Released 22/10/2016)
33 8.7 ("Jessie", Released 22/10/2016)
34 8.8 ("Jessie", Released 31/05/2017)
35 9.1 ("Stretch", Released 22/07/2017)
36 9.2 ("Stretch", Released 7/10/2017)
37 9.3 ("Stretch", Released 9/12/2017)
38 9.4 ("Stretch", Released 10/3/2018)
39 9.5 ("Stretch", Released 10/3/2018)
40 9.6 ("Stretch", Released 10/11/2018)
41 9.7 ("Stretch", Released 23/1/2019)
42 9.8 ("Stretch", Released 16/2/2019)
43 9.9 ("Stretch", Released 22/07/2017)

Enter number 0...43 (q=quit) ?4

Distro set to: Debian 10.3

Initializing. Please wait...

ENTER ROOT/SUPERUSER PASSWORD
-----------------------------
Please enter the root/superuser password:

INSTALLATION NOTES
------------------
NOTE: Disable the CD Sources in your apt sources.list or the install will fail and hang.

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

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

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

******************************************************************************

I put the installation log of custom mode (avoid installing the qt4 gui):

pi@raspberry:/media/sf_CC_VMs $ ./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-07-Jun-2020_21:44:43.log

\
note: Defaults for each question are maked with a '*'. Press <enter> to accept the default.
error: debian-10.4 version is not supported, so all dependencies may not be installed. However trying to install using debian-10.3 version packages.

Press 'y' to continue auto installation. Press 'n' to quit auto instalation(y=yes, n=no*): y

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

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 Debian 10.4.

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

DISTRO/OS SELECTION
-------------------

Choose the name of the distro/OS that most closely matches your system:

Num. Distro/OS Name
---- ------------------------
0 Mepis
1 Debian
2 SUSE Linux
3 Mandriva Linux
4 Fedora
5 Red Hat
6 Red Hat Enterprise Linux
7 Ubuntu
8 PCLinuxOS
9 Linux Mint
10 gOS
11 Linpus Linux
12 Manjaro Linux
13 IGOS
14 Boss
15 Linux From Scratch

Enter number 0...15 (q=quit) ?1

Choose the version of "Debian" that most closely matches your system:

Num. Distro/OS Version
---- ----------------------------------------
0 Unknown or not listed
1 10.0 ("Buster", Released 22/07/2017)
2 10.1 ("Buster", Released 22/07/2017)
3 10.2 ("Buster", Released 22/07/2017)
4 10.3 ("Buster", Released 08/02/2020)
5 6.0 ("Squeeze")
6 6.0.1 ("Squeeze")
7 6.0.10 ("Squeeze")
8 6.0.2 ("Squeeze")
9 6.0.3 ("Squeeze")
10 6.0.4 ("Squeeze")
11 6.0.5 ("Squeeze")
12 6.0.6 ("Squeeze")
13 6.0.7 ("Squeeze")
14 6.0.8 ("Squeeze")
15 6.0.9 ("Squeeze")
16 7.0 ("Wheezy", Released 04/05/2013)
17 7.1 ("Wheezy", Released 04/05/2013)
18 7.2 ("Wheezy", Released 04/05/2013)
19 7.3 ("Wheezy", Released 04/05/2013)
20 7.4 ("Wheezy", Released 04/05/2013)
21 7.5 ("Wheezy", Released 04/05/2013)
22 7.6 ("Wheezy", Released 04/05/2013)
23 7.7 ("Wheezy", Released 04/05/2013)
24 7.8 ("Wheezy", Released 04/05/2013)
25 7.9 ("Wheezy", Released 04/05/2013)
26 8.0 ("Jessie", Released 04/05/2015)
27 8.1 ("Jessie", Released 04/05/2015)
28 8.2 ("Jessie", Released 04/05/2015)
29 8.3 ("Jessie", Released 04/05/2015)
30 8.4 ("Jessie", Released 04/05/2016)
31 8.5 ("Jessie", Released 27/08/2016)
32 8.6 ("Jessie", Released 22/10/2016)
33 8.7 ("Jessie", Released 22/10/2016)
34 8.8 ("Jessie", Released 31/05/2017)
35 9.1 ("Stretch", Released 22/07/2017)
36 9.2 ("Stretch", Released 7/10/2017)
37 9.3 ("Stretch", Released 9/12/2017)
38 9.4 ("Stretch", Released 10/3/2018)
39 9.5 ("Stretch", Released 10/3/2018)
40 9.6 ("Stretch", Released 10/11/2018)
41 9.7 ("Stretch", Released 23/1/2019)
42 9.8 ("Stretch", Released 16/2/2019)
43 9.9 ("Stretch", Released 22/07/2017)

Enter number 0...43 (q=quit) ?4

Distro set to: Debian 10.3

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

Initializing. Please wait...

SELECT HPLIP OPTIONS
--------------------
You can select which HPLIP options to enable. Some options require extra dependencies.

Do you wish to enable 'Network/JetDirect I/O' (y=yes*, n=no, q=quit) ?
Do you wish to enable 'Graphical User Interfaces (Qt5)' (y=yes*, n=no, q=quit) ?
Do you wish to enable 'PC Send Fax support' (y=yes*, n=no, q=quit) ?
Do you wish to enable 'Scanning support' (y=yes*, n=no, q=quit) ?
Do you wish to enable 'HPLIP documentation (HTML)' (y=yes*, n=no, q=quit) ?

ENTER ROOT/SUPERUSER PASSWORD
-----------------------------
Please enter the root/superuser password:

INSTALLATION NOTES
------------------
NOTE: Disable the CD Sources in your apt sources.list or the install will fail and hang.

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

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
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 (PyQt 5- Qt interface for Python (for Qt version 4.x))

Would you like to have this installer install the missing dependency (y=yes*, n=no, q=quit) ?

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)

Would you like to have this installer install the missing dependency (y=yes*, n=no, q=quit) ?

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

******************************************************************************

In my opinion there is some bug in the installer because in the end it always asks for the dependencies of qt4 (when in relation it should be ask only that of qt5)..

Thanks to everyone.

Greetings

Question information

Language:
English Edit question
Status:
Solved
For:
HPLIP Edit question
Assignee:
No assignee Edit question
Solved by:
Lorenzo
Solved:
Last query:
Last reply:
Revision history for this message
brian_p (claremont102) said :
#1

Knowing the Debian version and the printer model would be useful.

--
Brian.

Revision history for this message
Lorenzo (kowa92) said :
#2

The OS is Raspbian 4.19 (for RaspberryPi), practically the son of Debian Buster 10.4 .

The printer model that i have is: HP Color LaserJet MFP M283fdw .

PS: I already know that hp-lip 3.20.5 actually doesn't support it (it supports <= Debian 10.3).

But i know that someone has already successfully installed hp-lip on this OS.

PSS: For example, this https://packages.debian.org/sid/hplip is a hp-lip 3.20.5 working package from Debian unstable (sid) repo.

Revision history for this message
brian_p (claremont102) said :
#3

Hello Lorenzo,

I am not keen on debugging HPLIP, so I am going to assume your primary
objective is to print and scan. Please connect the M283fdw to the network
with wireless/ethernet and give what you get for

  driverless
  avahi-browse -rt _ipp._tcp
  avahi-browse -rt _uscan._tcp

Cheers,

Brian.

Revision history for this message
Lorenzo (kowa92) said :
#4

Hello Brian,

yes, my primary objective is to scan and after to print.

I should scan via wifi using "scanimage".

I know that one method (that works) to do that is using hp-lip (hpaio:/net/<aio_model_name>?ip=<IP_address_of_the_aio>).

I post here what you asked me:

pi@raspberrypi:~ $ driverless
ipp://NPI99B494.local:631/ipp/print

pi@raspberrypi:~ $ avahi-browse -rt _ipp._tcp
+ wlan0 IPv6 HP Color LaserJet MFP M283fdw (99B494) Internet Printer local
+ wlan0 IPv4 HP Color LaserJet MFP M283fdw (99B494) Internet Printer local
= wlan0 IPv6 HP Color LaserJet MFP M283fdw (99B494) Internet Printer local
   hostname = [NPI99B494.local]
   address = [192.168.1.13]
   port = [631]
   txt = ["mopria-certified=2.0" "mac=e8:d8:d1:99:b4:94" "usb_MDL=HP ColorLaserJet MFP M282-M285" "usb_MFG=HP" "TLS=1.2" "PaperMax=legal-A4" "kind=document,envelope,photo" "UUID=564e424b-4e31-3430-5a54-e8d8d199b494" "Fax=T" "Scan=T" "Duplex=T" "Color=T" "note=" "adminurl=http://NPI99B494.local./hp/device/info_config_AirPrint.html?tab=Networking&menu=AirPrintStatus" "priority=10" "product=(HP ColorLaserJet MFP M282-M285)" "ty=HP ColorLaserJet MFP M282-M285" "URF=V1.4,CP99,W8,OB10,PQ3-4-5,ADOBERGB24,DEVRGB24,DEVW8,SRGB24,DM1,IS1,MT1-2-3-5-12,RS600" "rfo=ipp/faxout" "rp=ipp/print" "pdl=image/urf,application/PCLm,application/octet-stream,application/pdf,application/postscript,application/vnd.hp-PCL,application/vnd.hp-PCLXL,image/jpeg" "qtotal=1" "txtvers=1"]
= wlan0 IPv4 HP Color LaserJet MFP M283fdw (99B494) Internet Printer local
   hostname = [NPI99B494.local]
   address = [192.168.1.13]
   port = [631]
   txt = ["mopria-certified=2.0" "mac=e8:d8:d1:99:b4:94" "usb_MDL=HP ColorLaserJet MFP M282-M285" "usb_MFG=HP" "TLS=1.2" "PaperMax=legal-A4" "kind=document,envelope,photo" "UUID=564e424b-4e31-3430-5a54-e8d8d199b494" "Fax=T" "Scan=T" "Duplex=T" "Color=T" "note=" "adminurl=http://NPI99B494.local./hp/device/info_config_AirPrint.html?tab=Networking&menu=AirPrintStatus" "priority=10" "product=(HP ColorLaserJet MFP M282-M285)" "ty=HP ColorLaserJet MFP M282-M285" "URF=V1.4,CP99,W8,OB10,PQ3-4-5,ADOBERGB24,DEVRGB24,DEVW8,SRGB24,DM1,IS1,MT1-2-3-5-12,RS600" "rfo=ipp/faxout" "rp=ipp/print" "pdl=image/urf,application/PCLm,application/octet-stream,application/pdf,application/postscript,application/vnd.hp-PCL,application/vnd.hp-PCLXL,image/jpeg" "qtotal=1" "txtvers=1"]

pi@raspberrypi:~ $ avahi-browse -rt _uscan._tcp
+ wlan0 IPv6 HP Color LaserJet MFP M283fdw (99B494) _uscan._tcp local
+ wlan0 IPv4 HP Color LaserJet MFP M283fdw (99B494) _uscan._tcp local
= wlan0 IPv6 HP Color LaserJet MFP M283fdw (99B494) _uscan._tcp local
   hostname = [NPI99B494.local]
   address = [192.168.1.13]
   port = [8080]
   txt = ["mopria-certified-scan=1.3" "note=" "duplex=F" "is=platen,adf" "cs=color,grayscale" "pdl=application/pdf,image/jpeg" "uuid=564e424b-4e31-3430-5a54-e8d8d199b494" "rs=eSCL" "representation=http://NPI99B494.local./ipp/images/printer.png" "vers=2.63" "usb_MDL=HP ColorLaserJet MFP M282-M285" "usb_MFG=HP" "mdl=ColorLaserJet MFP M282-M285" "mfg=HP" "ty=HP ColorLaserJet MFP M282-M285" "adminurl=http://NPI99B494.local." "txtvers=1"]
= wlan0 IPv4 HP Color LaserJet MFP M283fdw (99B494) _uscan._tcp local
   hostname = [NPI99B494.local]
   address = [192.168.1.13]
   port = [8080]
   txt = ["mopria-certified-scan=1.3" "note=" "duplex=F" "is=platen,adf" "cs=color,grayscale" "pdl=application/pdf,image/jpeg" "uuid=564e424b-4e31-3430-5a54-e8d8d199b494" "rs=eSCL" "representation=http://NPI99B494.local./ipp/images/printer.png" "vers=2.63" "usb_MDL=HP ColorLaserJet MFP M282-M285" "usb_MFG=HP" "mdl=ColorLaserJet MFP M282-M285" "mfg=HP" "ty=HP ColorLaserJet MFP M282-M285" "adminurl=http://NPI99B494.local." "txtvers=1"]

Revision history for this message
brian_p (claremont102) said :
#5

Please give sane-airscan a try:

  https://github.com/alexpevzner/sane-airscan

Debian packages for buster are supplied and it has a 100% success rate
for users who have employed it.

> pi@raspberrypi:~ $ driverless
> ipp://NPI99B494.local:631/ipp/print

The output is a URI. Substitute for it in the following command:

 lpadmin -p PRINTER_NAME -v URI -E -m everywhere

PRINTER_NAME can be anything that suits you.

I would appreciate having the output of 'scanimage -L if you use sane-airscan.

Cheers,

Brian.

Revision history for this message
brian_p (claremont102) said :
#6

> Debian packages for buster are supplied ...

Apologies Lorenzo; I forgot - you are using a Pi. You will have to build
from source. I did the on i386 and it worked well. The author is very
approachable should you have problems.

Revision history for this message
Lorenzo (kowa92) said :
#7

Yeah, thank you very much man!
Within this weekend i will try to implement and test your valuable advice/alternative.
I will definitely update you on the result! :)

Revision history for this message
Alexander Pevzner (pzz) said :
#8

Hi everybody,

I have aarch64 packages for Debian 10.0

Revision history for this message
Lorenzo (kowa92) said :
#9

@brian_p:

Hello!

Sorry for the delay but I have been busy these days .. Anyway, this is the result of what you asked me:

pi@raspberrypi:~ $ scanimage -L
device `airscan:e0:HP Color LaserJet MFP M283fdw (99B494)' is a eSCL HP Color LaserJet MFP M283fdw (99B494) eSCL network scanner

This with sane-airscan compiled for RaspberryPi.

Also i managed, from the VirtualBox VM, to simulate RaspberryPi Desktop OS (Similar to Raspbian for ARM). I downloaded it and installed hplip 3.20.5 + dfsg0-3 (https://packages.debian.org/sid/hplip) from Debian Unstable (sid) repo.
And I noticed the following intresting differences between hplip and sane-airscan:

With sane-airscan backend:

pi@raspberrypi:~ $ /usr/bin/scanimage -h -d 'airscan:e0:HP Color LaserJet MFP M283fdw (99B494)'
Usage: scanimage [OPTION]...

Start image acquisition on a scanner device and write image data to
standard output.

Parameters are separated by a blank from single-character options (e.g.
-d epson) and by a "=" from multi-character options (e.g. --device-name=epson).
-d, --device-name=DEVICE use a given scanner device (e.g. hp:/dev/scanner)
    --format=pnm|tiff|png|jpeg file format of output file
-i, --icc-profile=PROFILE include this ICC profile into TIFF file
-L, --list-devices show available scanner devices
-f, --formatted-device-list=FORMAT similar to -L, but the FORMAT of the output
                           can be specified: %d (device name), %v (vendor),
                           %m (model), %t (type), %i (index number), and
                           %n (newline)
-b, --batch[=FORMAT] working in batch mode, FORMAT is `out%d.pnm' `out%d.tif'
                           `out%d.png' or `out%d.jpg' by default depending on --format
    --batch-start=# page number to start naming files with
    --batch-count=# how many pages to scan in batch mode
    --batch-increment=# increase page number in filename by #
    --batch-double increment page number by two, same as
                           --batch-increment=2
    --batch-print print image filenames to stdout
    --batch-prompt ask for pressing a key before scanning a page
    --accept-md5-only only accept authorization requests using md5
-p, --progress print progress messages
-n, --dont-scan only set options, don't actually scan
-T, --test test backend thoroughly
-A, --all-options list all available backend options
-h, --help display this help message and exit
-v, --verbose give even more status messages
-B, --buffer-size=# change input buffer size (in kB, default 32)
-V, --version print version information

Options specific to device `airscan:e0:HP Color LaserJet MFP M283fdw (99B494)':
  Standard:
    --resolution 75|150|200|300|600|1200dpi [300]
        Sets the resolution of the scanned image.
    --mode Color|Gray [Color]
        Selects the scan mode (e.g., lineart, monochrome, or color).
    --source Flatbed|ADF [Flatbed]
        Selects the scan source (such as a document-feeder).
  Geometry:
    -l 0..215.9mm [0]
        Top-left x position of scan area.
    -t 0..297.011mm [0]
        Top-left y position of scan area.
    -x 0..215.9mm [215.9]
        Width of scan-area.
    -y 0..297.011mm [297.011]
        Height of scan-area.

Type ``scanimage --help -d DEVICE'' to get list of all options for DEVICE.

List of available devices:
    airscan:e0:HP Color LaserJet MFP M283fdw (99B494)

With hp-lip backend:

pi@raspberry:~ $ hp-makeuri 192.168.1.13

HP Linux Imaging and Printing System (ver. 3.20.5)
Device URI Creation Utility ver. 5.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.

CUPS URI: hp:/net/HP_ColorLaserJet_MFP_M282-M285?ip=192.168.1.13
SANE URI: hpaio:/net/HP_ColorLaserJet_MFP_M282-M285?ip=192.168.1.13
HP Fax URI: hpfax:/net/HP_ColorLaserJet_MFP_M282-M285?ip=192.168.1.13

Done.
pi@raspberry:~ $ /usr/bin/scanimage --list-devices
device `hpaio:/net/HP_ColorLaserJet_MFP_M282-M285?ip=192.168.1.13' is a Hewlett-Packard HP_ColorLaserJet_MFP_M282-M285 all-in-one
pi@raspberry:~ $ /usr/bin/scanimage -h -d hpaio:/net/HP_ColorLaserJet_MFP_M282-M285?ip=192.168.1.13
Usage: scanimage [OPTION]...

Start image acquisition on a scanner device and write image data to
standard output.

Parameters are separated by a blank from single-character options (e.g.
-d epson) and by a "=" from multi-character options (e.g. --device-name=epson).
-d, --device-name=DEVICE use a given scanner device (e.g. hp:/dev/scanner)
    --format=pnm|tiff|png|jpeg file format of output file
-i, --icc-profile=PROFILE include this ICC profile into TIFF file
-L, --list-devices show available scanner devices
-f, --formatted-device-list=FORMAT similar to -L, but the FORMAT of the output
                           can be specified: %d (device name), %v (vendor),
                           %m (model), %t (type), %i (index number), and
                           %n (newline)
-b, --batch[=FORMAT] working in batch mode, FORMAT is `out%d.pnm' `out%d.tif'
                           `out%d.png' or `out%d.jpg' by default depending on --format
    --batch-start=# page number to start naming files with
    --batch-count=# how many pages to scan in batch mode
    --batch-increment=# increase page number in filename by #
    --batch-double increment page number by two, same as
                           --batch-increment=2
    --batch-print print image filenames to stdout
    --batch-prompt ask for pressing a key before scanning a page
    --accept-md5-only only accept authorization requests using md5
-p, --progress print progress messages
-n, --dont-scan only set options, don't actually scan
-T, --test test backend thoroughly
-A, --all-options list all available backend options
-h, --help display this help message and exit
-v, --verbose give even more status messages
-B, --buffer-size=# change input buffer size (in kB, default 32)
-V, --version print version information

Options specific to device `hpaio:/net/HP_ColorLaserJet_MFP_M282-M285?ip=192.168.1.13':
  Scan mode:
    --mode Lineart|Gray|Color [Lineart]
        Selects the scan mode (e.g., lineart, monochrome, or color).
    --resolution 75|100|150|200|300|600|1200dpi [75]
        Sets the resolution of the scanned image.
    --source Flatbed|ADF [Flatbed]
        Selects the scan source (such as a document-feeder).
  Advanced:
    --brightness -1000..1000 [0]
        Controls the brightness of the acquired image.
    --contrast -1000..1000 [0]
        Controls the contrast of the acquired image.
    --compression None|JPEG [JPEG]
        Selects the scanner compression method for faster scans, possibly at
        the expense of image quality.
    --jpeg-quality 0..100 [inactive]
        Sets the scanner JPEG compression factor. Larger numbers mean better
        compression, and smaller numbers mean better image quality.
  Geometry:
    -l 0..215.9mm [0]
        Top-left x position of scan area.
    -t 0..296.926mm [0]
        Top-left y position of scan area.
    -x 0..215.9mm [215.9]
        Width of scan-area.
    -y 0..296.926mm [296.926]
        Height of scan-area.

Type ``scanimage --help -d DEVICE'' to get list of all options for DEVICE.

List of available devices:
    hpaio:/net/HP_ColorLaserJet_MFP_M282-M285?ip=192.168.1.13

The differences are seen .. Unfortunately.

----------------

I noticed that on the virtual machine i use (that is RaspberryPi Desktop OS) the following three commands do not give (empty) results:

  driverless
  avahi-browse -rt _ipp._tcp
  avahi-browse -rt _uscan._tcp

Why, according to you?

PS: While i see my printer only with hplip and sane-airscan?

Thank you very much for all man! :)

Revision history for this message
Lorenzo (kowa92) said :
#10

@Alexander

I don't think that aarch64 packages for Debian works on RaspberryPi. I must only use armhf.deb packages..

Greetings