You are not logged in.

#1 2010-01-05 04:53:49

RedScare
Member
Registered: 2009-03-28
Posts: 91

Kernel requirements for HPLIP (not working) [SOLVED]

My printer (connected to the network through my router with a static ip address) used to work fine with HPLIP and CUPS. When I last tested, I was (and am) using a custom-compiled zen kernel; the relevant modules that I compiled (separately, not into the kernel) are plip, ppdev, and parport. I am guessing that it is a combination of package upgrades and my custom kernel that is causing the problem below:

My printer is detected by CUPS, and I can see it on localhost:631. When I send jobs to it, it begins "processing" them, then hangs on a (to-print) page and I see the message

/usr/lib/cups/backend/hp failed

I deleted the printer from CUPS and re-added using

sudo hp-setup

The process goes just fine, with hp-setup only throwing a warning about how dbus must be running for the PC to fax (with which I am not concerned).

When I run hp-testpage, I get this:

redscare:~> hp-testpage 
warning: python-dbus not installed.

HP Linux Imaging and Printing System (ver. 3.9.12)
Testpage Print Utility ver. 6.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.

Using printer: Officejet_6500_E709n

warning: Qt/PyQt 4 initialization failed.
error: hp-testpage -u/--gui requires Qt4 GUI support. Entering interactive mode.
error: Unable to communicate with device (code=12): hp:/net/Officejet_6500_E709n <-- This line is important?
error: Unable to print to printer. Please check device and try again.

note: If an error occured, or the test page failed to print, refer to the HPLIP website
note: at: http://hplip.sourceforge.net for troubleshooting and support.

Thanks in advance for your help

Last edited by RedScare (2010-01-08 01:27:28)

Offline

#2 2010-01-05 06:00:17

wesley_of_course
Member
Registered: 2007-09-13
Posts: 110

Re: Kernel requirements for HPLIP (not working) [SOLVED]

I had a challenge similar to your s after a few updates .  Do you have HPLIP installed ?

   HP Device Manager - Has a trouble shooting  section which worked in my case . Actions , Help

    and in my machine ;  file:///usr/share/doc/hplip-3.9.12/troubleshooting.html it asked to run
     
     

 hp-check -t

which I did and followed the prompts , it would run checks and tell       
         
        what was needed  to install , minor stuff but it  worked .  Hope it helps I realize I wasn't

   none to specific but ,

Offline

#3 2010-01-06 21:38:50

RedScare
Member
Registered: 2009-03-28
Posts: 91

Re: Kernel requirements for HPLIP (not working) [SOLVED]

I didn't have python-dbus installed, which I did. hp-check -t still throws some errors, but I don't see how they are related to the printer not working (more scanning-related issues). Here's the new output of hp-check -t:

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

Basic system information:
Linux redscare 2.6.32-ZEN #1 ZEN SMP PREEMPT Tue Jan 5 20:30:35 EST 2010 x86_64 Intel(R) Core(TM)2 Duo CPU T9500 @ 2.60GHz GenuineIntel GNU/Linux

Distribution:
unknown 0.0

Checking Python version...
OK, version 2.6.4 installed

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

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

Checking for dbus/python-dbus...                                                                                                                                                    dbus daemon is running.
python-dbus version: 0.83.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...
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: SANE - Scanning library development files...
error: NOT FOUND! This is a REQUIRED/COMPILE TIME ONLY dependency. Please make sure that this dependency is installed before installing or running HPLIP.

Checking for dependency: scanimage - Shell scanning program...
warning: NOT FOUND! This is an OPTIONAL/RUNTIME ONLY dependency. Some HPLIP functionality may not function properly.

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.9.12 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.9.12

[dirs]
home=/usr/share/hplip
run=/var/run
ppd=/usr/share/ppd/HP
ppdbase=/usr/share/ppd
doc=/usr/share/doc/hplip-3.9.12
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=no
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=no
internal-tag=3.9.12.29
restricted-build=no
ui-toolkit=qt4
qt3=no
qt4=yes
policy-kit=no
hpijs-only-build=no
lite-build=no
udev-acl-rules=no
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]
printer_name = BlackPrinter
device_uri = hp:/net/Officejet_6500_E709n?zc=PRINTER

