"/usr/lib/cups/filter/hpcups failed"

Asked by Chandan

We recently bought HP Color Laser Jet CP1025. Its driver for OpenSUSE 11.2 is not present on the HPLIP website. So, downloaded 3.11.1. On execution it asked for a plugin (without plugin, the installation did not proceed further). http://www.openprinting.org/download/printdriver/auxfiles/HP/plugins/ downloaded the plugin for 3.11.1. Then the setup was complete, and it recognised the printer. While printing the test page using CUPS (localhost:631). It showed the error "/usr/lib/cups/filter/hpcups failed". While executing hp-setup -i at the end, this is shown in the output.
---------------------
| PRINTER TEST PAGE |
---------------------

Would you like to print a test page (y=yes*, n=no, q=quit) ? y
warning: hp-testpage should not be run as root/superuser.

HP Linux Imaging and Printing System (ver. 3.11.1)
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.

error: Channel read error
error: Channel read error

Here is the output of hp-check i.e. hp-check.log
hp-check[9608]: info: :
Initializing. Please wait...
SUSE LINUX^M

11.2^M

scheduler is running^M

1.3.11^M

Linux shiraz 2.6.31.14-0.6-desktop #1 SMP PREEMPT 2010-12-10 11:18:32 +0100 i686 i686 i386 GNU/Linux^M

