You are not logged in.

#1 2026-06-30 14:55:03

dax79
Member
Registered: 2021-12-28
Posts: 22

[Solved]HP scanner and missing package

Hi, i have an hp laserjet m140w. The printer is working and also the scanner until a month ago.
If i run hp-check i see two error:

 error: python3-pyqt4-dbus PyQt 4 DBus - DBus Support for PyQt4       OPTIONAL   4.0    -   MISSING    'python3-pyqt4-dbus needs to be installed'
 error: python3-pyqt4 PyQt 4- Qt interface for Python (for Qt version 4.x)   REQUIRED  4.0    -  MISSING    'python3-pyqt4 needs to be installed'

I don' t care about optional package but probably the required python3-pyqt4 could be the culprit? In my system i have

pacman -Qs pyqt
local/python-pyqt5 5.15.11-7 (pyqt5)
    A set of Python bindings for the Qt5 toolkit
local/python-pyqt5-sip 12.18.0-1
    The sip module support for PyQt5

Is it a package also in aur that can do the trick?
Thanks
Davide

Last edited by dax79 (2026-07-08 19:58:06)

Offline

#2 2026-06-30 19:52:24

jonno2002
Member
Registered: 2016-11-21
Posts: 887

Re: [Solved]HP scanner and missing package

first find out what package owns hp-check:

pacman -Qo /bin/hp-check

then find out what packages it depends on:

pacman -Qi package_name

this can all be done simply with:

pacman -Qi $(pacman -Qqo /bin/hp-check)

Offline

#3 2026-06-30 20:00:33

seth
Member
From: Won't reply 2 private help req
Registered: 2012-09-03
Posts: 76,983

Re: [Solved]HP scanner and missing package

but probably the required python3-pyqt4 could be the culprit?

No.

The printer is working and also the scanner until a month ago.

I assume something™ no longer "is working"?
Please don't paraphrase, https://bbs.archlinux.org/viewtopic.php?id=57855 and at least describe the situation / symptoms as good as you can.

Offline

#4 2026-07-08 12:39:59

dax79
Member
Registered: 2021-12-28
Posts: 22

Re: [Solved]HP scanner and missing package

Hi, sorry but i was very busy.
A few days ago the dependency libjpeg/libjpeg-turbo required for xsane breaks the system update so i remove xsane and i install gscan2pdf.
Of course the situation is the same.
The printer is connected through wifi and i can ping it and also connect to webpage
The 'printing system' is working well, but the 'scanner system' is not working due to this error message:

Error opening device: opening device 'hpaio:/net/HP_LaserJet_MFP_M139-M142?ip=192.168.80.200': Error during device I/O

I don't want to paraphrase but what can i do for a further investigation?
I run hp-check

