You are not logged in.

#1 2012-02-28 09:28:51

Lockheed
Member
Registered: 2010-03-16
Posts: 1,521

[solved] CUPS a nd HPLIP issues

I have this old Pentium II machine running LXbuntu 9.04. Everything is working fine on it, except it cannot be upgraded without breaking everything because it is ubuntu.
Also, the CUPS/HPLIP combo is working fine on it and my USB-connected printer is printing (this is old CUPS 1.3.9 and HPLIP is also not particularly new).

So, I installed Arch alongside, updated it, and tried setting up cups/hplip, but I can't get the printer to work.
I get to cusp webadmin, add printer, it finds it, but then when I select it, then select default options, like paper size, and click ADD, the new page appears after 2-3 minutes with this information:

Add Printer HP_DeskJet_845C Error
Unable to get list of printer drivers:
Success

Add Printer HP_DeskJet_845C Error
Unable to get list of printer drivers:
Success

Now, I don't want to be a malcontent seeing the glass half empty so I do appreciate the fact it successfully produced an error, but I would sure like to be able to print something.

Last edited by Lockheed (2012-03-01 16:00:30)

Offline

#2 2012-02-28 09:46:41

scar
Member
From: Hungary
Registered: 2009-10-01
Posts: 442

Re: [solved] CUPS a nd HPLIP issues

I had a similar problem, when foomatic was installed too - as in the arch/cups wiki:

"
"Unable to get list of printer drivers"

Try to remove Foomatic drivers. "


“The future has already arrived. It's just not evenly distributed yet.”
― William Gibson

Offline

#3 2012-02-28 09:51:11

toad
Member
From: if only I knew
Registered: 2008-12-22
Posts: 1,775
Website

Re: [solved] CUPS a nd HPLIP issues

What error messages do you get when you try to set it up with hp-setup -i? Oh, and whenever you do anything with hp-lip you have to symlink /usr/bin/python2.7 to /usr/bin/python...


never trust a toad...
::Grateful ArchDonor::
::Grateful Wikipedia Donor::

Offline

#4 2012-02-28 10:57:50

Lockheed
Member
Registered: 2010-03-16
Posts: 1,521

Re: [solved] CUPS a nd HPLIP issues

Removing foomatic produces this:

$ yaourt -R foomatic-db foomatic-db-engine foomatic-filters
checking dependencies...
error: failed to prepare transaction (could not satisfy dependencies)
:: hplip: requires foomatic-db
:: hplip: requires foomatic-db-engine
toad wrote:

What error messages do you get when you try to set it up with hp-setup -i?

---------------------
| PRINT QUEUE SETUP |
---------------------


Please enter a name for this print queue (m=use model name:'DeskJet_845C'*, q=quit) ?m
Using queue name: DeskJet_845C
Locating PPD file... Please wait.
warning: No PPD found for model deskjet_845c using new algorithm. Trying old algorithm...
error: No PPD found for model deskjet_845c 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) ? 
toad wrote:

Oh, and whenever you do anything with hp-lip you have to symlink /usr/bin/python2.7 to /usr/bin/python...

File exists.

Offline

#5 2012-02-28 11:23:21

scar
Member
From: Hungary
Registered: 2009-10-01
Posts: 442

Re: [solved] CUPS a nd HPLIP issues

my fault about foomatic...

try to install gutenprint, restart cupsd and install your printer with the gutenprint driver


“The future has already arrived. It's just not evenly distributed yet.”
― William Gibson

Offline

#6 2012-02-28 11:27:44

Lockheed
Member
Registered: 2010-03-16
Posts: 1,521

Re: [solved] CUPS a nd HPLIP issues

What about blacklisting usblp? I tried it, it didn't help, but should I unblacklist it now?

Offline

#7 2012-02-28 11:35:08

scar
Member
From: Hungary
Registered: 2009-10-01
Posts: 442

Re: [solved] CUPS a nd HPLIP issues

You have a printer driver problem. So I thing it doesn't change anything. If your printer is detected with usblp blacklisted, leave it in that state. Have you tried gutenprint? ( which is not the best solution, but it should work )


“The future has already arrived. It's just not evenly distributed yet.”
― William Gibson

Offline

#8 2012-02-28 12:05:00

Lockheed
Member
Registered: 2010-03-16
Posts: 1,521

Re: [solved] CUPS a nd HPLIP issues

Yes, tried it and the situation did not change one bit.

Offline

#9 2012-02-28 12:19:15

scar
Member
From: Hungary
Registered: 2009-10-01
Posts: 442

Re: [solved] CUPS a nd HPLIP issues

Have you tried to install the printer with a ppd file specified to override the default driver?

(you can have it from your /usr/share/ppd/HP/hp-yourmodelhere-hpijs.ppd.gz)