hp-check[9608]: info: :
hp-check[9608]: info: :---------------
hp-check[9608]: info: :| SYSTEM INFO |
hp-check[9608]: info: :---------------
hp-check[9608]: info: :
hp-check[9608]: info: :Basic system information:
hp-check[9608]: info: :Linux shiraz 2.6.31.14-0.6-desktop #1 SMP PREEMPT 2010-12-10 11:18:32 +0100 i686 i686 i386 GNU/Linux^M
hp-check[9608]: info: :
hp-check[9608]: info: :Distribution:
hp-check[9608]: info: :suse 11.2
hp-check[9608]: info: :
hp-check[9608]: info: :Checking Python version...
hp-check[9608]: info: :OK, version 2.6.2 installed
hp-check[9608]: info: :
hp-check[9608]: info: :Checking PyQt 4.x version...
hp-check[9608]: info: :OK, version 4.6.1 installed.
hp-check[9608]: info: :
hp-check[9608]: info: :Checking for CUPS...
hp-check[9608]: info: :Status: scheduler is running
hp-check[9608]: info: :Version: 1.3.11
hp-check[9608]: info: :error_log is set to level: info
hp-check[9608]: info: :
hp-check[9608]: info: :Checking for dbus/python-dbus...
hp-check[9608]: info: :dbus daemon is running.
hp-check[9608]: info: :python-dbus version: 0.83.0
hp-check[9608]: info: :
hp-check[9608]: info: :
hp-check[9608]: info: :------------------------------------
hp-check[9608]: info: :| COMPILE AND RUNTIME DEPENDENCIES |
hp-check[9608]: info: :------------------------------------
hp-check[9608]: info: :
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).
hp-check[9608]: info: :
hp-check[9608]: info: :Checking for dependency: CUPS - Common Unix Printing System...
hp-check[9608]: info: :OK, found.
hp-check[9608]: info: :
hp-check[9608]: info: :Checking for dependency: CUPS DDK - CUPS driver development kit...
hp-check[9608]: info: :OK, found.
hp-check[9608]: info: :
hp-check[9608]: info: :Checking for dependency: CUPS devel- Common Unix Printing System development files...
hp-check[9608]: info: :OK, found.
hp-check[9608]: info: :
hp-check[9608]: info: :Checking for dependency: CUPS image - CUPS image development files...
hp-check[9608]: info: :OK, found.
hp-check[9608]: info: :
hp-check[9608]: info: :Checking for dependency: DBus - Message bus system...
hp-check[9608]: info: :OK, found.
hp-check[9608]: info: :
hp-check[9608]: info: :Checking for dependency: gcc - GNU Project C and C++ Compiler...
hp-check[9608]: info: :OK, found.
hp-check[9608]: info: :
hp-check[9608]: info: :Checking for dependency: GhostScript - PostScript and PDF language interpreter and previewer...
hp-check[9608]: info: :OK, found.
hp-check[9608]: info: :
hp-check[9608]: info: :Checking for dependency: libcrypto - OpenSSL cryptographic library...
hp-check[9608]: info: :OK, found.
hp-check[9608]: info: :
hp-check[9608]: info: :Checking for dependency: libjpeg - JPEG library...
hp-check[9608]: info: :OK, found.
hp-check[9608]: info: :
hp-check[9608]: info: :Checking for dependency: libnetsnmp-devel - SNMP networking library development files...
hp-check[9608]: info: :OK, found.
hp-check[9608]: info: :
hp-check[9608]: info: :Checking for dependency: libpthread - POSIX threads library...
hp-check[9608]: info: :OK, found.
hp-check[9608]: info: :
hp-check[9608]: info: :Checking for dependency: libtool - Library building support services...
hp-check[9608]: info: :OK, found.
hp-check[9608]: info: :
hp-check[9608]: info: :Checking for dependency: libusb - USB library...
hp-check[9608]: info: :OK, found.
hp-check[9608]: info: :
hp-check[9608]: info: :Checking for dependency: make - GNU make utility to maintain groups of programs...
hp-check[9608]: info: :OK, found.
hp-check[9608]: info: :
hp-check[9608]: info: :Checking for dependency: PIL - Python Imaging Library (required for commandline scanning with hp-scan)...
hp-check[9608]: info: :OK, found.
hp-check[9608]: info: :
hp-check[9608]: info: :Checking for dependency: PolicyKit - Administrative policy framework...
hp-check[9608]: info: :OK, found.
hp-check[9608]: info: :
hp-check[9608]: info: :Checking for dependency: PyQt 4 DBus - DBus Support for PyQt4...
hp-check[9608]: info: :OK, found.
hp-check[9608]: info: :
hp-check[9608]: info: :Checking for dependency: Python DBus - Python bindings for DBus...
hp-check[9608]: info: :OK, found.
hp-check[9608]: info: :
hp-check[9608]: info: :Checking for dependency: Python devel - Python development files...
hp-check[9608]: info: :OK, found.
hp-check[9608]: info: :
hp-check[9608]: info: :Checking for dependency: Python libnotify - Python bindings for the libnotify Desktop notifications...
hp-check[9608]: info: :OK, found.
hp-check[9608]: info: :
hp-check[9608]: info: :Checking for dependency: Python XML libraries...
hp-check[9608]: info: :OK, found.
hp-check[9608]: info: :
hp-check[9608]: info: :Checking for dependency: Python 2.3 or greater - Required for fax functionality...
hp-check[9608]: info: :OK, found.
hp-check[9608]: info: :
hp-check[9608]: info: :Checking for dependency: Python 2.2 or greater - Python programming language...
hp-check[9608]: info: :OK, found.
hp-check[9608]: info: :
hp-check[9608]: info: :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.
hp-check[9608]: info: :
hp-check[9608]: info: :Checking for dependency: SANE - Scanning library...
hp-check[9608]: info: :OK, found.
hp-check[9608]: info: :
hp-check[9608]: info: :Checking for dependency: SANE - Scanning library development files...
hp-check[9608]: info: :OK, found.
hp-check[9608]: info: :
hp-check[9608]: info: :Checking for dependency: scanimage - Shell scanning program...
hp-check[9608]: info: :OK, found.
hp-check[9608]: info: :
hp-check[9608]: info: :Checking for dependency: xsane - Graphical scanner frontend for SANE...
hp-check[9608]: info: :OK, found.
hp-check[9608]: info: :
hp-check[9608]: info: :
hp-check[9608]: info: :----------------------
hp-check[9608]: info: :| HPLIP INSTALLATION |
hp-check[9608]: info: :----------------------
hp-check[9608]: info: :
hp-check[9608]: info: :
hp-check[9608]: info: :Currently installed HPLIP version...
hp-check[9608]: info: :HPLIP 3.11.1 currently installed in '/usr/share/hplip'.
hp-check[9608]: info: :
hp-check[9608]: info: :Current contents of '/etc/hp/hplip.conf' file:
hp-check[9608]: info: :# hplip.conf. Generated from hplip.conf.in by configure.

[hplip]
version=3.11.1

