You are not logged in.
Pages: 1
Topic closed
I'm trying to install driver for printer HP Deskjet 2050 J510. First, i installed hplip 3.16.2-2. After i tried to install printer from console.
This is output of hp-setup -i:
[flowneee@Flowneee-arch ~]$ hp-setup -i
HP Linux Imaging and Printing System (ver. 3.16.2)
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.
(Note: Defaults for each question are maked with a '*'. Press <enter> to accept the default.)
--------------------------------
| 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*) ?
Using connection type: usb
Setting up device: hp:/usb/Deskjet_2050_J510_series?serial=CN14L3N0Y505D1
---------------------
| PRINT QUEUE SETUP |
---------------------
Please enter a name for this print queue (m=use model name:'Deskjet_2050_J510'*, q=quit) ?m
Using queue name: Deskjet_2050_J510
Locating PPD file... Please wait.
error: No PPD found for model deskjet_2050_j510 using old algorithm.
error: Unable to find an appropriate PPD file.
Would you like to specify the path to the correct PPD file to use (y=yes, n=no*, q=quit) ? y
Please enter the full filesystem path to the PPD file to use (q=quit) :/usr/share/ppd/HP/hp-deskjet_2050_j510_series.ppd.gz
Traceback (most recent call last):
File "/usr/bin/hp-setup", line 536, in <module>
desc = nickname_pat.search(nickname).group(1)
TypeError: cannot use a string pattern on a bytes-like object
To sure that problem is in Python, i tried to hp-check:
[flowneee@Flowneee-arch ~]$ hp-check
Saving output in log file: /home/flowneee/hp-check.log
HP Linux Imaging and Printing System (ver. 3.16.2)
Dependency/Version Check Utility ver. 15.1
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.
Note: hp-check can be run in three modes:
1. Compile-time check mode (-c or --compile): Use this mode before compiling the HPLIP supplied tarball (.tar.gz or .run) to determine if
the proper dependencies are installed to successfully compile HPLIP.
2. Run-time check mode (-r or --run): Use this mode to determine if a distro supplied package (.deb, .rpm, etc) or an already built HPLIP
supplied tarball has the proper dependencies installed to successfully run.
3. Both compile- and run-time check mode (-b or --both) (Default): This mode will check both of the above cases (both compile- and run-time
dependencies).
Check types:
a. EXTERNALDEP - External Dependencies
b. GENERALDEP - General Dependencies (required both at compile and run time)
c. COMPILEDEP - Compile time Dependencies
d. [All are run-time checks]
PYEXT SCANCONF QUEUES PERMISSION
Status Types:
OK
MISSING - Missing Dependency or Permission or Plug-in
INCOMPAT - Incompatible dependency-version or Plugin-version
warning: arch distro is not found in AUTH_TYPES
\Traceback (most recent call last):
File "/usr/bin/hp-check", line 855, in <module>
core.init()
File "/usr/share/hplip/installer/core_install.py", line 470, in init
self.check_dependencies(callback)
File "/usr/share/hplip/installer/core_install.py", line 563, in check_dependencies
self.have_dependencies[d] = self.dependencies[d][3]()
File "/usr/share/hplip/installer/core_install.py", line 1023, in check_python_dbus
return ver >= (0,80,0)
TypeError: unorderable types: map() >= tuple()
How to fix this and install printer?
Last edited by Flowneee (2016-03-22 18:00:20)
Offline
How did you install the driver? This looks and smells like a Python2/Python3 mix up, but stuff in our repos/AUR should be patched.
Try python2 hp-setup -i and see if it helps.
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
How did you install the driver? This looks and smells like a Python2/Python3 mix up, but stuff in our repos/AUR should be patched.
Try python2 hp-setup -i and see if it helps.
I installed driver with pacman: sudo pacman -S hplip.
python2 python2 /usr/bin/hp-setup -i
Traceback (most recent call last):
File "/usr/bin/hp-setup", line 45, in <module>
from base import device, utils, tui, models, module, services, os_utils
File "/usr/share/hplip/base/device.py", line 42, in <module>
from . import status
File "/usr/share/hplip/base/status.py", line 33, in <module>
import cupsext
ImportError: No module named cupsext
python2 /usr/bin/hp-check
warning: CUPSEXT could not be loaded. Please check HPLIP installation.
Last edited by Flowneee (2016-03-22 16:55:30)
Offline
It would appear that I guessed wrong on that one. Sorry for the noise.
On my system, the ppd files for my printers are all in /etc/cups/ppd/ and they are not .gz archives. I do not recall if I used hp-setup on my system, I may have just used the cups web interface.
Regardless, I would try extracting the ppd you want from the .gz archive and place it in /etc/cups/ppd. Then, using hp-install, use that path rather than that of the .gz.
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
Problem solved in a strange way: i installed printer with CUPS web-interface, then delete it, and after that hp-setup found ppd itself.
Offline
Great. Be sure to edit your first post and edit the title to mark this solved.
I'd wager the cups interface extracted the ppd you are using and put it it /etc/cups/ppd/. I'd be interested in knowing if that is what happened.
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
Bumping this since I encountered the same exact problem and solved it by installing cups and enabling
org.cups.cupsd.service
as per the CUPS troubleshooting page.
Offline
Don't necrobump, especially just to post information one the wiki: https://wiki.archlinux.org/index.php/Co … bumping.22
Closing
Offline
Pages: 1
Topic closed