[Pkg-hpijs-devel] Bug#535474: scanning with hplip and hp-toolbox require user to be member of group "scanner"

Wim Herremans whpgf at scarlet.be
Thu Jul 2 14:01:20 UTC 2009


Package: hplip
Version: 2.8.6.b-4
Severity: important

I have installed an HP all-in-one (PSC2110) on Debian Lenny.

I installed a printer queue using the CUPS web interface.

Printing works alright, but the following problems occur:

1. Scanning does not work: xsane reports "No devices available".

2. hp-toolbox always reports: "Device communication error".

After adding my user account to group "scanner", both problems
do not occur any more.

I think you cannot expect an unexperienced Linux user to find
this work around.

This bug report resembles #522848, but it is for another version
of hplip and the solution is probably different too. In this version
it is not necessary for the user to member of group "lp", but it
is necessary to be member of group "scanner".

For completeness, I include here the output of my "id -a", after
having added my account to group "scanner":

uid=1000(wim) gid=1000(wim) groups=20(dialout),24(cdrom),25(floppy),
29(audio),44(video),46(plugdev),103(scanner),110(netdev),115(powerdev),
1000(wim)

-- Package-specific info:
warning: Invalid ppd_dir value: None
error: SIP not installed or version not found.
error: Version: (Not available. CUPS may not be installed or not running.)
warning: NOT FOUND! This is an OPTIONAL/RUNTIME ONLY dependency. Some HPLIP functionality may not function properly.

HP Linux Imaging and Printing System (ver. 2.8.6b)
Dependency/Version Check Utility ver. 14.0

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

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

Basic system information:
Linux debian 2.6.26-2-686 #1 SMP Sun Jun 21 04:57:38 UTC 2009 i686 GNU/Linux

Distribution:
debian 5.0.2

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

Checking Python version...
OK, version 2.5.2 installed

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

Checking SIP version...

Checking for CUPS...
Status: scheduler is running

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


------------------------
| RUNTIME DEPENDENCIES |
------------------------


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

Checking for dependency: cups-ddk - CUPS driver development kit...
OK, found.

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

Checking for dependency: PIL - Python Imaging Library (required for commandline scanning with hp-scan)...
OK, found.

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-ctypes - A foreign function library for Python...
OK, found.

Checking for dependency: python-dbus - Python bindings for dbus...
OK, found.

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

Checking for dependency: Reportlab - PDF library for Python...
OK, found.

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

Checking for dependency: scanimage - Shell scanning program...

Checking for dependency: xsane - Graphical scanner frontend for SANE...
OK, found.


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


Currently installed HPLIP version...
HPLIP 2.8.6b 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=2.8.6b

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

# 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
foomatic-drv-install=yes
foomatic-ppd-install=no
foomatic-rip-hplip-install=no
internal-tag=2.8.6.20b


-------------------------------
| DISCOVERED PARALLEL DEVICES |
-------------------------------

No devices found.

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

No devices found.

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


PSC_2100_Series
---------------
Type: Printer
Installed in HPLIP?: Yes, using the hp: CUPS backend.
Device URI: hp:/usb/PSC_2100_Series?serial=MY36HF41SC0F
PPD:error: Unable to communicate with device (code=12): hp:/usb/PSC_2100_Series?serial=MY36HF41SC0F
error: Device not found
error: Not found. SANE backend 'hpaio' NOT properly setup (needs to be added to /etc/sane.d/dll.conf).
error: scanimage not found.
error: 5 errors and/or warnings.
 /etc/cups/ppd/PSC_2100_Series.ppd
PPD Description: HP PSC 2100 series Foomatic/hpijs, hpijs 2.8.6b
Printer status: printer PSC_2100_Series is idle.  enabled since Fri 12 Jun 2009 17:42:10 CEST


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

'hpaio' in '/etc/sane.d/dll.conf'...

Checking output of 'scanimage -L'...

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


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


Done.

-- System Information:
Debian Release: 5.0.2
  APT prefers stable
  APT policy: (500, 'stable')
Architecture: i386 (i686)

Kernel: Linux 2.6.26-2-686 (SMP w/2 CPU cores)
Locale: LANG=en_GB.UTF-8, LC_CTYPE=en_GB.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/bash

Versions of packages hplip depends on:
ii  adduser                 3.110            add and remove users and groups
ii  coreutils               6.10-6           The GNU core utilities
ii  cups                    1.3.8-1+lenny6   Common UNIX Printing System(tm) - 
ii  hplip-data              2.8.6.b-4        HP Linux Printing and Imaging - da
ii  libc6                   2.7-18           GNU C Library: Shared libraries
ii  libcups2                1.3.8-1+lenny6   Common UNIX Printing System(tm) - 
ii  libdbus-1-3             1.2.1-5          simple interprocess messaging syst
ii  libsane                 1.0.19-23        API library for scanners
ii  libsnmp15               5.4.1~dfsg-12    SNMP (Simple Network Management Pr
ii  libssl0.9.8             0.9.8g-15+lenny1 SSL shared libraries
ii  libusb-0.1-4            2:0.1.12-13      userspace USB programming library
ii  lsb-base                3.2-20           Linux Standard Base 3.2 init scrip
ii  python                  2.5.2-3          An interactive high-level object-o
ii  python-dbus             0.82.4-2         simple interprocess messaging syst
ii  python-imaging          1.1.6-3          Python Imaging Library
ii  python-support          0.8.4            automated rebuilding support for P

Versions of packages hplip recommends:
ii  cups-client               1.3.8-1+lenny6 Common UNIX Printing System(tm) - 
ii  hpijs                     2.8.6.b-4      HP Linux Printing and Imaging - gs
ii  hplip-gui                 2.8.6.b-4      HP Linux Printing and Imaging - GU

Versions of packages hplip suggests:
ii  hplip-doc                2.8.6.b-4       HP Linux Printing and Imaging - do
pn  kdeprint | gtklp | xpp   <none>          (no description available)
ii  openprinting-ppds        20080211-2+nmu1 OpenPrinting printer support - Pos

-- no debconf information





More information about the Pkg-hpijs-devel mailing list