Cannot scan under HPLIP 3.12.6 and HP Officejet Pro 8500A Premium

Asked by mikeys

Cannot scan under HPLIP 3.12.6 and HP Officejet Pro 8500A Premium. When I hit the "scan" option under HPLIP 3.12.6, get error message "Failed to obtain value of option source: invalid argument." Unable to scan at all. Tried the hp-check command, all checks came out OK,but cannot scan. Also, tried to upgrade, but did not work. Tried to uninstall,but did not work. See below:

n@n-desktop:~$ sudo hp-upgrade
[sudo] password for n:
Traceback (most recent call last):
  File "/usr/bin/hp-upgrade", line 116, in <module>
    mod.lockInstance('',True)
TypeError: lockInstance() takes at most 2 arguments (3 given)
n@n-desktop:~$ hp-upgrade
Traceback (most recent call last):
  File "/usr/bin/hp-upgrade", line 116, in <module>
    mod.lockInstance('',True)
TypeError: lockInstance() takes at most 2 arguments (3 given)
n@n-desktop:~$ hp-systray

HP Linux Imaging and Printing System (ver. 3.12.6)
System Tray Status Service ver. 2.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: Unable to lock /home/n/.hplip/hp-systray.lock. Is hp-systray already running?
n@n-desktop:~$ sudo hp-systray
warning: hp-systray should not be run as root/superuser.

HP Linux Imaging and Printing System (ver. 3.12.6)
System Tray Status Service ver. 2.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: hp-systray cannot be run as root. Exiting.
n@n-desktop:~$ hp-systray

HP Linux Imaging and Printing System (ver. 3.12.6)
System Tray Status Service ver. 2.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: Unable to lock /home/n/.hplip/hp-systray.lock. Is hp-systray already running?
n@n-desktop:~$ hp-diagnose-queues
hp-diagnose-queues: command not found
n@n-desktop:~$ hp-diagnose
hp-diagnose: command not found
n@n-desktop:~$ hp-check -r

HP Linux Imaging and Printing System (ver. 3.12.6)
Dependency/Version Check Utility ver. 14.3

Copyright (c) 2011-14 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 n-desktop 3.2.0-29-generic-pae #46-Ubuntu SMP Fri Jul 27 17:25:43 UTC 2012 i686 i686 i386 GNU/Linux

Distribution:
ubuntu 12.04

Checking Python version...
OK, version 2.7.3 installed

Checking PyQt 4.x version...
OK, version 4.9.1 installed.

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

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

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

Checking for dependency: CUPS - Common Unix Printing System...
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: PolicyKit - Administrative policy framework...
OK, found.

Checking for dependency: PyQt 4 DBus - DBus Support for PyQt4...
OK, found.

Checking for dependency: Python DBus - Python bindings for DBus...
OK, found.

Checking for dependency: Python libnotify - Python bindings for the libnotify Desktop notifications...
OK, found.

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: Reportlab - PDF library for Python...
OK, found.

Checking for dependency: SANE - Scanning library...
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 3.12.6 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.12.6

[dirs]
home=/usr/share/hplip
run=/var/run
ppd=/usr/share/ppd/hplip/HP
ppdbase=/usr/share/ppd/hplip
doc=/usr/share/doc/hplip-3.12.6
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
libusb01-build=no
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.12.6
restricted-build=no
ui-toolkit=qt4
qt3=no
qt4=yes
policy-kit=no
hpijs-only-build=no
lite-build=no
udev-acl-rules=yes
udev_sysfs_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:
[upgrade]
notify_upgrade = true
last_upgraded_time = 1345123090
pending_upgrade_time = 0
latest_available_version = 3.12.6

[settings]
systray_visible = 0
systray_messages = 0

[last_used]
device_uri = "hp:/usb/Officejet_Pro_8500_A910?serial=CN154CK0JH"
printer_name =
working_dir = .

[commands]
scan = /usr/bin/xsane -V %SANE_URI%

[refresh]
rate = 30
enable = false
type = 1

[polling]
enable = false
interval = 5
device_list =

[fax]
voice_phone =
email_address =

[installation]
date_time = 08/16/2012 13:21:55
version = 3.12.6

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

  Device URI Model
  -------------------------------- --------------------------
  hp:/usb/Officejet_Pro_8500_A910? HP Officejet Pro 8500 A910
  serial=CN154CK0JH

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

Officejet_Pro_8500_A910
-----------------------
Type: Printer
Device URI: hp:/usb/Officejet_Pro_8500_A910?serial=CN154CK0JH
PPD: /etc/cups/ppd/Officejet_Pro_8500_A910.ppd
PPD Description: HP Officejet Pro 8500 a910, hpcups 3.12.6
Printer status: printer Officejet_Pro_8500_A910 is idle. enabled since Thu 16 Aug 2012 05:46:03 AM PDT
Communication status: Good

Officejet_Pro_8500_A910_fax
---------------------------
Type: Fax
Device URI: hpfax:/usb/Officejet_Pro_8500_A910?serial=CN154CK0JH
PPD: /etc/cups/ppd/Officejet_Pro_8500_A910_fax.ppd
PPD Description: HP Fax hpcups
Printer status: printer Officejet_Pro_8500_A910_fax is idle. enabled since Tue 14 Aug 2012 02:06:19 AM PDT
Communication status: Good

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

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