hp-check[34562]: info: :
hp-check[34562]: info: :[01mHP Linux Imaging and Printing System (ver. 3.26.4)[0m
hp-check[34562]: info: :[01mDependency/Version Check Utility ver. 15.1[0m
hp-check[34562]: info: :
hp-check[34562]: info: :Copyright (c) 2001-18 HP Development Company, LP
hp-check[34562]: info: :This software comes with ABSOLUTELY NO WARRANTY.
hp-check[34562]: info: :This is free software, and you are welcome to distribute it
hp-check[34562]: info: :under certain conditions. See COPYING file for more details.
hp-check[34562]: info: :
hp-check[34562]: info: :[01mNote: hp-check can be run in three modes:[0m
hp-check[34562]: info: :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          
hp-check[34562]: info: :dependencies are installed to successfully compile HPLIP.                                                                                                     
hp-check[34562]: info: :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
hp-check[34562]: info: :the proper dependencies installed to successfully run.                                                                                                        
hp-check[34562]: info: :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).    
hp-check[34562]: info: :
hp-check[34562]: info: :Check types:                                                                                                                                                  
hp-check[34562]: info: :a. EXTERNALDEP - External Dependencies                                                                                                                        
hp-check[34562]: info: :b. GENERALDEP - General Dependencies (required both at compile and run time)                                                                                  
hp-check[34562]: info: :c. COMPILEDEP - Compile time Dependencies                                                                                                                     
hp-check[34562]: info: :d. [All are run-time checks]                                                                                                                                  
hp-check[34562]: info: :PYEXT SCANCONF QUEUES PERMISSION                                                                                                                              
hp-check[34562]: info: :
hp-check[34562]: info: :Status Types:
hp-check[34562]: info: :    OK
hp-check[34562]: info: :    MISSING       - Missing Dependency or Permission or Plug-in
hp-check[34562]: info: :    INCOMPAT      - Incompatible dependency-version or Plugin-version
hp-check[34562]: info: :
warning: [01m0- version is not supported. Using 0-0 versions dependencies to verify and install...[0m
hp-check[34562]: info: :
hp-check[34562]: info: :---------------
hp-check[34562]: info: :| SYSTEM INFO |
hp-check[34562]: info: :---------------
hp-check[34562]: info: :
hp-check[34562]: info: : Kernel: 7.0.14-arch1-1 #1 SMP PREEMPT_DYNAMIC Sat, 27 Jun 2026 16:15:10 +0000 GNU/Linux
 Host: dax-arch
 Proc: 7.0.14-arch1-1 #1 SMP PREEMPT_DYNAMIC Sat, 27 Jun 2026 16:15:10 +0000 GNU/Linux
 Distribution: 0 
hp-check[34562]: info: : Bitness: 64 bit

hp-check[34562]: info: :
hp-check[34562]: info: :-----------------------
hp-check[34562]: info: :| HPLIP CONFIGURATION |
hp-check[34562]: info: :-----------------------
hp-check[34562]: info: :
hp-check[34562]: info: :HPLIP-Version: HPLIP 3.26.4
hp-check[34562]: info: :HPLIP-Home: /usr/share/hplip
warning: HPLIP-Installation: Auto installation is not supported for 0 distro   version 
hp-check[34562]: info: :
hp-check[34562]: info: :[01mCurrent contents of '/etc/hp/hplip.conf' file:[0m
hp-check[34562]: info: :# hplip.conf.  Generated from hplip.conf.in by configure.

[hplip]
version=3.26.4

[dirs]
home=/usr/share/hplip
run=/var/run
ppd=/usr/share/ppd/HP
ppdbase=/usr/share/ppd
doc=/usr/share/doc/hplip-3.26.4
html=/usr/share/doc/hplip-3.26.4
icon=/usr/share/applications
cupsbackend=/usr/lib/cups/backend
cupsfilter=/usr/lib/cups/filter
drv=/usr/share/cups/drv/hp
bin=/usr/bin
apparmor=/etc/apparmor.d
# Following values are determined at configure time and cannot be changed.
[configure]
network-build=yes
libusb01-build=no
pp-build=yes
gui-build=yes
scanner-build=yes
fax-build=yes
dbus-build=yes
cups11-build=no
doc-build=yes
shadow-build=no
hpijs-install=no
foomatic-drv-install=no
foomatic-ppd-install=no
foomatic-rip-hplip-install=no
hpcups-install=yes
cups-drv-install=yes
cups-ppd-install=no
internal-tag=3.26.4
restricted-build=no
ui-toolkit=qt5
qt3=no
qt4=no
qt5=yes
policy-kit=no
lite-build=no
udev_sysfs_rules=no
hpcups-only-build=no
hpijs-only-build=no
apparmor_build=no
class-driver=no

hp-check[34562]: info: :
hp-check[34562]: info: :[01mCurrent contents of '/var/lib/hp/hplip.state' file:[0m
hp-check[34562]: info: :[plugin]
installed = 1
eula = 1
version = 3.25.8

hp-check[34562]: info: :
hp-check[34562]: info: :[01mCurrent contents of '~/.hplip/hplip.conf' file:[0m
hp-check[34562]: info: :[installation]
date_time = 07/08/26 14:37:09
version = 3.26.4


hp-check[34562]: info: : <Package-name>        <Package-Desc>      <Required/Optional> <Min-Version> <Installed-Version> <Status>   <Comment>
hp-check[34562]: info: :
hp-check[34562]: info: :-------------------------
hp-check[34562]: info: :| External Dependencies |
hp-check[34562]: info: :-------------------------
hp-check[34562]: info: :
hp-check[34562]: info: : cups                 CUPS - Common Unix Printing System                           REQUIRED        1.1             2.4.19          OK         'CUPS Scheduler is running'
hp-check[34562]: info: : gs                   GhostScript - PostScript and PDF language interpreter and previewer REQUIRED        7.05            10.07.1         OK         -
hp-check[34562]: info: :[31;01m error: xsane         xsane - Graphical scanner frontend for SANE                  OPTIONAL        0.9             -               MISSING    'xsane needs to be installed'[0m
hp-check[34562]: info: : scanimage            scanimage - Shell scanning program                           OPTIONAL        1.0             1.4.0           OK         -
hp-check[34562]: info: : dbus                 DBus - Message bus system                                    REQUIRED        -               1.16.2          OK         -
hp-check[34562]: info: : policykit            PolicyKit - Administrative policy framework                  OPTIONAL        -               127             OK         -
hp-check[34562]: info: : network              network -wget                                                OPTIONAL        -               1.25.0          OK         -
hp-check[34562]: info: : avahi-utils          avahi-utils                                                  OPTIONAL        -               0.9             OK         -
hp-check[34562]: info: :
hp-check[34562]: info: :------------------------
hp-check[34562]: info: :| General Dependencies |
hp-check[34562]: info: :------------------------
hp-check[34562]: info: :
hp-check[34562]: info: : libjpeg              libjpeg - JPEG library                                       REQUIRED        -               -               OK         -
hp-check[34562]: info: : cups-devel           CUPS devel- Common Unix Printing System development files    REQUIRED        -               2.4.19          OK         -
hp-check[34562]: info: : cups-image           CUPS image - CUPS image development files                    REQUIRED        -               2.4.19          OK         -
hp-check[34562]: info: : libpthread           libpthread - POSIX threads library                           REQUIRED        -               b'2.43'         OK         -
hp-check[34562]: info: : libusb               libusb - USB library                                         REQUIRED        -               1.0             OK         -
hp-check[34562]: info: : sane                 SANE - Scanning library                                      REQUIRED        -               1.4.0           OK         -
hp-check[34562]: info: : sane-devel           SANE - Scanning library development files                    REQUIRED        -               1.4.0           OK         -
hp-check[34562]: info: : libavahi-dev         libavahi-dev                                                 REQUIRED        -               -               OK         -
hp-check[34562]: info: : libnetsnmp-devel     libnetsnmp-devel - SNMP networking library development files REQUIRED        5.0.9           5.9.5           OK         -
hp-check[34562]: info: : libcrypto            libcrypto - OpenSSL cryptographic library                    REQUIRED        -               3.6.3           OK         -
hp-check[34562]: info: : python3X             Python 2.2 or greater - Python programming language          REQUIRED        2.2             3.14.6          OK         -
hp-check[34562]: info: : python3-notify2      Python libnotify - Python bindings for the libnotify Desktop notifications OPTIONAL        -               -               OK         -
hp-check[34562]: info: :[31;01m error: python3-pyqt4-dbus PyQt 4 DBus - DBus Support for PyQt4                         OPTIONAL        4.0             -               MISSING    'python3-pyqt4-dbus needs to be installed'[0m
hp-check[34562]: info: :[31;01m error: python3-pyqt4 PyQt 4- Qt interface for Python (for Qt version 4.x)         REQUIRED        4.0             -               MISSING    'python3-pyqt4 needs to be installed'[0m
hp-check[34562]: info: : python3-dbus         Python DBus - Python bindings for DBus                       REQUIRED        0.80.0          1.4.0           OK         -
hp-check[34562]: info: : python3-xml          Python XML libraries                                         REQUIRED        -               2.8.2           OK         -
hp-check[34562]: info: : python3-devel        Python devel - Python development files                      REQUIRED        2.2             3.14.6          OK         -
hp-check[34562]: info: : python3-pil          PIL - Python Imaging Library (required for commandline scanning with hp-scan) OPTIONAL        -               12.2.0          OK         -
hp-check[34562]: info: : python3-reportlab    Reportlab - PDF library for Python                           OPTIONAL        2.0             4.4.10          OK         -
hp-check[34562]: info: :
hp-check[34562]: info: :--------------
hp-check[34562]: info: :| COMPILEDEP |
hp-check[34562]: info: :--------------
hp-check[34562]: info: :
hp-check[34562]: info: : libtool              libtool - Library building support services                  REQUIRED        -               2.6.1           OK         -
hp-check[34562]: info: : gcc                  gcc - GNU Project C and C++ Compiler                         REQUIRED        -               16.1.1          OK         -
hp-check[34562]: info: : make                 make - GNU make utility to maintain groups of programs       REQUIRED        3.0             4.4.1           OK         -
hp-check[34562]: info: :
hp-check[34562]: info: :---------------------
hp-check[34562]: info: :| Python Extentions |
hp-check[34562]: info: :---------------------
hp-check[34562]: info: :
hp-check[34562]: info: : cupsext              CUPS-Extension                                               REQUIRED        -               3.26.4          OK         -
hp-check[34562]: info: : hpmudext             IO-Extension                                                 REQUIRED        -               3.26.4          OK         -
hp-check[34562]: info: :
hp-check[34562]: info: :----------------------
hp-check[34562]: info: :| Scan Configuration |
hp-check[34562]: info: :----------------------
hp-check[34562]: info: :
hp-check[34562]: info: : hpaio                HPLIP-SANE-Backend                                           REQUIRED        -               3.26.4          OK         'hpaio found in /etc/sane.d/dll.conf'
hp-check[34562]: info: : scanext              Scan-SANE-Extension                                          REQUIRED        -               3.26.4          OK         -
hp-check[34562]: info: :
hp-check[34562]: info: :------------------------------
hp-check[34562]: info: :| DISCOVERED SCANNER DEVICES |
hp-check[34562]: info: :------------------------------
hp-check[34562]: info: :
hp-check[34562]: info: :device `hpaio:/net/HP_LaserJet_MFP_M139-M142?ip=192.168.80.200' is a Hewlett-Packard HP_LaserJet_MFP_M139-M142 all-in-one

hp-check[34562]: info: :
hp-check[34562]: info: :--------------------------
hp-check[34562]: info: :| DISCOVERED USB DEVICES |
hp-check[34562]: info: :--------------------------
hp-check[34562]: info: :
hp-check[34562]: info: :No devices found.
hp-check[34562]: info: :
hp-check[34562]: info: :---------------------------------
hp-check[34562]: info: :| INSTALLED CUPS PRINTER QUEUES |
hp-check[34562]: info: :---------------------------------
hp-check[34562]: info: :
hp-check[34562]: info: :
hp-check[34562]: info: :[01mHP_LaserJet_MFP_M139-M142[0m
hp-check[34562]: info: :[01m-------------------------[0m
hp-check[34562]: info: :Type: Printer
hp-check[34562]: info: :Device URI: hp:/net/HP_LaserJet_MFP_M139-M142?ip=192.168.80.200
hp-check[34562]: info: :PPD: /etc/cups/ppd/HP_LaserJet_MFP_M139-M142.ppd
warning: Failed to read /etc/cups/ppd/HP_LaserJet_MFP_M139-M142.ppd ppd file
hp-check[34562]: info: :PPD Description: 
hp-check[34562]: info: :Printer status: la stampante HP_LaserJet_MFP_M139-M142 è inattiva.  è stata abilitata da ven 13 feb 2026, 18:39:12
hp-check[34562]: info: :Communication status: Good
hp-check[34562]: info: :
hp-check[34562]: info: :
hp-check[34562]: info: :--------------
hp-check[34562]: info: :| PERMISSION |
hp-check[34562]: info: :--------------
hp-check[34562]: info: :
hp-check[34562]: info: :
hp-check[34562]: info: :-----------
hp-check[34562]: info: :| SUMMARY |
hp-check[34562]: info: :-----------
hp-check[34562]: info: :
hp-check[34562]: info: :[01mMissing Required Dependencies[0m
hp-check[34562]: info: :[01m-----------------------------[0m
hp-check[34562]: info: :None
hp-check[34562]: info: :
hp-check[34562]: info: :[01mMissing Optional Dependencies[0m
hp-check[34562]: info: :[01m-----------------------------[0m
hp-check[34562]: info: :None

hp-check[34562]: info: :
hp-check[34562]: info: :Total Errors: 3
hp-check[34562]: info: :Total Warnings: 0
hp-check[34562]: info: :
hp-check[34562]: info: :
hp-check[34562]: info: :Done.

Offline

#5 2026-07-08 12:50:18

Lone_Wolf
Administrator
From: Netherlands, Europe
Registered: 2005-10-04
Posts: 15,245

Re: [Solved]HP scanner and missing package

hpaio found in /etc/sane.d/dll.conf

Please post the contents of /etc/sane.d/dll.conf

Does scanning work if you use /usr/bin/hp-scan from cli ?


Disliking systemd intensely, but not satisfied with alternatives so focusing on taming systemd.

clean chroot building not flexible enough ?
Try clean chroot manager by graysky

Online

#6 2026-07-08 15:40:02

dax79
Member
Registered: 2021-12-28
Posts: 22

Re: [Solved]HP scanner and missing package

Lone_Wolf wrote:

Please post the contents of /etc/sane.d/dll.conf

cat /etc/sane.d/dll.conf
# dll.conf - Configuration file for the SANE dynamic backend loader
#
# Backends can also be enabled by configuration snippets under the dll.d/
# directory -- third party backends can drop their configuration file in
# this in this directory, named after the backend.
#
# The next line enables the network backend; comment it out if you don't
# need to use a remote SANE scanner over the network -- see sane-net(5)
# and saned(8) for details.
net
abaton
agfafocus
apple
artec
artec_eplus48u
as6e
avision
bh
canon
canon630u
canon_dr
canon_lide70
#canon_pp
cardscan
coolscan
#coolscan2
coolscan3
#dc210
#dc240
#dc25
dell1600n_net
dmc
epjitsu
#epson
epson2
epsonds
escl
fujitsu
genesys
#gphoto2
gt68xx
hp
hp3500
hp3900
hp4200
hp5400
hp5590
hpljm1005
hpsj5s
hs2p
ibm
kodak
kodakaio
kvs1025
kvs20xx
kvs40xx
leo
lexmark
ma1509
magicolor
matsushita
microtek
microtek2
mustek
#mustek_pp
mustek_usb
mustek_usb2
nec
niash
#p5
pie
pieusb
pint
pixma
plustek
#plustek_pp
#pnm
qcam
ricoh
ricoh2
rts8891
s9036
sceptre
sharp
sm3600
sm3840
snapscan
sp15c
#st400
#stv680
tamarack
teco1
teco2
teco3
#test
u12
umax
umax1220u
#umax_pp
v4l
xerox_mfp
Lone_Wolf wrote:

Does scanning work if you use /usr/bin/hp-scan from cli ?

Nope

/usr/bin/hp-scan 

HP Linux Imaging and Printing System (ver. 3.26.4)
Scan Utility ver. 2.2

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: No destinations specified. Adding 'file' destination by default.
Using device hpaio:/net/HP_LaserJet_MFP_M139-M142?ip=192.168.80.200
Opening connection to device...
error: SANE: Error during device I/O (code=9)

Offline

#7 2026-07-08 18:55:21

seth
Member
From: Won't reply 2 private help req
Registered: 2012-09-03
Posts: 76,983

Re: [Solved]HP scanner and missing package

nmap 192.168.80.200

hp-check[34562]: info: :    MISSING       - Missing Dependency or Permission or Plug-in
hp-check[34562]: info: :    INCOMPAT      - Incompatible dependency-version or Plugin-version

https://aur.archlinux.org/packages/hplip-plugin ?

Offline

#8 2026-07-08 20:00:55

dax79
Member
Registered: 2021-12-28
Posts: 22

Re: [Solved]HP scanner and missing package

seth wrote:
nmap 192.168.80.200

hp-check[34562]: info: :    MISSING       - Missing Dependency or Permission or Plug-in
hp-check[34562]: info: :    INCOMPAT      - Incompatible dependency-version or Plugin-version

https://aur.archlinux.org/packages/hplip-plugin ?

Shame on me! The hplip-plugin package was not up to date 3.25.8-2 -> 3.26.4-1
Thanks to everybody

Offline

Board footer

Powered by FluxBB