My HP printer says a python3-pyqt4 package is required but in AUR they say they only do a python2 for legacy devices. Any thoughts on what could be happening? The printer normally worked fine. I can delete it and add it as normal, but it immediately gives me a device communication error. This continues to happen even with firewalld stopped.
I also get an error saying
error: dbus DBus - Message bus system REQUIRED - 1.16.2 MISSING 'DBUS may not be installed or not running'
warning: Failed to read /etc/cups/ppd/xx.ppd ppd file
PPD Description:
Printer reason unknownr printer disabled since Fri 02 May 2025 07:22:33 PM PDT -
error: unable to open channel
error: Communication status: Failed
The hplip in the repos lists the following dependency: python-pyqt5 (optional) - for running GUI and hp-toolbox
But no such entry for python3-pyqt4 (or python-pyqt4).
Maybe we can double check your hp packages;
pacman -Qs hp
This sorta smells like a partial upgrade or maybe outdated AUR packages or similar.
pacman -Qs hp
local/hplip 1:3.25.2-1
Drivers for HP DeskJet, OfficeJet, Photosmart, Business Inkjet and some LaserJet
local/vulkan-headers 1:1.4.309.0-1 (vulkan-devel)
Vulkan header files and API registry
by the way the python-anyqt package didnt solve it
my hplip version appears to be the latest, and I selected HP drivers when installing EOS
i just tried yay -S hplip and it didnt appear to solve it either
I add it through the HP device manager, click find through Wi-Fi and it does find it automatically. This was how it was always added in the past and worked. I tried adding through CUPS as well and it also finds it, still communication error.
sudo pacman -Syu only finds a fuse3 package to add but I havent because it breaks another app that hasnt updated to that yet.
And yes, in AUR they say they canceled python3 and only keep python2 updated
" Python 3.13 removed PyObject_AsCharBuffer. Since there really is no point in maintaining the Python 3 side, python-pyqt4 has been dropped. Only python2-pyqt4 is kept for the legacy applications. (Also dropped the phonon-qt4 optional dependency."
That quote came from this link https://aur.archlinux.org/packages/pyqt4-common , although I’m not sure python2-pyqt4 would work. Should i try the python2 version? or perhaps the pyqt4-common version?
hp-setup -i
--------------------------------
| SELECT CONNECTION (I/O) TYPE |
--------------------------------
Num Connection Description
Type
-------- ---------- ----------------------------------------------------------
0* usb Universal Serial Bus (USB)
1 net Network/Ethernet/Wireless (direct connection or JetDirect)
2 par Parallel Port (LPT:)
Enter number 0...2 for connection type (q=quit, enter=usb*) ? 1
Using connection type: net
error: No device selected/specified or that supports this functionality.
Same error for usb option 0 and option 2 parallel port
I’ve tried removing and adding the printer several times today =\
Net does try loading for a few seconds before the error, the other 2 give me the immediate error
(The socket is the preferred way and should normally start the service as needed. But there are some troubleshooitng entries that do call for starting the service under certain circumstances.)
ok i disabled cups.socket and enabled and started cups.service and that didn’t solve it.
i removed those 3 packages, and readded hplip. it installed hplip and foomatic-db-engine but not foomatic-db.
that did not appear to solve it either, even after i removed and re-added the printer =\
what would you do in this situation?? diag errors say this:
error: dbus DBus - Message bus system
REQUIRED - 1.16.2
MISSING 'DBUS may not be installed or not running'
rror: python3-pyqt4 PyQt 4- Qt interface for Python (for Qt version 4.x)
REQUIRED 4.0 -
MISSING 'python3-pyqt4 needs to be installed'
Type: Printer
Device URI: hp:/net/DeskJet_4100_series?ip=192.168.1.54
PPD: /etc/cups/ppd/DeskJet_4100.ppd
warning: Failed to read /etc/cups/ppd/DeskJet_4100.ppd ppd file
PPD Description:
Printer status: printer DeskJet_4100 is idle. enabled since Fri 02 May 2025 09:04:19 PM PDT
error: unable to open channel
error: Communication status: Failed