hplip on Red Hat Enterprise Linux WS release 4

Asked by khdetw

Has anyone gotten hplip working with RHEL WS 4 ?

I'm trying to get an HP Officejet Pro K850 to work on my Red Hat Enterprise Linux WS release 4 workstations.

I downloaded hplip-2.8.2.tar.gz from http://hpinkjet.sourceforge.net/

After the most unbelievable dependency hell I've ever seen, I finally managed to install all the dependencies (or so I thought) and compile the package, but hp-setup still fails at runtime with :

 Traceback (most recent call last):
   File "/usr/share/hplip/hpssd.py", line 56, in ?
     import subprocess, threading, tempfile
 ImportError: No module named subprocess

Question information

Language:
English Edit question
Status:
Answered
For:
HPLIP Edit question
Assignee:
No assignee Edit question
Last query:
Last reply:
Revision history for this message
Aaron Albright (albrigha-deactivatedaccount) said :
#1

Please run hp-check -t and post the output.

Thanks!

Aaron

Revision history for this message
khdetw (khdetw) said :
#2

% sudo hp-check -t

HP Linux Imaging and Printing System (ver. 2.8.2)
Dependency/Version Check Utility ver. 13.0

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

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

Saving output in log file: hp-check.log

Initializing. Please wait...
warning: Invalid ppd_dir value: None

---------------
| SYSTEM INFO |
---------------

Basic system information:
Linux wnsusybyl04 2.6.9-42.ELsmp #1 SMP Wed Jul 12 23:32:02 EDT 2006 x86_64 x86_64 x86_64 GNU/Linux

Distribution:
redhat 4

HPOJ running?
No, HPOJ is not running (OK).

Checking Python version...
OK, version 2.3.4 installed

Checking PyQt version...
OK, version 3.17 installed.

Checking SIP version...
OK, Version 4.7.4 installed

Checking for CUPS...
Status: scheduler is running
Version: 1.1.22rc1

------------------------------------
| 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-ddk - CUPS driver development kit...
warning: NOT FOUND! This is an OPTIONAL/RUNTIME ONLY dependency. Some HPLIP functionality may not function properly.

Checking for dependency: cups-devel- Common Unix Printing System development files...
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: ppdev - Parallel port support kernel module....
OK, found.

Checking for dependency: PyQt - Qt interface for Python...
OK, found.

Checking for dependency: python-devel - Python development files...
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...
OK, found.

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

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

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

[hpssd]
# Note: hpssd does not support dynamic ports
# Port 2207 is the IANA assigned port for hpssd
port=2207

[hplip]
version=2.8.2

[dirs]
home=/usr/share/hplip
run=/var/run
ppd=/usr/share/cups/model/HP
ppdbase=/usr/share/cups/model
doc=/usr/share/doc/hplip-2.8.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=no
gui-build=yes
scanner-build=yes
fax-build=yes
cups11-build=no
doc-build=yes
shadow-build=no
foomatic-drv-install=no
foomatic-ppd-install=yes
foomatic-rip-hplip-install=yes
internal-tag=2.8.2.10

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

No devices found.

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

_10_124_0_38
------------
Type: Unknown
Installed in HPLIP?: No, not using the hp: or hpfax: CUPS backend.
Device URI: ipp://Suely-Blacks-Computer.local./printers/_10_124_0_38
_10_4_0_144
-----------
Type: Unknown
Installed in HPLIP?: No, not using the hp: or hpfax: CUPS backend.
Device URI: ipp://Suely-Blacks-Computer.local./printers/_10_4_0_144
_10_4_1_25
----------
Type: Unknown
Installed in HPLIP?: No, not using the hp: or hpfax: CUPS backend.
Device URI: ipp://Suely-Blacks-Computer.local./printers/_10_4_1_25
HP_Color_LaserJet_2840
----------------------
Type: Unknown
Installed in HPLIP?: No, not using the hp: or hpfax: CUPS backend.
Device URI: ipp://Suely-Blacks-Computer.local./printers/HP_Color_LaserJet_2840
HP_Color_LaserJet_2840_fax
--------------------------
Type: Unknown
Installed in HPLIP?: No, not using the hp: or hpfax: CUPS backend.
Device URI: ipp://Suely-Blacks-Computer.local./printers/HP_Color_LaserJet_2840_fax
HP_HP_Color_LaserJet_2840_print
-------------------------------
Type: Unknown
Installed in HPLIP?: No, not using the hp: or hpfax: CUPS backend.
Device URI: ipp://Suely-Blacks-Computer.local./printers/HP_HP_Color_LaserJet_2840_print
Officejet_6200_series
---------------------
Type: Unknown
Installed in HPLIP?: No, not using the hp: or hpfax: CUPS backend.
Device URI: ipp://Suely-Blacks-Computer.local./printers/Officejet_6200_series

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

'hpaio' in '/etc/sane.d/dll.conf'...
OK, found. SANE backend 'hpaio' is properly set up.

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

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

error: 3 errors and/or warnings.

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