[installation]
version = 3.9.8.36
date_time = 10/15/09 23:29:55



--------------------------
| DISCOVERED USB DEVICES |
--------------------------
                                                                                                                                                                                    No devices found.

---------------------------------
| INSTALLED CUPS PRINTER QUEUES |
---------------------------------
                                                                                                                                                                                     /
BlackPrinter
------------
Type: Printer
Device URI: hp:/net/Officejet_6500_E709n?zc=PRINTER
PPD: /etc/cups/ppd/BlackPrinter.ppd
PPD Description: HP Officejet 6500 e709n, hpcups 3.9.12                                                                                                                             Printer status: printer BlackPrinter is idle.  enabled since Wed 06 Jan 2010 04:26:39 PM EST
error: Unable to communicate with device (code=12): hp:/net/Officejet_6500_E709n?zc=PRINTER
error: unable to open channel
error: Communication status: Failed

BlackPrinterFax
---------------
Type: Fax
Device URI: hpfax:/net/Officejet_6500_E709n?zc=PRINTER
PPD: /etc/cups/ppd/BlackPrinterFax.ppd
PPD Description: HP Fax hpcups                                                                                                                                                      Printer status: printer BlackPrinterFax is idle.  enabled since Wed 06 Jan 2010 04:26:57 PM EST
error: Unable to communicate with device (code=12): hpfax:/net/Officejet_6500_E709n?zc=PRINTER
error: unable to open channel
error: Communication status: Failed


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

'hpaio' in '/etc/sane.d/dll.conf'...
error: '/etc/sane.d/dll.conf' not found. Is SANE installed?

---------------------
| 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...
error: NOT FOUND OR FAILED TO LOAD! Please reinstall HPLIP and check for the proper installation of scanext.
                                                                                                                                                                                     |
---------------
| USER GROUPS |
---------------
                                                                                                                                                                                    root bin daemon sys adm disk wheel log


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

error: 13 errors and/or warnings.

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


Done.

Offline

#4 2010-01-07 02:13:28

RedScare
Member
Registered: 2009-03-28
Posts: 91

Re: Kernel requirements for HPLIP (not working) [SOLVED]

I hate to bump but this is kind of urgent, if anyone could give a pointer it would be greatly appreciated.

Offline

#5 2010-01-07 08:44:12

bernarcher
Forum Fellow
From: Germany
Registered: 2009-02-17
Posts: 2,281

Re: Kernel requirements for HPLIP (not working) [SOLVED]

I cannot help much, But at least make sure you have the packages flagged as missed dependencies installed. Especially check for these:

pacman -Q pil pyqt

and optionally(?):

pacman -Q python-libnotify sane

Also see the "Optional Deps" section in

pacman -Qi hplip

To know or not to know ...
... the questions remain forever.

Offline

#6 2010-01-08 01:27:09

RedScare
Member
Registered: 2009-03-28
Posts: 91

Re: Kernel requirements for HPLIP (not working) [SOLVED]

I removed all the crap that I installed; I realized that cups was having problems connecting to the printer because the uri used the hostname; for soem reason this was bad, and when i changed the zc=HOSTNAME line to ip=IP.IP.IP.IP in /etc/cups/printers.conf and /etc/cups/printers.conf.0, everything worked.

If anyone runs into this problem keep in mind it is not a kernel issue. Perhaps a mod can retitle and move the thread so that people are aware of the problem?

Offline

#7 2010-07-29 00:42:54

gone404
Member
Registered: 2010-06-22
Posts: 8

Re: Kernel requirements for HPLIP (not working) [SOLVED]

This worked for me. Make sure you use ip= and not zc=

Offline

Board footer

Powered by FluxBB