( just a question: what is your output if you type:
$ sudo lpstat? )

if you see your printer here, it is definitely a cups driver problem.

Last edited by scar (2012-02-28 12:27:03)


“The future has already arrived. It's just not evenly distributed yet.”
― William Gibson

Offline

#10 2012-02-28 12:37:37

Lockheed
Member
Registered: 2010-03-16
Posts: 1,521

Re: [solved] CUPS a nd HPLIP issues

Adding print queue to CUPS:
Device URI: hp:/usb/DeskJet_845C?serial=CN1641P4NPSX
Queue name: DeskJet_845C
PPD file: /usr/share/ppd/HP/hp-deskjet_845c.ppd.gz
Location: 
Information: 
error: Printer queue setup failed. Please restart CUPS and try again.

lpstat produces no output but the printer is being detected by hp-setup and by CUPS http admin panel.

Offline

#11 2012-02-28 12:43:49

scar
Member
From: Hungary
Registered: 2009-10-01
Posts: 442

Re: [solved] CUPS a nd HPLIP issues

OK. As seen in your previous output, your CUPS is using the hp-deskjet_845c.ppd driver.

Normally when you set up your printer, you can choose the hpijs driver too. Give it a try.


“The future has already arrived. It's just not evenly distributed yet.”
― William Gibson

Offline

#12 2012-02-28 13:02:57

Lockheed
Member
Registered: 2010-03-16
Posts: 1,521

Re: [solved] CUPS a nd HPLIP issues

I frist tried it with hpijs, then moved on to this one.

Offline

#13 2012-02-28 13:50:15

toad
Member
From: if only I knew
Registered: 2008-12-22
Posts: 1,775
Website

Re: [solved] CUPS a nd HPLIP issues

Strange. According to this hplip is the recommended driver and everything should be hunky-dory. I'd suggest trying it again and running hp-check for further hints...


never trust a toad...
::Grateful ArchDonor::
::Grateful Wikipedia Donor::

Offline

#14 2012-02-28 14:48:12

Lockheed
Member
Registered: 2010-03-16
Posts: 1,521

Re: [solved] CUPS a nd HPLIP issues

Saving output in log file: hp-check.log

Initializing. Please wait...
 
---------------
| SYSTEM INFO |
---------------

Basic system information:
Linux desknik 3.2.7-1-ARCH #1 SMP PREEMPT Tue Feb 21 16:59:04 UTC 2012 i686 Pentium II (Deschutes) GenuineIntel GNU/Linux

Distribution:
unknown 0.0

Checking Python version...
OK, version 2.7.2 installed

Checking PyQt 4.x version...
error: NOT FOUND OR FAILED TO LOAD!

Checking for CUPS...
Status: scheduler is running
Version: 1.5.2
error_log is set to level: warn

Checking for dbus/python-dbus...
dbus daemon is running.
python-dbus version: 0.84.0


------------------------------------
| COMPILE AND RUNTIME DEPENDENCIES |
------------------------------------

note: To check for compile-time only dependencies, re-run hp-check with the -c parameter (ie, hp-check -c).
note: To check for run-time only dependencies, re-run hp-check with the -r parameter (ie, hp-check -r).

Checking for dependency: CUPS - Common Unix Printing System...
OK, found.

Checking for dependency: CUPS devel- Common Unix Printing System development files...
OK, found.

Checking for dependency: CUPS image - CUPS image development files...
OK, found.

Checking for dependency: DBus - Message bus system...
OK, found.

Checking for dependency: gcc - GNU Project C and C++ Compiler...
OK, found.

Checking for dependency: GhostScript - PostScript and PDF language interpreter and previewer...
OK, found.

Checking for dependency: libcrypto - OpenSSL cryptographic library...
OK, found.

Checking for dependency: libjpeg - JPEG library...
OK, found.

Checking for dependency: libnetsnmp-devel - SNMP networking library development files...
OK, found.

Checking for dependency: libpthread - POSIX threads library...
OK, found.

Checking for dependency: libtool - Library building support services...
OK, found.

Checking for dependency: libusb - USB library...
OK, found.

Checking for dependency: make - GNU make utility to maintain groups of programs...
OK, found.

Checking for dependency: PIL - Python Imaging Library (required for commandline scanning with hp-scan)...
warning: NOT FOUND! This is an OPTIONAL/RUNTIME ONLY dependency. Some HPLIP functionality may not function properly.

Checking for dependency: PolicyKit - Administrative policy framework...
OK, found.

Checking for dependency: PyQt 4 DBus - DBus Support for PyQt4...
error: NOT FOUND! This is a REQUIRED/RUNTIME ONLY dependency. Please make sure that this dependency is installed before installing or running HPLIP.

Checking for dependency: Python DBus - Python bindings for DBus...
OK, found.

