hp-align does not work with hplip-2.8.2

Asked by John Frankish

I've compiled hplip-2.8.2 (with the --disable-gui-build switch) together with cups-1.3.5 and python-2.3.

The first issue to note is that python-2.3 appears not to contain "subprocess.py" so I was obliged to copy this file from a later version of python to ../site-packages before most of the hp-* applets would work. Perhaps the hplip-2.8.2 release notes or similar should highlight this requirement?

If I try to run hp-align, I get this:

$ hp-align
...
Please load plain paper into the printer. Press <enter> to continue or 'q' to quit:
<enter>
Done.

..but nothing prints

Note also, that in the case of hp-clean, I get an error message, but the job completes OK:

$ hp-clean
...
A page will be printed.
Please load plain paper into the printer. Press <enter> to continue or 'q' to quit:
<enter>
Status Information:
 sending job 'dsl@box+286' to Test@localhost
 connecting to 'localhost', attempt 1
 cannot open connection to localhost - No such file or directory
Make sure the remote host supports the LPD protocol
and accepts connections from this host and from non-privileged (>1023) ports
error: Print command failed with exit code 256!
note: Please wait for page to complete printing before continuing.
...

The other hp-* applets appear to work OK (with the exception of hp-print which requires the gui mode to run, so why install it?) - do you have any idea what the problem might be?

Question information

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

Please run hp-check and post the output.

Thanks!

Aaron

Revision history for this message
John Frankish (j-frankish) said :
#2

Note that several of the headers/libs that hp-check reports as not found are actually present - for eg, the cups headers are in /opt/cups-1.3.5/include, libusb is in /opt/hplip-2.8.2/lib, etc, etc

hp-check[2203]: info: :
Initializing. Please wait...
scheduler is running

1.3.5

Linux box 2.4.31 #6 SMP Fri Oct 21 15:15:54 EDT 2005 i686 GNU/Linux