[dirs]
home=/usr/share/hplip
run=/var/run
ppd=/usr/share/cups/model/HP
ppdbase=/usr/share/cups/model
doc=/usr/share/doc/hplip-3.11.1
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=no
foomatic-drv-install=no
foomatic-ppd-install=no
foomatic-rip-hplip-install=no
hpcups-install=yes
cups-drv-install=yes
cups-ppd-install=no
internal-tag=3.11.1.19
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

hp-check[9608]: info: :
hp-check[9608]: info: :Current contents of '/var/lib/hp/hplip.state' file:
hp-check[9608]: info: :[plugin]
eula = 1
installed = 1

hp-check[9608]: info: :
hp-check[9608]: info: :Current contents of '~/.hplip/hplip.conf' file:
hp-check[9608]: info: :[installation]
version = 3.11.1.19
date_time = 03/13/11 18:40:47

hp-check[9608]: info: :
hp-check[9608]: info: :--------------------------
hp-check[9608]: info: :| DISCOVERED USB DEVICES |
hp-check[9608]: info: :--------------------------
hp-check[9608]: info: :
hp-check[9608]: info: : Device URI Model
hp-check[9608]: info: : ----------------------------------------------- -------------------------------
hp-check[9608]: info: : hp:/usb/HP_LaserJet_CP1025?serial=00000GF00GD3S HP LaserJet CP1025
hp-check[9608]: info: :
hp-check[9608]: info: :---------------------------------
hp-check[9608]: info: :| INSTALLED CUPS PRINTER QUEUES |
hp-check[9608]: info: :---------------------------------
hp-check[9608]: info: :
hp-check[9608]: info: :
hp-check[9608]: info: :CP1025
hp-check[9608]: info: :------
hp-check[9608]: info: :Type: Printer
hp-check[9608]: info: :Device URI: hp:/usb/HP_LaserJet_CP1025?serial=00000GF00GD3S
hp-check[9608]: info: :PPD: /etc/cups/ppd/CP1025.ppd
hp-check[9608]: info: :PPD Description: HP LaserJet cp1025, hpcups 3.11.1, requires proprietary plugin
hp-check[9608]: info: :Printer status: printer CP1025 is idle. enabled since Sun Mar 13 18:36:17 2011^M /usr/lib/cups/filter/hpcups failed^M
hp-check[9608]: info: :Required plug-in status: Installed
hp-check[9608]: info: :Communication status: Good
hp-check[9608]: info: :
hp-check[9608]: info: :P2055dn
hp-check[9608]: info: :-------
hp-check[9608]: info: :Type: Unknown
hp-check[9608]: info: :Device URI: socket://10.10.10.16
hp-check[9608]: info: :PPD: /etc/cups/ppd/P2055dn.ppd
hp-check[9608]: info: :PPD Description: HP LaserJet p2055dn pcl3, hpcups 3.11.1
hp-check[9608]: info: :Printer status: printer P2055dn is idle. enabled since Fri Mar 11 17:47:08 2011^M
warning: Printer is not HPLIP installed. Printers must use the hp: or hpfax: CUPS backend to function in HPLIP.
hp-check[9608]: info: :
hp-check[9608]: info: :
hp-check[9608]: info: :----------------------
hp-check[9608]: info: :| SANE CONFIGURATION |
hp-check[9608]: info: :----------------------
hp-check[9608]: info: :
hp-check[9608]: info: :'hpaio' in '/etc/sane.d/dll.conf'...
hp-check[9608]: info: :OK, found. SANE backend 'hpaio' is properly set up.
hp-check[9608]: info: :
hp-check[9608]: info: :Checking output of 'scanimage -L'...
hp-check[9608]: info: :^M
No scanners were identified. If you were expecting something different,^M
check that the scanner is plugged in, turned on and detected by the^M
sane-find-scanner tool (if appropriate). Please read the documentation^M
which came with this software (README, FAQ, manpages).^M

