You are not logged in.

#1 2017-07-11 14:44:33

saleem
Member
Registered: 2011-09-21
Posts: 101

Issue with hp-setup

I have installed all the required packages and did all the required configuration for mt HP Laserjet 1018 printer and printer is properly detected by the system , hplip-plugin is installed as well . When I run # hp-setup to download the propriety plugin for my printer I get this error

# hp-setup

HP Linux Imaging and Printing System (ver. 3.17.6)
Printer/Fax Setup Utility ver. 9.0

Copyright (c) 2001-15 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.

Traceback (most recent call last):
  File "/usr/bin/hp-setup", line 312, in <module>
    QApplication, ui_package = utils.import_dialog(ui_toolkit)
  File "/usr/share/hplip/base/utils.py", line 2461, in import_dialog
    from PyQt5.QtWidgets import QApplication
RuntimeError: the sip module implements API v12.0 to v12.1 but the PyQt5.QtWidgets module requires API v12.2

hp-setup is not working and I can`t go ahead to download the needed propriety plugin .

What is this error and how do I fix it ?

Offline

#2 2017-07-11 14:50:23

ewaller
Administrator
From: Pasadena, CA
Registered: 2009-07-13
Posts: 19,796

Re: Issue with hp-setup

Is your system fully up to date?  Start with a pacman -Syu  and see if anything is updated..


Nothing is too wonderful to be true, if it be consistent with the laws of nature -- Michael Faraday
Sometimes it is the people no one can imagine anything of who do the things no one can imagine. -- Alan Turing
---
How to Ask Questions the Smart Way

Offline

#3 2017-07-11 15:10:17

saleem
Member
Registered: 2011-09-21
Posts: 101

Re: Issue with hp-setup

ewaller wrote:

Is your system fully up to date?  Start with a pacman -Syu  and see if anything is updated..

Thanks , this resolved the issue to the extent that now hp-setup works but now the printer is not detected as a USB device

hp-setup

HP Linux Imaging and Printing System (ver. 3.17.6)
Printer/Fax Setup Utility ver. 9.0

Copyright (c) 2001-15 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.

QStandardPaths: XDG_RUNTIME_DIR not set, defaulting to '/tmp/runtime-root'
Searching... (bus=usb, search=(None), desc=0)
error: No devices found on bus: usb

Done.

Offline

#4 2017-07-11 15:15:38

ewaller
Administrator
From: Pasadena, CA
Registered: 2009-07-13
Posts: 19,796

Re: Issue with hp-setup

Does the printer appear in the output of lsusb  ?


Nothing is too wonderful to be true, if it be consistent with the laws of nature -- Michael Faraday
Sometimes it is the people no one can imagine anything of who do the things no one can imagine. -- Alan Turing
---
How to Ask Questions the Smart Way

Offline

#5 2017-07-11 15:46:50

saleem
Member
Registered: 2011-09-21
Posts: 101

Re: Issue with hp-setup

ewaller wrote:

Does the printer appear in the output of lsusb  ?

Yes it is detected

# lsusb
Bus 002 Device 005: ID 0461:4dc7 Primax Electronics, Ltd
Bus 002 Device 004: ID 0000:0538 
Bus 002 Device 003: ID 03f0:4117 Hewlett-Packard LaserJet 1018
Bus 002 Device 002: ID 8087:0024 Intel Corp. Integrated Rate Matching Hub
Bus 002 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 001 Device 002: ID 8087:0024 Intel Corp. Integrated Rate Matching Hub
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub

Offline

#6 2017-07-11 15:56:47

x33a
Forum Fellow
Registered: 2009-08-15
Posts: 4,587

Re: Issue with hp-setup

Try running hp-doctor and see what it returns.

Offline

#7 2017-07-11 15:58:59

ewaller
Administrator
From: Pasadena, CA
Registered: 2009-07-13
Posts: 19,796

Re: Issue with hp-setup

That is good, I guess. Not sure what to do next.  Is your user a member of the lp group?  Check with groups


I hate to suggest it, but you might try running hp-setup as root.

Actually, it appears you are running as root.  What if you run as a normal user?
How are you running as root?  hp-setup requires a graphical environment.


Nothing is too wonderful to be true, if it be consistent with the laws of nature -- Michael Faraday
Sometimes it is the people no one can imagine anything of who do the things no one can imagine. -- Alan Turing
---
How to Ask Questions the Smart Way

Offline

#8 2017-07-12 17:15:06

saleem
Member
Registered: 2011-09-21
Posts: 101

Re: Issue with hp-setup

ewaller wrote:

That is good, I guess. Not sure what to do next.  Is your user a member of the lp group?  Check with groups


I hate to suggest it, but you might try running hp-setup as root.

Actually, it appears you are running as root.  What if you run as a normal user?
How are you running as root?  hp-setup requires a graphical environment.

GUI is running fine both as user and root  but pc is unable to find the printer on USB port

Offline

#9 2017-07-12 23:08:26

progandy
Member
Registered: 2012-05-17
Posts: 5,199

Re: Issue with hp-setup

hp-setup gives an example in its help on how to call it with a specific usb id, you might want to try that:

$ hp-setup --help
...
Notes:
...
2. Using 'lsusb' to obtain USB IDs: (example)
	$ lsusb
	Bus 003 Device 011: ID 03f0:c202 Hewlett-Packard
	$ hp-setup --auto 003:011
	(Note: You may have to run 'lsusb' from /sbin or another location. Use '$ locate lsusb' to determine this.)
...

Last edited by progandy (2017-07-12 23:13:03)


| alias CUTF='LANG=en_XX.UTF-8@POSIX ' |

Offline

Board footer

Powered by FluxBB