Checking for dependency: Python devel - Python development files...
OK, found.

Checking for dependency: Python libnotify - Python bindings for the libnotify Desktop notifications...
warning: NOT FOUND! This is an OPTIONAL/RUNTIME ONLY dependency. Some HPLIP functionality may not function properly.

Checking for dependency: Python XML libraries...
OK, found.

Checking for dependency: Python 2.3 or greater - Required for fax functionality...
OK, found.

Checking for dependency: Python 2.2 or greater - Python programming language...
OK, found.

Checking for dependency: Reportlab - PDF library for Python...
warning: NOT FOUND! This is an OPTIONAL/RUNTIME ONLY dependency. Some HPLIP functionality may not function properly.

Checking for dependency: SANE - Scanning library...
OK, found.

Checking for dependency: SANE - Scanning library development files...
OK, found.

Checking for dependency: scanimage - Shell scanning program...
OK, found.

Checking for dependency: xsane - Graphical scanner frontend for SANE...
warning: NOT FOUND! This is an OPTIONAL/RUNTIME ONLY dependency. Some HPLIP functionality may not function properly.


----------------------
| HPLIP INSTALLATION |
----------------------


Currently installed HPLIP version...
HPLIP 3.12.2 currently installed in '/usr/share/hplip'.

Current contents of '/etc/hp/hplip.conf' file:
# hplip.conf.  Generated from hplip.conf.in by configure.

[hplip]
version=3.12.2

[dirs]
home=/usr/share/hplip
run=/var/run
ppd=/usr/share/ppd/HP
ppdbase=/usr/share/ppd
doc=/usr/share/doc/hplip-3.12.2
icon=/usr/share/applications
cupsbackend=/usr/lib/cups/backend
cupsfilter=/usr/lib/cups/filter
drv=/usr/share/cups/drv/hp

# Following values are determined at configure time and cannot be changed.
[configure]
network-build=yes
pp-build=yes
gui-build=yes
scanner-build=yes
fax-build=yes
dbus-build=yes
cups11-build=no
doc-build=yes
shadow-build=no
hpijs-install=yes
foomatic-drv-install=yes
foomatic-ppd-install=yes
foomatic-rip-hplip-install=yes
hpcups-install=yes
cups-drv-install=yes
cups-ppd-install=yes
internal-tag=3.12.2
restricted-build=no
ui-toolkit=qt4
qt3=no
qt4=yes
policy-kit=no
hpijs-only-build=no
lite-build=no
udev-acl-rules=yes
hpcups-only-build=no
hpijs-only-build=no


Current contents of '/var/lib/hp/hplip.state' file:
# hplip.state - HPLIP runtime persistent variables. 

[plugin]
installed=0
eula=0



Current contents of '~/.hplip/hplip.conf' file:
[last_used]
device_uri = hp:/usb/DeskJet_845C?serial=CN1641P4NPSX

[installation]
date_time = 02/28/12 14:46:18
version = 3.12.2



--------------------------
| DISCOVERED USB DEVICES |
--------------------------

  Device URI                        Model           
  --------------------------------  ----------------
  hp:/usb/DeskJet_845C?serial=CN16  HP DeskJet 845C 
  41P4NPSX                                          

---------------------------------
| INSTALLED CUPS PRINTER QUEUES |
---------------------------------

 
lpstat
------
Type: Unknown
Device URI: No destinations added.


----------------------
| SANE CONFIGURATION |
----------------------

'hpaio' in '/etc/sane.d/dll.conf'...
error: Not found. SANE backend 'hpaio' NOT properly setup (needs to be added to /etc/sane.d/dll.conf).

Checking output of 'scanimage -L'...
 
No scanners were identified. If you were expecting something different,
check that the scanner is plugged in, turned on and detected by the
sane-find-scanner tool (if appropriate). Please read the documentation
which came with this software (README, FAQ, manpages).


---------------------
| PYTHON EXTENSIONS |
---------------------

Checking 'cupsext' CUPS extension...
OK, found.

Checking 'pcardext' Photocard extension...
OK, found.

Checking 'hpmudext' I/O extension...
OK, found.

Checking 'scanext' SANE scanning extension...
OK, found.


 
-----------------
| USB I/O SETUP |
-----------------

Checking for permissions of USB attached printers...

HP Device 0x904 at 001:005: 
    Device URI: hp:/usb/DeskJet_845C?serial=CN1641P4NPSX
warning: Unable to connect to dbus. Is hp-systray running?
    Device node: /dev/bus/usb/001/005
    Mode: 0664
getfacl: Removing leading '/' from absolute path names
# file: dev/bus/usb/001/005
# owner: root
# group: lp
user::rw-
user:cc:rw-
group::rw-
mask::rw-
other::r--