hp-check[9608]: info: :
hp-check[9608]: info: :---------------------
hp-check[9608]: info: :| PYTHON EXTENSIONS |
hp-check[9608]: info: :---------------------
hp-check[9608]: info: :
hp-check[9608]: info: :Checking 'cupsext' CUPS extension...
hp-check[9608]: info: :OK, found.
hp-check[9608]: info: :
hp-check[9608]: info: :Checking 'pcardext' Photocard extension...
hp-check[9608]: info: :OK, found.
hp-check[9608]: info: :
hp-check[9608]: info: :Checking 'hpmudext' I/O extension...
hp-check[9608]: info: :OK, found.
hp-check[9608]: info: :
hp-check[9608]: info: :Checking 'scanext' SANE scanning extension...
hp-check[9608]: info: :OK, found.
hp-check[9608]: info: :
hp-check[9608]: info: :
hp-check[9608]: info: :
hp-check[9608]: info: :-----------------
hp-check[9608]: info: :| USB I/O SETUP |
hp-check[9608]: info: :-----------------
hp-check[9608]: info: :
hp-check[9608]: info: :Checking for permissions of USB attached printers...
hp-check[9608]: info: :
HP Device 0xb2a at 001:005:
hp-check[9608]: info: : Device URI: hp:/usb/HP_LaserJet_CP1025?serial=00000GF00GD3S
hp-check[9608]: info: : Device node: /dev/bus/usb/001/005
hp-check[9608]: info: : Mode: 0660
hp-check[9608]: info: :getfacl: Removing leading '/' from absolute path names^M
# file: dev/bus/usb/001/005^M
# owner: root^M
# group: lp^M
user::rw-^M
group::rw-^M
other::---^M
^M

hp-check[9608]: info: :
hp-check[9608]: info: :---------------
hp-check[9608]: info: :| USER GROUPS |
hp-check[9608]: info: :---------------
hp-check[9608]: info: :
hp-check[9608]: info: :users lp video^M

hp-check[9608]: info: :
hp-check[9608]: info: :-----------
hp-check[9608]: info: :| SUMMARY |
hp-check[9608]: info: :-----------
hp-check[9608]: info: :
error: 2 errors and/or warnings.
hp-check[9608]: info: :
hp-check[9608]: info: :Please refer to the installation instructions at:
hp-check[9608]: info: :http://hplip.sourceforge.net/install/index.html

hp-check[9608]: info: :
hp-check[9608]: info: :Done.

KIndly please help me to sort out this problem.

Question information

Language:
English Edit question
Status:
Solved
For:
HPLIP Edit question
Assignee:
No assignee Edit question
Solved by:
Ani Balakrishnan
Solved:
Last query:
Last reply:
Revision history for this message
Ani Balakrishnan (anib) said :
#1

Hi,
Please try the following steps;
1.$ cd hplip-3.11.1
$ ./configure --libdir=/usr/lib64 --prefix=/usr --enable-qt4 --enable-doc-build --enable-cups-ppd-install --enable-foomatic-drv-install --enable-foomatic-ppd-install --enable-hpijs-install --enable-policykit --enable-cups-drv-install --enable-hpcups-install --enable-network-build --enable-dbus-build --enable-scan-build --enable-fax-build --enable-foomatic-rip-hplip-install
$ make
$ sudo make install
$ sudo hp-setup

Hope this help

Regards
Ani Balakrishnan

Revision history for this message
Chandan (iitdckc) said :
#2

Hi Ani,
Thanks for responding. The sudo make install sows some error. The output is:
Libraries have been installed in:
   /usr/lib/python2.6/site-packages