warning: Invalid ppd_dir value: None
hp-check[2203]: info: :
hp-check[2203]: info: :---------------
hp-check[2203]: info: :| SYSTEM INFO |
hp-check[2203]: info: :---------------
hp-check[2203]: info: :
hp-check[2203]: info: :[01mBasic system information:[0m
hp-check[2203]: info: :Linux box 2.4.31 #6 SMP Fri Oct 21 15:15:54 EDT 2005 i686 GNU/Linux
hp-check[2203]: info: :
hp-check[2203]: info: :[01mDistribution:[0m
hp-check[2203]: info: :unknown 0.0
hp-check[2203]: info: :[01m
HPOJ running?[0m
hp-check[2203]: info: :No, HPOJ is not running (OK).
hp-check[2203]: info: :
hp-check[2203]: info: :[01mChecking Python version...[0m
hp-check[2203]: info: :OK, version 2.3.6 installed
hp-check[2203]: info: :
hp-check[2203]: info: :[01mChecking PyQt version...[0m
error: NOT FOUND OR FAILED TO LOAD!
hp-check[2203]: info: :
hp-check[2203]: info: :[01mChecking SIP version...[0m
error: SIP not installed or version not found.
hp-check[2203]: info: :
hp-check[2203]: info: :[01mChecking for CUPS...[0m
hp-check[2203]: info: :Status: scheduler is running
hp-check[2203]: info: :Version: 1.3.5
hp-check[2203]: info: :
hp-check[2203]: info: :
hp-check[2203]: info: :------------------------------------
hp-check[2203]: info: :| COMPILE AND RUNTIME DEPENDENCIES |
hp-check[2203]: info: :------------------------------------
hp-check[2203]: 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[2203]: info: :
hp-check[2203]: info: :[01mChecking for dependency: cups - Common Unix Printing System...[0m
hp-check[2203]: info: :OK, found.
hp-check[2203]: info: :
hp-check[2203]: info: :[01mChecking for dependency: cups-ddk - CUPS driver development kit...[0m
warning: NOT FOUND! This is an OPTIONAL/RUNTIME ONLY dependency. Some HPLIP functionality may not function properly.
hp-check[2203]: info: :
hp-check[2203]: info: :[01mChecking for dependency: cups-devel- Common Unix Printing System development files...[0m
error: NOT FOUND! This is a REQUIRED/COMPILE TIME ONLY dependency. Please make sure that this dependency is installed before installing or running HPLIP.
hp-check[2203]: info: :
hp-check[2203]: info: :[01mChecking for dependency: gcc - GNU Project C and C++ Compiler...[0m
error: NOT FOUND! This is a REQUIRED/COMPILE TIME ONLY dependency. Please make sure that this dependency is installed before installing or running HPLIP.
hp-check[2203]: info: :
hp-check[2203]: info: :[01mChecking for dependency: GhostScript - PostScript and PDF language interpreter and previewer...[0m
hp-check[2203]: info: :OK, found.
hp-check[2203]: info: :
hp-check[2203]: info: :[01mChecking for dependency: libcrypto - OpenSSL cryptographic library...[0m
error: NOT FOUND! This is a REQUIRED dependency. Please make sure that this dependency is installed before installing or running HPLIP.
hp-check[2203]: info: :
hp-check[2203]: info: :[01mChecking for dependency: libjpeg - JPEG library...[0m
error: NOT FOUND! This is a REQUIRED dependency. Please make sure that this dependency is installed before installing or running HPLIP.
hp-check[2203]: info: :
hp-check[2203]: info: :[01mChecking for dependency: libnetsnmp-devel - SNMP networking library development files...[0m
error: NOT FOUND! This is a REQUIRED dependency. Please make sure that this dependency is installed before installing or running HPLIP.
hp-check[2203]: info: :
hp-check[2203]: info: :[01mChecking for dependency: libpthread - POSIX threads library...[0m
error: NOT FOUND! This is a REQUIRED dependency. Please make sure that this dependency is installed before installing or running HPLIP.
hp-check[2203]: info: :
hp-check[2203]: info: :[01mChecking for dependency: libtool - Library building support services...[0m
error: NOT FOUND! This is a REQUIRED/COMPILE TIME ONLY dependency. Please make sure that this dependency is installed before installing or running HPLIP.
hp-check[2203]: info: :
hp-check[2203]: info: :[01mChecking for dependency: libusb - USB library...[0m
error: NOT FOUND! This is a REQUIRED dependency. Please make sure that this dependency is installed before installing or running HPLIP.
hp-check[2203]: info: :
hp-check[2203]: info: :[01mChecking for dependency: make - GNU make utility to maintain groups of programs...[0m
error: NOT FOUND! This is a REQUIRED/COMPILE TIME ONLY dependency. Please make sure that this dependency is installed before installing or running HPLIP.
hp-check[2203]: info: :
hp-check[2203]: info: :[01mChecking for dependency: PIL - Python Imaging Library (required for commandline scanning with hp-scan)...[0m
warning: NOT FOUND! This is an OPTIONAL/RUNTIME ONLY dependency. Some HPLIP functionality may not function properly.
hp-check[2203]: info: :
hp-check[2203]: info: :[01mChecking for dependency: ppdev - Parallel port support kernel module....[0m
error: NOT FOUND! This is a REQUIRED/RUNTIME ONLY dependency. Please make sure that this dependency is installed before installing or running HPLIP.
hp-check[2203]: info: :
hp-check[2203]: info: :[01mChecking for dependency: PyQt - Qt interface for Python...[0m
error: NOT FOUND! This is a REQUIRED/RUNTIME ONLY dependency. Please make sure that this dependency is installed before installing or running HPLIP.
hp-check[2203]: info: :
hp-check[2203]: info: :[01mChecking for dependency: python-devel - Python development files...[0m
error: NOT FOUND! This is a REQUIRED/COMPILE TIME ONLY dependency. Please make sure that this dependency is installed before installing or running HPLIP.
hp-check[2203]: info: :
hp-check[2203]: info: :[01mChecking for dependency: Python 2.3 or greater - Required for fax functionality...[0m
hp-check[2203]: info: :OK, found.
hp-check[2203]: info: :
hp-check[2203]: info: :[01mChecking for dependency: Python 2.2 or greater - Python programming language...[0m
hp-check[2203]: info: :OK, found.
hp-check[2203]: info: :
hp-check[2203]: info: :[01mChecking for dependency: Reportlab - PDF library for Python...[0m
warning: NOT FOUND! This is an OPTIONAL/RUNTIME ONLY dependency. Some HPLIP functionality may not function properly.
hp-check[2203]: info: :
hp-check[2203]: info: :[01mChecking for dependency: SANE - Scanning library...[0m
hp-check[2203]: info: :OK, found.
hp-check[2203]: info: :
hp-check[2203]: info: :[01mChecking for dependency: SANE - Scanning library development files...[0m
error: NOT FOUND! This is a REQUIRED/COMPILE TIME ONLY dependency. Please make sure that this dependency is installed before installing or running HPLIP.
hp-check[2203]: info: :
hp-check[2203]: info: :[01mChecking for dependency: scanimage - Shell scanning program...[0m
hp-check[2203]: info: :OK, found.
hp-check[2203]: info: :
hp-check[2203]: info: :[01mChecking for dependency: xsane - Graphical scanner frontend for SANE...[0m
warning: NOT FOUND! This is an OPTIONAL/RUNTIME ONLY dependency. Some HPLIP functionality may not function properly.
hp-check[2203]: info: :
hp-check[2203]: info: :
hp-check[2203]: info: :----------------------
hp-check[2203]: info: :| HPLIP INSTALLATION |
hp-check[2203]: info: :----------------------
hp-check[2203]: info: :
hp-check[2203]: info: :
hp-check[2203]: info: :[01mCurrently installed HPLIP version...[0m
hp-check[2203]: info: :HPLIP 2.8.2 currently installed in '/opt/hplip-2.8.2/share/hplip'.
hp-check[2203]: info: :
hp-check[2203]: info: :[01mCurrent contents of '/etc/hp/hplip.conf' file:[0m
hp-check[2203]: info: :# 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=/opt/hplip-2.8.2/share/hplip
run=/var/run
ppd=/opt/hplip-2.8.2/share/ppd/HP
ppdbase=/opt/hplip-2.8.2/share/ppd
doc=/opt/hplip-2.8.2/share/doc/hplip-2.8.2
icon=/opt/hplip-2.8.2/share/applications
cupsbackend=/opt/cups-1.3.5/lib/cups/backend
cupsfilter=/opt/cups-1.3.5/lib/cups/filter
drv=/opt/hplip-2.8.2/share/cups/drv/hp

# Following values are determined at configure time and cannot be changed.
[configure]
network-build=yes
pp-build=yes
gui-build=no
scanner-build=yes
fax-build=yes
cups11-build=no
doc-build=no
shadow-build=no
foomatic-drv-install=no
foomatic-ppd-install=no
foomatic-rip-hplip-install=no
internal-tag=2.8.2.10

hp-check[2203]: info: :
hp-check[2203]: info: :-------------------------------
hp-check[2203]: info: :| DISCOVERED PARALLEL DEVICES |
hp-check[2203]: info: :-------------------------------
hp-check[2203]: info: :
hp-check[2203]: info: :No devices found.
error: 'ppdev' kernel module not loaded.
hp-check[2203]: info: :
hp-check[2203]: info: :--------------------------
hp-check[2203]: info: :| DISCOVERED USB DEVICES |
hp-check[2203]: info: :--------------------------
hp-check[2203]: info: :
hp-check[2203]: info: :
hp-check[2203]: info: :---------------------------------
hp-check[2203]: info: :| INSTALLED CUPS PRINTER QUEUES |
hp-check[2203]: info: :---------------------------------
hp-check[2203]: info: :
hp-check[2203]: info: :
warning: No queues found.
hp-check[2203]: info: :
hp-check[2203]: info: :----------------------
hp-check[2203]: info: :| SANE CONFIGURATION |
hp-check[2203]: info: :----------------------
hp-check[2203]: info: :
hp-check[2203]: info: :[01m'hpaio' in '/etc/sane.d/dll.conf'...[0m
hp-check[2203]: info: :OK, found. SANE backend 'hpaio' is properly set up.
hp-check[2203]: info: :
hp-check[2203]: info: :[01mChecking output of 'scanimage -L'...[0m
hp-check[2203]: info: :
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).

hp-check[2203]: info: :
hp-check[2203]: info: :---------------------
hp-check[2203]: info: :| PYTHON EXTENSIONS |
hp-check[2203]: info: :---------------------
hp-check[2203]: info: :
hp-check[2203]: info: :[01mChecking 'cupsext' CUPS extension...[0m
hp-check[2203]: info: :OK, found.
hp-check[2203]: info: :
hp-check[2203]: info: :[01mChecking 'pcardext' Photocard extension...[0m
hp-check[2203]: info: :OK, found.
hp-check[2203]: info: :
hp-check[2203]: info: :[01mChecking 'hpmudext' I/O extension...[0m
hp-check[2203]: info: :OK, found.
hp-check[2203]: info: :
hp-check[2203]: info: :[01mChecking 'scanext' SANE scanning extension...[0m
hp-check[2203]: info: :OK, found.
hp-check[2203]: info: :
hp-check[2203]: info: :
hp-check[2203]: info: :-----------------
hp-check[2203]: info: :| USB I/O SETUP |
hp-check[2203]: info: :-----------------
hp-check[2203]: info: :
hp-check[2203]: info: :
hp-check[2203]: info: :[01mChecking for permissions of USB attached printers...[0m
hp-check[2203]: info: :
hp-check[2203]: info: :-----------
hp-check[2203]: info: :| SUMMARY |
hp-check[2203]: info: :-----------
hp-check[2203]: info: :
error: 19 errors and/or warnings.
hp-check[2203]: info: :
hp-check[2203]: info: :Please refer to the installation instructions at:
hp-check[2203]: info: :http://hplip.sourceforge.net/install/index.html

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

What printer are you using? What linux distro? How did you install hplip (rpm, deb, or source)?

Thanks!

Aaron

Revision history for this message
John Frankish (j-frankish) said :
#4

What printer are you using? = OfficeJet G85, OfficeJet K80

What linux distro? = dsl-4.2.5 (2.4.31)

How did you install hplip (rpm, deb, or source)? = compiled from source with:

./configure --prefix=/opt/hplip-2.8.2 --disable-doc-build --disable-gui-build --with-cupsbackenddir=/opt/cups-1.3.5/lib/cups/backend --with-cupsfilterdir=/opt/cups-1.3.5/lib/cups/filter --with-icondir=/opt/hplip-2.8.2/share/applications --disable-foomatic-drv-install --disable-foomatic-rip-hplip-install

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

John,

We can reproduce this and we are working on a solution. This should be fixed with the next release, however I can't promise that right now because we still are working on what exactly the problem is.

Thanks for the report.

Aaron

Revision history for this message
John Frankish (j-frankish) said :
#6

Ah - so I'm not going crazy. OK, thanks.

Revision history for this message
sam.watkins (swatkins) said :
#7

I have a similar problem, with a HP D2560 printer, and the hplip installed with ubuntu intrepid.
The printer works fine for printing, but the head alignment function does not work, if I run it from the gui or with hp-align.
It starts sending stuff to the printer, but no page prints, just the light on the printer flashes. Then it asks me about the arrows on the printout.

I'm not compiling hplip myself, just using the distributed packages. thanks.