---------------
| USER GROUPS |
---------------

lp wheel ftp log http games video audio optical floppy storage camera power users cc abs


-----------
| SUMMARY |
-----------

error: 7 errors and/or warnings.

Please refer to the installation instructions at:
http://hplip.sourceforge.net/install/index.html


Done.
[cc@desknik ~]$ 
HP Linux Imaging and Printing System (ver. 3.12.2)
System Tray Status Service ver. 2.0

Copyright (c) 2001-9 Hewlett-Packard 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.

warning: Qt/PyQt 4 initialization failed.
error: hp-systray requires Qt4 GUI and DBus support. Exiting.

Offline

#15 2012-02-28 14:59:27

toad
Member
From: if only I knew
Registered: 2008-12-22
Posts: 1,775
Website

Re: [solved] CUPS a nd HPLIP issues

Checking PyQt 4.x version...
error: NOT FOUND OR FAILED TO LOAD!

That is why you'd have to temporarily symlink python 2.7 to python as stated above - simply remove the existing one to python3 (you can replace it once you're done with hplip).

warning: Unable to connect to dbus. Is hp-systray running?

Also odd but could be hp-lip related in that it doesn't have python 2.7 at its disposal...

I don't want to send you on a wild goose chase but I had probs with a new HP network printer and was only able to fix them using hplip. You can always try your luck with cups, should suffice for an old(ish) printer...


never trust a toad...
::Grateful ArchDonor::
::Grateful Wikipedia Donor::

Offline

#16 2012-02-28 19:08:48

Lockheed
Member
Registered: 2010-03-16
Posts: 1,521

Re: [solved] CUPS a nd HPLIP issues

Does hp-setup need to be run as root?

Offline

#17 2012-02-28 22:47:22

Lockheed
Member
Registered: 2010-03-16
Posts: 1,521

Re: [solved] CUPS a nd HPLIP issues

It doesn't work either way. I am on my wits' end.

Offline

#18 2012-03-01 12:41:56

toad
Member
From: if only I knew
Registered: 2008-12-22
Posts: 1,775
Website

Re: [solved] CUPS a nd HPLIP issues

"Doesn't work" is not much info to go on. In order to get my printer working I had to run hp-check a number of times and always google the relevant error messages until it finally co-operated.


never trust a toad...
::Grateful ArchDonor::
::Grateful Wikipedia Donor::

Offline

#19 2012-03-01 12:50:32

Lockheed
Member
Registered: 2010-03-16
Posts: 1,521

Re: [solved] CUPS a nd HPLIP issues

I gave all the details already. Every time it is the same result.

In hp-setup -i

Information: 
error: Printer queue setup failed. Please restart CUPS and try again.

in CUPS webinterface:

Add Printer HP_DeskJet_845C Error
Unable to get list of printer drivers:
Success

Googleing it didn't get me any closer. Any solution I found (changing usb device permissions, reinstalling older cups/hplip, unpacking PPD files etc.) did not changed the outcome one bit.

Offline

#20 2012-03-01 14:13:11

Lockheed
Member
Registered: 2010-03-16
Posts: 1,521

Re: [solved] CUPS a nd HPLIP issues

Finally, I got it working. Here's how:
------------------------------------------------------
1. (probably unnecessary) I also added a udev rule to set permissions on printer device at 660.
2. (possibly unnecessary) added 'acpi=force' to kernel line in grub.
3. Installed python2-qt
4. Run hp-setup -u as root (unlike the console version, this found the earlier unpacked PDD file by itself).
5. Finished configuration of default options through CUPS web interface.

Last edited by Lockheed (2012-03-01 16:10:27)

Offline

#21 2012-05-20 20:09:13

jamapii
Member
Registered: 2012-05-20
Posts: 1

Re: [solved] CUPS a nd HPLIP issues

(Note to self, for next time this happens)

To bypass the bogus message about printer drivers ("Success"), try unchecking "Share this printer".

The only other possibility what might have done it for me is installing foo2zjs (which btw contains the best driver for my printer).

Yes, it's ridiculous. So is a lot of other cups behaviuor.

You can reenable sharing in /etc/cups/printers.conf when the server is stopped. I didn't try it with the web interface because it looks like changing is implemented recreating, which would fail again.

Offline

#22 2013-02-08 09:00:32

maofree
Member
Registered: 2012-11-04
Posts: 16
Website

Re: [solved] CUPS a nd HPLIP issues

Hi Lockheed
thanks for the suggestion to install python2-qt
It solved the problem of

warning: Qt/PyQt 4 initialization failed.
error: hp-systray requires Qt4 GUI and DBus support. Exiting.

thanks

bye

Last edited by maofree (2013-02-08 09:00:57)

Offline

Board footer

Powered by FluxBB