Checking output of 'scanimage -L'...
device `hpaio:/usb/Officejet_Pro_8500_A910?serial=CN154CK0JH' is a Hewlett-Packard Officejet_Pro_8500_A910 all-in-one

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

HP Device 0x5312 at 001:004:
    Device URI: hp:/usb/Officejet_Pro_8500_A910?serial=CN154CK0JH
    Device node: /dev/bus/usb/001/004
    Mode: 0664
getfacl: Removing leading '/' from absolute path names
# file: dev/bus/usb/001/004
# owner: root
# group: lp
user::rw-
user:n:rw-
group::rw-
mask::rw-
other::r--

---------------
| USER GROUPS |
---------------

n adm lp cdrom sudo dip plugdev lpadmin sambashare

User member of group 'lp'. Enables print/ scan/ fax.
User member of group 'lpadmin'.

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

No errors or warnings.

Done.
n@n-desktop:~$

Question information

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

n@n-desktop:~$ sudo hp-uninstall
[sudo] password for n:

HP Linux Imaging and Printing System (ver. 3.12.6)
HPLIP Uninstaller ver. 1.0

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

Uninstaller log saved in: /var/log/hp/hplip-uninstall.log

Traceback (most recent call last):
  File "/usr/bin/hp-uninstall", line 131, in <module>
    core.uninstall(mode)
AttributeError: 'CoreInstall' object has no attribute 'uninstall'

Revision history for this message
Amarnath Chitumalla (amarnath-chitumalla) said :
#2

Hi Mikeys,

Can you please re-install hplip-3.12.6 from following site.
http://hplipopensource.com/hplip-web/install/install/index.html

Thanks & Regards,
Amarnath

Revision history for this message
mikeys (miketwo) said :
#3

Downloaded and installed hplip from the link you suggested. However, scanning is not available. Get error message when try to test scan function: "Failed to open device 'hpaio:/usb/Officejet_Pro_8500_A910?Serial=CN154CK0JH'; Error during device I/O."
Please help.

Revision history for this message
mikeys (miketwo) said :
#4

n@n-desktop:~$ hp-check --both

HP Linux Imaging and Printing System (ver. 3.12.6)
Dependency/Version Check Utility ver. 15

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

Check types:
a. EXTERNALDEP - External Dependencies
b. GENERALDEP - General Dependencies (required both at compile and run time)
c. COMPILEDEP - Compile time Dependencies
d. [All are run-time checks]
PYEXT SCANCONF QUEUES PERMISSION

Status Types:
    OK
    MISSING - Missing Dependency or Permission or Plug-in
    INCOMPAT - Incompatible dependency-version or Plugin-version

Saving output in log file: /home/n/hp-check.log

Initializing. Please wait...

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

 Kernel: 3.2.0-29-generic-pae #46-Ubuntu SMP Fri Jul 27 17:25:43 UTC 2012 GNU/Linux
 Host: n-desktop
 Proc: 3.2.0-29-generic-pae #46-Ubuntu SMP Fri Jul 27 17:25:43 UTC 2012 GNU/Linux
 Distribution: ubuntu 12.04

-----------------------
| HPLIP CONFIGURATION |
-----------------------

HPLIP-Version: HPLIP 3.12.6
HPLIP-Home: /usr/share/hplip
HPLIP-Installation: Auto installation is supported for ubuntu distro 12.04 version

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

[hplip]
version=3.12.6

[dirs]
home=/usr/share/hplip
run=/var/run
ppd=/usr/share/ppd/HP
ppdbase=/usr/share/ppd
doc=/usr/share/doc/hplip-3.12.6
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
libusb01-build=no
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.12.6
restricted-build=no
ui-toolkit=qt4
qt3=no
qt4=yes
policy-kit=no
hpijs-only-build=no
lite-build=no
udev-acl-rules=yes
udev_sysfs_rules=no
hpcups-only-build=no
hpijs-only-build=no

Current contents of '/var/lib/hp/hplip.state' file:
Plugins are not installed. Could not access file: No such file or directory

Current contents of '~/.hplip/hplip.conf' file:
[upgrade]
notify_upgrade = true
last_upgraded_time = 1345198442
pending_upgrade_time = 0
latest_available_version = 3.12.6

[settings]
systray_visible = 0
systray_messages = 0

[last_used]
device_uri = "hp:/usb/Officejet_Pro_8500_A910?serial=CN154CK0JH"
printer_name =
working_dir = .

[commands]
scan = /usr/bin/xsane -V %SANE_URI%

[refresh]
rate = 30
enable = false
type = 1

[polling]
enable = false
interval = 5
device_list =

[fax]
voice_phone =
email_address =

[installation]
date_time = 08/17/2012 03:23:27
version = 3.12.6

 <Package-name> <Package-Desc> <Required/Optional> <Min-Version> <Installed-Version> <Status> <Comment>

--------------------------
| External Dependencies |
--------------------------

 gs Ghostscript REQUIRED 7.05 9.05 OK -
 network Network-wget OPTIONAL - 1.13.4 OK -
 dbus DBus REQUIRED - 1.4.18 OK -
 scanimage Shell-Scanning OPTIONAL 1.0 1.0.22 OK -
 policykit Admin-Policy-framework OPTIONAL - 0.104 OK -
 xsane SANE-GUI OPTIONAL 0.9 0.998 OK -
 cups CUPS REQUIRED 1.1 1.5.3 OK 'CUPS Scheduler is running'

-------------------------
| General Dependencies |
-------------------------

 reportlab Python-PDF-Lib OPTIONAL 2.0 2.5 OK -
 libcrypto OpenSSL-Crypto-Lib REQUIRED - 1.0.1 OK -
 pil Python-Image-Lib OPTIONAL - 1.1.7 OK -
 pyqt4-dbus PyQt4-DBUS REQUIRED 4.0 4.9.1 OK -
 libjpeg JPEG-Lib REQUIRED - - OK -
 libpthread POSIX-Threads-Lib REQUIRED - 2.15 OK -
 python-dbus Python-DBUS REQUIRED 0.80.0 1.0.0 OK -
 python-devel Python-SDK REQUIRED 2.2 2.7.3 OK -
 pyqt4 Python-Qt4 REQUIRED 4.0 4.9.1 OK -
 cups-devel CUPS-SDK REQUIRED - 1.5.3 OK -
 sane-devel SANE-SDK REQUIRED - 1.0.22 OK -
 libusb USB-Lib REQUIRED - 1.0 OK -
 sane Scan-Lib REQUIRED - 1.0.22 OK -
 cups-image CUPS-Image-Lib REQUIRED - 1.5.3 OK -
 libnetsnmp-devel SNMP-Networking-SDK REQUIRED 5.0.9 5.4.3 OK -
 python-xml Python-XML-Lib REQUIRED - 2.0.1 OK -
 python-notify Desktop-notifications OPTIONAL - - OK -

------------------------------
| Compile Time Dependencies |
------------------------------

 gcc gcc-Compiler REQUIRED - 4.6.3 OK -
 libtool Build-tools REQUIRED - 2.4.2 OK -
 make GNU-Build-tools REQUIRED 3.0 3.81 OK -

----------------------
| Python Extentions |
----------------------

 cupsext CUPS-Extension REQUIRED - 3.12.6 OK -
 pcardext PhotoCard-Extension REQUIRED - 3.12.6 OK -
 hpmudext IO-Extension REQUIRED - 3.12.6 OK -

-----------------------
| Scan Configuration |
-----------------------

 hpaio HPLIP-SANE-Backend REQUIRED - 3.12.6 OK 'hpaio found in /etc/sane.d/dll.conf'
 scanext Scan-SANE-Extension REQUIRED - 3.12.6 OK -

------------------------------
| DISCOVERED SCANNER DEVICES |
------------------------------

device `hpaio:/usb/Officejet_Pro_8500_A910?serial=CN154CK0JH' is a Hewlett-Packard Officejet_Pro_8500_A910 all-in-one
device `hpaio:/usb/Officejet_Pro_8500_A910?serial=CN154CK0JH' is a Hewlett-Packard Officejet_Pro_8500_A910 all-in-one

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

  Device URI Model
  -------------------------------- --------------------------
  hp:/usb/Officejet_Pro_8500_A910? HP Officejet Pro 8500 A910
  serial=CN154CK0JH

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

Officejet_Pro_8500_A910
-----------------------
Type: Printer
Device URI: hp:/usb/Officejet_Pro_8500_A910?serial=CN154CK0JH
PPD: /etc/cups/ppd/Officejet_Pro_8500_A910.ppd
PPD Description: HP Officejet Pro 8500 a910, hpcups 3.12.6
Printer status: printer Officejet_Pro_8500_A910 is idle. enabled since Fri 17 Aug 2012 03:16:04 AM PDT
Communication status: Good

Officejet_Pro_8500_A910_fax
---------------------------
Type: Fax
Device URI: hpfax:/usb/Officejet_Pro_8500_A910?serial=CN154CK0JH
PPD: /etc/cups/ppd/Officejet_Pro_8500_A910_fax.ppd
PPD Description: HP Fax4 hpcups
Printer status: printer Officejet_Pro_8500_A910_fax is idle. enabled since Fri 17 Aug 2012 03:16:04 AM PDT
Communication status: Good

--------------
| PERMISSION |
--------------

groups user-groups Required - - OK n adm lp cdrom sudo dip plugdev lpadmin sambashare

USB Officejet_Pro_8500_A910 Required - - OK Node:'/dev/bus/usb/001/004' Perm:' root lp rw- rw- rw- rw- r--'

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

Missing Required Dependencies
-----------------------------
None

Missing Optional Dependencies
-----------------------------
None

Total Errors: 0
Total Warnings: 0

No errors or warnings.

Done.

Revision history for this message
mikeys (miketwo) said :
#5

Scan working after upgrading sane. HPLIP devs should look into this to make sure HPLIP install works OK for scan too.