FS#43187 - [hplip] hp-setup is not working with GUI

Attached to Project: Arch Linux
Opened by Developer Laptander (laptander) - Sunday, 21 December 2014, 22:06 GMT
Last edited by Andreas Radke (AndyRTR) - Monday, 22 December 2014, 18:31 GMT
Task Type Bug Report
Category Packages: Extra
Status Closed
Assigned To Andreas Radke (AndyRTR)
Tom Gundersen (tomegun)
Architecture All
Severity Low
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 3
Private No

Details

Description:
As described in ArchWiki, I want to setup my hp printer via hp-setup. But when I run $hp-setup -u I get some error messages and it exits.
Here are messages:

error: HPLIP is not installed properly or is installed without graphical support. Please reinstall HPLIP
warning: Qt/PyQt 4 initialization failed.
error: hp-setup requires GUI support (try running with --qt3). Also, try using interactive (-i) mode.

Also, it does not work with --qt3.

Additional info:
* here is my hp-check output http://pastebin.mozilla-russia.org/111667
* I have installed python-pyqt4 in the system
* See this https://bbs.archlinux.org/viewtopic.php?pid=1486498 forum discussion

Steps to reproduce:
$ hp-setup -u
This task depends upon

Closed by  Andreas Radke (AndyRTR)
Monday, 22 December 2014, 18:31 GMT
Reason for closing:  Not a bug
Comment by Tomasz Przybył (FadeMind) - Monday, 22 December 2014, 16:56 GMT
Just install:

sudo pacman -S python2-{dbus,gobject2,pyqt4,reportlab,notify,pillow} --needed

HPLIP GUI need python2 libs instead python libs (3).

See:

[tomasz@arch ~]$ pacman -Qii hplip
Nazwa : hplip
Wersja : 3.14.10-1
Opis : Drivers for HP DeskJet, OfficeJet, Photosmart, Business Inkjet and
some LaserJet
Architektura : x86_64
URL : http://hplipopensource.com
Licencja : GPL
Grupy : Brak
Dostarcza : Brak
Zależy od : python2 ghostscript>=8.64-6 foomatic-db foomatic-db-engine
net-snmp>=5.7.1 wget
Opcjonalne zależności: cups: for printing support [zainstalowano]
python2-dbus: for dbus support [zainstalowano]
sane: for scanner support [zainstalowano]
python2-pillow: for commandline scanning support
[zainstalowano]
python2-notify: for Desktop notification support
[zainstalowano]
python2-reportlab: for pdf output in hp-scan [zainstalowano]
rpcbind: for network support
python2-pyqt4: for running GUI and hp-toolbox [zainstalowano]
python2-gobject2: for running hp-toolbox [zainstalowano]
hplip-plugin: binary blobs for specific devices (AUR) or run
hp-setup to download the plugin
libusb: for advanced usb support [zainstalowano]
Wymagany przez : Brak
Opcjonalny dla: Brak
Konfliktuje z : Brak
Zastępuje : Brak
Rozmiar na dysku: 26,35 MiB
Autor pakietu : Andreas Radke <andyrtr@archlinux.org>
Data budowy : czw, 16 paź 2014, 21:10:35
Data instalacji : wto, 28 paź 2014, 15:08:37
Powód instalacji : Ręczny
Skrypt inst. : Tak
Potwierdzone przez: Podpis
Pliki kopii zapasowej:
(brak)

IMO is not a bug - user configuration depends missing.


Comment by Developer Laptander (laptander) - Monday, 22 December 2014, 17:39 GMT
After I run
sudo pacman -S python2-{dbus,gobject2,pyqt4,reportlab,notify,pillow} --needed
it worked! Thank you.
But I think theese packages should be included in PKGBUILD of hplip, so user not to be confused about not working GUI.
Comment by Tomasz Przybył (FadeMind) - Monday, 22 December 2014, 17:51 GMT
They are optional depends.

optdepends=('cups: for printing support'
'python2-dbus: for dbus support'
'sane: for scanner support'
'python2-pillow: for commandline scanning support'
'python2-notify: for Desktop notification support'
'python2-reportlab: for pdf output in hp-scan'
'rpcbind: for network support'
'python2-pyqt4: for running GUI and hp-toolbox'
'python2-gobject2: for running hp-toolbox'
'hplip-plugin: binary blobs for specific devices (AUR) or run hp-setup to download the plugin'
'libusb: for advanced usb support')

You're welcome.

Loading...