Revision history for this message
Aaron Albright (albrigha-deactivatedaccount) said :
#3

This was fixed in hpkio 2.8.4. Please download the latest and give that a try.

Thanks!

Aaron

Revision history for this message
Aaron Albright (albrigha-deactivatedaccount) said :
#4

This was fixed in hplip 2.8.4. Please download the latest and give that a try.

Thanks!

Aaron

Revision history for this message
khdetw (khdetw) said :
#5

A new dependency issue with 2.8.4. Will this even work on RHEL?

checking for DBUS... Requested 'dbus-1 >= 1.0.0' but version of dbus is 0.22
no
configure: error: cannot find dbus-devel support:

I have the latest version of dbus that's a vailable for RHEL WS 4
...
dbus-0.22-12.EL.9
dbus-glib-0.22-12.EL.9
dbus-devel-0.22-12.EL.9
dbus-glib-0.22-12.EL.9
dbus-x11-0.22-12.EL.9
dbus-python-0.22-12.EL.9
dbus-0.22-12.EL.9

Revision history for this message
khdetw (khdetw) said :
#6

Update: I discovered at https://answers.launchpad.net/hplip/+question/29767
that I can get around the dbus-1 dependency by --disable-fax-build in ./configure.
Thanks Aaron!

But now hp-check -t reports two missing runtime dependencies:

Checking for dependency: python-ctypes - A foreign function library for Python...
error: NOT FOUND! This is a REQUIRED/RUNTIME ONLY dependency.

Checking for dependency: python-dbus - Python bindings for dbus...
error: NOT FOUND! This is a REQUIRED/RUNTIME ONLY dependency.

I really appreciate all the help here - but Why is it so hard to get hplip working on a mainstream distribution like Red Hat Enterprise Linux WS release 4? Am I missing something that should be obvious?

Revision history for this message
khdetw (khdetw) said :
#7

Now I can't even log in to X11.
~/.xsessionerrors implicates selinux & dbus.

"Failed to open /etc/selinux/targeted/contexts/dbus_contexts"
This happens even if I disable selinux.

What a PITA

# /etc/init.d/hplip start
Starting hpiod:
Starting hpssd: File "./hpssd.py", line 131
    @dbus.service.method('com.hplip.StatusService', in_signature='s', out_signature='a(ssisisd)')
    ^
SyntaxError: invalid syntax
                                                           [FAILED]

Revision history for this message
dwelch91 (dwelch91) said :
#8

That syntax error is because of your Python version. I believe decorators
were added in Python 2.3 or 2.4. What version of Python do you have?

To eliminate this problem, remove the hp-systray desktop startup item, or
upgrade your Python version.

On Fri, May 2, 2008 at 10:53 AM, khdetw <email address hidden>
wrote:

> Question #29442 on HPLIP changed:
> https://answers.launchpad.net/hplip/+question/29442
>
> khdetw gave more information on the question:
> Now I can't even log in to X11.
> ~/.xsessionerrors implicates selinux & dbus.
>
> "Failed to open /etc/selinux/targeted/contexts/dbus_contexts"
> This happens even if I disable selinux.
>
> What a PITA
>
> # /etc/init.d/hplip start
> Starting hpiod:
> Starting hpssd: File "./hpssd.py", line 131
> @dbus.service.method('com.hplip.StatusService', in_signature='s',
> out_signature='a(ssisisd)')
> ^
> SyntaxError: invalid syntax
> [FAILED]
>
> --
> You received this question notification because you are a member of HP
> Linux Imaging and Printing, which is an answer contact for HPLIP.
>

Revision history for this message
dwelch91 (dwelch91) said :
#9

Also, there is no init.d startup script in 2.8.4 (as there are no startup
daemons). This startup script must be from a previous version of HPLIP.
(Also, hpiod no longer exists in 2.8.4. It looks like your system has some
debris from an older version).

On Fri, May 2, 2008 at 10:53 AM, khdetw <email address hidden>
wrote:

> Question #29442 on HPLIP changed:
> https://answers.launchpad.net/hplip/+question/29442
>
> khdetw gave more information on the question:
> Now I can't even log in to X11.
> ~/.xsessionerrors implicates selinux & dbus.
>
> "Failed to open /etc/selinux/targeted/contexts/dbus_contexts"
> This happens even if I disable selinux.
>
> What a PITA
>
> # /etc/init.d/hplip start
> Starting hpiod:
> Starting hpssd: File "./hpssd.py", line 131
> @dbus.service.method('com.hplip.StatusService', in_signature='s',
> out_signature='a(ssisisd)')
> ^
> SyntaxError: invalid syntax
> [FAILED]
>
> --
> You received this question notification because you are a member of HP
> Linux Imaging and Printing, which is an answer contact for HPLIP.
>

Revision history for this message
Aaron Albright (albrigha-deactivatedaccount) said :
#10

Please run hp-check -t and post the output.

Thanks!

Aaron

Can you help with this problem?

Provide an answer of your own, or ask khdetw for more information if necessary.

To post a message you must log in.