You are not logged in.

#1 2023-01-03 19:27:39

android
Member
From: San Diego
Registered: 2003-04-18
Posts: 160

hplip 1:3.22.10-1 looking for PyQt4

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

#2 2023-01-03 20:14:52

loqs
Member
Registered: 2014-03-06
Posts: 17,321

Re: hplip 1:3.22.10-1 looking for PyQt4

What is the output of `pacman -Qi python-pyqt5`

Offline

#3 2023-01-03 20:20:09

android
Member
From: San Diego
Registered: 2003-04-18
Posts: 160

Re: hplip 1:3.22.10-1 looking for PyQt4

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

#4 2023-01-04 01:12:10

cfr
Member
From: Cymru
Registered: 2011-11-27
Posts: 7,132

Re: hplip 1:3.22.10-1 looking for PyQt4

android wrote:
$ 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)
android wrote:
$ 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

Board footer

Powered by FluxBB