You are not logged in.
Pages: 1
Hello,
The package hplip in extra indicates python-pyqt5 as a dependency, however if I try to run any graphical utilities in this package, they exit complaining of no PyQt4:
$ pacman -Q hplip
hplip 1:3.22.10-1
$
$ hp-info
HP Linux Imaging and Printing System (ver. 3.16.3)
Device Information Utility ver. 5.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.
error: No module named 'PyQt4'
$
The hp-info output does include the text "ver. 3.16.3" as opposed to 3.22.10, so I checked the dates of the executables installed here:
$ which hp-info
/usr/bin/hp-info
$ pacman -Qo /usr/bin/hp-info
/usr/bin/hp-info is owned by hplip 1:3.22.10-1
$
$ ls -l /usr/bin/hp-info
lrwxrwxrwx 1 root root 22 Nov 1 23:47 /usr/bin/hp-info -> ../share/hplip/info.py
$
$ ls -l /usr/share/hplip/info.py
-rwxr-xr-x 1 root root 6416 Nov 1 23:47 /usr/share/hplip/info.py
The Nov 1 2022 date does (almost) correspond to the last update time of the package in extra (since I'm in UTC-7):
Last Updated: 2022-11-02 06:53 UTC
Coincidentally the release notes for 3.16.5 (the release immediately after 3.16.3) on the HP website:
https://developers.hp.com/hp-linux-imag … ease_notes
Includes the announcement:
- Qt5 support is available
The current hplip PKGBUILD does include the upstream recommended config options:
--enable-qt5 \
--disable-qt4 \
Yet at runtime, the complaint of missing PyQt4 persists...
Is this a build issue with the package? Or do I have some other mis-configuration of my system?
Thank you very much for any help!
android
2023-01-03
Offline
What is the output of `pacman -Qi python-pyqt5`
Offline
Thanks for reply loqs!
$ pacman -Qi python-pyqt5
Name : python-pyqt5
Version : 5.15.7-3
Description : A set of Python bindings for the Qt5 toolkit
Architecture : x86_64
URL : https://riverbankcomputing.com/software/pyqt/intro
Licenses : GPL
Groups : pyqt5
Provides : qt5-python-bindings
Depends On : python-pyqt5-sip qt5-base
Optional Deps : python-opengl: enable OpenGL 3D graphics in PyQt applications
python-dbus: for python-dbus mainloop support [installed]
qt5-multimedia: QtMultimedia, QtMultimediaWidgets [installed]
qt5-tools: QtHelp, QtDesigner [installed]
qt5-svg: QtSvg [installed]
qt5-xmlpatterns: QtXmlPatterns [installed]
qt5-declarative: QtQml, qmlplugin [installed]
qt5-serialport: QtSerialPort [installed]
qt5-websockets: QtWebSockets
qt5-connectivity: QtNfc, QtBluetooth
qt5-x11extras: QtX11Extras [installed]
qt5-remoteobjects: QtRemoteObjects
qt5-speech: QtTextToSpeech [installed]
qt5-quick3d: QtQuick3D [installed]
qt5-location: QtLocation, QtPositioning [installed]
qt5-sensors: QtSensors [installed]
qt5-webchannel: QtWebChannel [installed]
Required By : picard
Optional For : hplip python-fonttools python-matplotlib python-pillow
Conflicts With : pyqt5-common
Replaces : None
Installed Size : 28.24 MiB
Packager : Antonio Rojas <arojas@archlinux.org>
Build Date : Thu 10 Nov 2022 09:09:58 AM PST
Install Date : Fri 30 Dec 2022 01:08:43 PM PST
Install Reason : Installed as a dependency for another package
Install Script : No
Validated By : Signature
Offline
$ pacman -Q hplip hplip 1:3.22.10-1 $ $ hp-info HP Linux Imaging and Printing System (ver. 3.16.3)
Something is definitely wrong here.
$ pacman -Q hplip
hplip 1:3.22.10-1
$ hp-info
HP Linux Imaging and Printing System (ver. 3.22.10)
$ ls -l /usr/share/hplip/info.py -rwxr-xr-x 1 root root 6416 Nov 1 23:47 /usr/share/hplip/info.py
But this seems not to be the problem:
$ ls -l /usr/share/hplip/info.py
-rwxr-xr-x 1 root root 6416 Tach 2 06:47 /usr/share/hplip/info.py*
That said, hp-info nonetheless tells me that
warning: GUI Modules PyQt4 and PyQt5 are not installed
error: hp-info -u/--gui requires Qt4 GUI support. Entering interactive mode.
I don't have the GUI support installed at all, but it seems odd it specifies Qt4 as a requirement, especially having just remarked on the absence of PyQt5 as well.
CLI Paste | How To Ask Questions
Arch Linux | x86_64 | GPT | EFI boot | refind | stub loader | systemd | LVM2 on LUKS
Lenovo x270 | Intel(R) Core(TM) i5-7200U CPU @ 2.50GHz | Intel Wireless 8265/8275 | US keyboard w/ Euro | 512G NVMe INTEL SSDPEKKF512G7L
Offline
Pages: 1