If you ever happen to want to link against installed libraries
in a given directory, LIBDIR, you must either use libtool, and
specify the full pathname of the library, or use the `-LLIBDIR'
flag during linking and do at least one of the following:
   - add LIBDIR to the `LD_LIBRARY_PATH' environment variable
     during execution
   - add LIBDIR to the `LD_RUN_PATH' environment variable
     during linking
   - use the `-Wl,--rpath -Wl,LIBDIR' linker flag
   - have your system administrator add LIBDIR to `/etc/ld.so.conf'

See any operating system documentation about shared libraries for
more information, such as the ld(1) and ld.so(8) manual pages.
----------------------------------------------------------------------
test -z "/usr/lib64/sane" || /bin/mkdir -p "/usr/lib64/sane"
 /bin/sh ./libtool --mode=install /usr/bin/install -c
libsane-hpaio.la'/usr/lib64/sane'
libtool: install: error: cannot install `libsane-hpaio.la' to a directory
not ending in /usr/lib/sane
make[1]: *** [install-libsane_hpaioLTLIBRARIES] Error 1
make[1]: Leaving directory `/data/home1/chandan/Downloads/hplip-3.11.1'
make: *** [install-am] Error 2

Please help.

--
Chandan kumar Choudhury
NCL, Pune
INDIA

On Tue, Mar 15, 2011 at 2:01 PM, Ani Balakrishnan <
<email address hidden>> wrote:

> Your question #148909 on HPLIP changed:
> https://answers.launchpad.net/hplip/+question/148909
>
> Status: Open => Answered
>
> Ani Balakrishnan proposed the following answer:
> Hi,
> Please try the following steps;
> 1.$ cd hplip-3.11.1
> $ ./configure --libdir=/usr/lib64 --prefix=/usr --enable-qt4
> --enable-doc-build --enable-cups-ppd-install --enable-foomatic-drv-install
> --enable-foomatic-ppd-install --enable-hpijs-install --enable-policykit
> --enable-cups-drv-install --enable-hpcups-install --enable-network-build
> --enable-dbus-build --enable-scan-build --enable-fax-build
> --enable-foomatic-rip-hplip-install
> $ make
> $ sudo make install
> $ sudo hp-setup
>
> Hope this help
>
> Regards
> Ani Balakrishnan
>
> --
> If this answers your question, please go to the following page to let us
> know that it is solved:
> https://answers.launchpad.net/hplip/+question/148909/+confirm?answer_id=0
>
> If you still need help, you can reply to this email or go to the
> following page to enter your feedback:
> https://answers.launchpad.net/hplip/+question/148909
>
> You received this question notification because you are a direct
> subscriber of the question.
>

Revision history for this message
Best Ani Balakrishnan (anib) said :
#3

Hi,

 Try running these commands,
1. cd hplip-3.11.1
2. sudo make uninstall
3. ./configure --prefix=/usr --enable-qt4 --enable-doc-build --disable-cups-ppd-install --disable-foomatic-drv-install --enable-foomatic-ppd-install --enable-hpijs-install --disable-policykit --disable-cups-drv-install --disable-hpcups-install --enable-network-build --enable-dbus-build --enable-scan-build --disable-fax-build --disable-foomatic-rip-install --enable-foomatic-rip-hplip-install
4. make
5. sudo make install
Now, add your printer.

Thanks and Regards
Ani Balakrishnan

Revision history for this message
Chandan (iitdckc) said :
#4

Thanks a lot Ani.

The suggestions worked wonderfully, thus solving the problem.
Thanks once again.

Chandan

--
Chandan kumar Choudhury
NCL, Pune
INDIA

On Mon, Mar 21, 2011 at 10:29 AM, Ani Balakrishnan <
<email address hidden>> wrote:

> Your question #148909 on HPLIP changed:
> https://answers.launchpad.net/hplip/+question/148909
>
> Status: Open => Answered
>
> Ani Balakrishnan proposed the following answer:
> Hi,
>
> Try running these commands,
> 1. cd hplip-3.11.1
> 2. sudo make uninstall
> 3. ./configure --prefix=/usr --enable-qt4 --enable-doc-build
> --disable-cups-ppd-install --disable-foomatic-drv-install
> --enable-foomatic-ppd-install --enable-hpijs-install --disable-policykit
> --disable-cups-drv-install --disable-hpcups-install --enable-network-build
> --enable-dbus-build --enable-scan-build --disable-fax-build
> --disable-foomatic-rip-install --enable-foomatic-rip-hplip-install
> 4. make
> 5. sudo make install
> Now, add your printer.
>
> Thanks and Regards
> Ani Balakrishnan
>
> --
> If this answers your question, please go to the following page to let us
> know that it is solved:
> https://answers.launchpad.net/hplip/+question/148909/+confirm?answer_id=2
>
> If you still need help, you can reply to this email or go to the
> following page to enter your feedback:
> https://answers.launchpad.net/hplip/+question/148909
>
> You received this question notification because you are a direct
> subscriber of the question.
>

Revision history for this message
Ani Balakrishnan (anib) said :
#5

Hi,

If you have any other issues, contact us again.

Please change the status to Solved.

Thanks and Regards
Ani Balakrishnan

Revision history for this message
Chandan (iitdckc) said :
#6

SOLVED, Thanks !!

Revision history for this message
Chandan (iitdckc) said :
#7

Thanks Ani Balakrishnan, that solved my question.