Scanning with HP LaserJet 33000 in Ubuntu fails

Bug #660738 reported by jocsch
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
HPLIP
In Progress
Medium
Sarbeswar Meher

Bug Description

Once couple of years ago my scanner in the laserjet 3000 mfp worked in ubuntu.
At some point in time it stopped working and since then I am hoping with each update that the problems are resolved.
So I did with the update to ubuntu 10.10. But still the scanner is not working so I finally decided to report a bug. Printing is fine but if I use e.g. hp-scan I get the following output:

HP Linux Imaging and Printing System (ver. 3.10.6)
Scan Utility ver. 2.2

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.

Using device: hpaio:/usb/HP_LaserJet_3300_3310_3320?serial=00SGL31C0JVW

warning: No destinations specified. Adding 'file' destination by default.
warning: File destination eHP Linux Imaging and Printing System (ver. 3.10.6)
Scan Utility ver. 2.2

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.

Using device: hpaio:/usb/HP_LaserJet_3300_3310_3320?serial=00SGL31C0JVW

warning: No destinations specified. Adding 'file' destination by default.
warning: File destination enabled with no output file specified.
Setting output format to PNG for greyscale mode.
warning: Defaulting to '/home/markus/hpscan001.png'.
error: Unable to locate device hpaio:/usb/HP_LaserJet_3300_3310_3320?serial=00SGL31C0JVW using SANE backend hpaio:. Please check HPLIP installation.
nabled with no output file specified.
Setting output format to PNG for greyscale mode.
warning: Defaulting to '/home/markus/hpscan001.png'.
error: Unable to locate device hpaio:/usb/HP_LaserJet_3300_3310_3320?serial=00SGL31C0JVW using SANE backend hpaio:. Please check HPLIP installation.

The output of hp-check is
---------------
| SYSTEM INFO |
---------------

Basic system information:
Linux big-one 2.6.35-22-generic #34-Ubuntu SMP Sun Oct 10 09:24:00 UTC 2010 i686 GNU/Linux

Distribution:
ubuntu 10.10

Checking Python version...
OK, version 2.6.6 installed

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

Checking for CUPS...
Status: scheduler is running
warning: Version: (cups-config) Not available. Unable to determine installed version of CUPS.)
error_log is set to level: warn

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

------------------------------------
| 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...
error: NOT FOUND! This is a REQUIRED/COMPILE TIME ONLY dependency. Please make sure that this dependency is installed before installing or running HPLIP.

Checking for dependency: CUPS image - CUPS image development files...
error: NOT FOUND! This is a REQUIRED/COMPILE TIME ONLY dependency. Please make sure that this dependency is installed before installing or running HPLIP.

Checking for dependency: DBus - Message bus system...
error: NOT FOUND! This is a REQUIRED dependency. Please make sure that this dependency is installed before installing or running HPLIP.

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...
error: NOT FOUND! This is a REQUIRED dependency. Please make sure that this dependency is installed before installing or running HPLIP.

Checking for dependency: libjpeg - JPEG library...
error: NOT FOUND! This is a REQUIRED dependency. Please make sure that this dependency is installed before installing or running HPLIP.

Checking for dependency: libnetsnmp-devel - SNMP networking library development files...
error: NOT FOUND! This is a REQUIRED dependency. Please make sure that this dependency is installed before installing or running HPLIP.

Checking for dependency: libpthread - POSIX threads library...
OK, found.

Checking for dependency: libtool - Library building support services...
error: NOT FOUND! This is a REQUIRED/COMPILE TIME ONLY dependency. Please make sure that this dependency is installed before installing or running HPLIP.

Checking for dependency: libusb - USB library...
error: NOT FOUND! This is a REQUIRED dependency. Please make sure that this dependency is installed before installing or running HPLIP.

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)...
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 devel - Python development files...
error: NOT FOUND! This is a REQUIRED/COMPILE TIME ONLY dependency. Please make sure that this dependency is installed before installing or running HPLIP.

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: Python 2.2 or greater - Python programming language...
OK, found.

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

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

Checking for dependency: SANE - Scanning library development files...
error: NOT FOUND! This is a REQUIRED/COMPILE TIME ONLY dependency. Please make sure that this dependency is installed before installing or running HPLIP.

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.10.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.10.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-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
hpijs-install=yes
foomatic-drv-install=yes
foomatic-ppd-install=yes
foomatic-rip-hplip-install=no
hpcups-install=yes
cups-drv-install=yes
cups-ppd-install=no
internal-tag=3.10.6.15
restricted-build=no
ui-toolkit=qt4
qt3=no
qt4=yes
policy-kit=yes
hpijs-only-build=no
lite-build=no
udev-acl-rules=yes
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:
[last_used]
printer_name =
working_dir = .
device_uri = hpaio:/usb/HP_LaserJet_3300_3310_3320?serial=00SGL31C0JVW

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

[installation]
version = 3.10.6.15
date_time = 10/14/2010 21:02:49

[settings]
systray_messages = 0
systray_visible = 2

[fax]
email_address =
voice_phone =

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

[polling]
enable = false
device_list =
interval = 5

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

  Device URI Model
  ------------------------------------------------------ ------------------------------------------
  hp:/usb/HP_LaserJet_3300_3310_3320?serial=00XXXXXXXXXX HP LaserJet 3300/3310/3320

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

HP-LaserJet-3300-3310-3320
--------------------------
Type: Unknown
Device URI: usb://HP/LaserJet%203300/3310/3320
PPD: /etc/cups/ppd/HP-LaserJet-3300-3310-3320.ppd
PPD Description: HP LaserJet 3300 MFP Foomatic/gutenprint-ijs-simplified.5.2
Printer Printer is now online.erJet-3300-3310-3320 is idle. enabled since Thu 14 Oct 2010 08:58:41 PM CEST
warning: Printer is not HPLIP installed. Printers must use the hp: or hpfax: CUPS backend to function in HPLIP.

HP-LaserJet-3300-3310-3320-2
----------------------------
Type: Printer
Device URI: hp:/usb/HP_LaserJet_3300_3310_3320?serial=00SGL31C0JVW
PPD: /etc/cups/ppd/HP-LaserJet-3300-3310-3320-2.ppd
PPD Description: HP LaserJet 3300 MFP - CUPS+Gutenprint v5.2.6
Printer status: printer HP-LaserJet-3300-3310-3320-2 is idle. enabled since Thu 14 Oct 2010 08:56:14 PM CEST
error: Unable to communicate with device (code=12): hp:/usb/HP_LaserJet_3300_3310_3320?serial=00SGL31C0JVW
error: Device not found
error: Communication status: Failed

HP-LaserJet-3300-3310-3320-2-Fax
--------------------------------
Type: Fax
Device URI: hpfax:/usb/HP_LaserJet_3300_3310_3320?serial=00SGL31C0JVW
PPD: /etc/cups/ppd/HP-LaserJet-3300-3310-3320-2-Fax.ppd
PPD Description: HP Fax hpcups
Printer Unplugged or turned offrJet-3300-3310-3320-2-Fax disabled since Thu 14 Oct 2010 08:54:10 PM CEST -
error: Unable to communicate with device (code=12): hpfax:/usb/HP_LaserJet_3300_3310_3320?serial=00SGL31C0JVW
error: Device not found
error: Communication status: Failed

HP_LaserJet_3300_3310_3
-----------------------
Type: Printer
Device URI: hp:/usb/HP_LaserJet_3300_3310_3320?serial=00SGL31C0JVW
PPD: /etc/cups/ppd/HP_LaserJet_3300_3310_3.ppd
PPD Description: HP LaserJet 3300 Series Postscript (recommended)
Printer status: printer HP_LaserJet_3300_3310_3 is idle. enabled since Thu 14 Oct 2010 08:56:14 PM CEST
error: Unable to communicate with device (code=12): hp:/usb/HP_LaserJet_3300_3310_3320?serial=00SGL31C0JVW
error: Device not found
error: Communication status: Failed

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

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

Checking output of 'scanimage -L'...
device `hpaio:/usb/HP_LaserJet_3300_3310_3320?serial=00XXXXXXXXXX' is a Hewlett-Packard HP_LaserJet_3300_3310_3320 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 0x817 at 002:007:
    Device URI: hp:/usb/HP_LaserJet_3300_3310_3320?serial=00XXXXXXXXXX
    Device node: /dev/bus/usb/002/007
    Mode: 0664
getfacl: Removing leading '/' from absolute path names
# file: dev/bus/usb/002/007
# owner: root
# group: lp
user::rw-
user:markus:rw-
group::rw-
mask::rw-
other::r--

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

markus adm lp dialout cdrom audio plugdev lpadmin admin sambashare family

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

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

error: 15 errors and/or warnings.

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

Done.

Revision history for this message
Naga Samrat Chowdary, Narla (samrat-hplip) wrote :

can you please reinstall the following packages by running the following command.
sudo apt-get install xsane sane-utils libsane

Please launch "xsane" from terminal or device manager to scan.

Thanks,
Naga Samrat Chowdary, Narla

Revision history for this message
jocsch (markus-joschko) wrote :

sudo apt-get install xsane sane-utils libsane
did nothing as everything is already at the latest versions.

I did a sudo apt-get --purge remove xsane sane-utils and installed them again.
I did not the same for libsane as it had far to many dependencies to be simply removed.

I then started xsane and tried to scan. The scanner started and seemed to scan but before an image is retrieved and displayed by xsane I get a dialog stating: "Error during read: Error during device I/O."

hp-scan output has not changed.

Revision history for this message
jocsch (markus-joschko) wrote :

The bug is now close to two years old, the situation has not change. If I google I find couple of people with the same problem description but never a solution. I would really be glad to stop using windows for scanning purposes.

Revision history for this message
Sarbeswar Meher (sarbeswar-meher) wrote :

Please download the lastest hplip-3.11.5 from http://hplipopensource.com/hplip-web/index.html and install it using command "sh hplip-3.11.5.run" in command-line. While installing it shouldn't display any error or warning related to missing dependency. It is shows, you need to install the missing things (however the package itself downloads and installs automatically). Once installation is complete, run "hp-check -t". The output of this shouldn't contain any error related to missing dependency.

Remove the existing print queues. Add new print queues by running "hp-setup". Once setup is complete, run "xsane" in commandline. Now your scanning should work fine.

Let us know if you have any issues.

Thanks,
Sarbeswar Meher

Revision history for this message
jocsch (markus-joschko) wrote :
Download full text (8.1 KiB)

Thanks, Sarbeswar but I still don't have luck with scanning.
I installed the most recent driver from the homepage and removed all print queues.
However even without setting up the printer with hp-setup I can still scan and I still get the I/O device error.
The hp-check -t output shows an hpaio/ device that is used by the sane backend.
As it seems that every new queue uses hp:/ maybe this is a legacy driver? But how do I get rid of the settings in the sane backend?

hp-check -t
HP Linux Imaging and Printing System (ver. 3.11.5)
Dependency/Version Check Utility ver. 14.3

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.

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 big-one 2.6.38-10-generic-pae #46-Ubuntu SMP Tue Jun 28 16:54:49 UTC 2011 i686 i686 i386 GNU/Linux

Distribution:
ubuntu 11.04

Checking Python version...
OK, version 2.7.1 installed

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

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

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

------------------------------------
| 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 devel- Common Unix Printing System development files...
OK, found.

Checking for dependency: CUPS image - CUPS image development files...
OK, found.

Checking for dependency: DBus - Message bus system...
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,...

Read more...

Revision history for this message
Sarbeswar Meher (sarbeswar-meher) wrote :

Please post the output of "hp-scan -g" here.

Revision history for this message
jocsch (markus-joschko) wrote :
Download full text (9.3 KiB)

hp-scan -g

HP Linux Imaging and Printing System (ver. 3.11.5)
Scan Utility ver. 2.2

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.

hp-scan[3206]: debug: getDeviceUri(None, None, ['hpaio'], {'scan-type': (<built-in function gt>, 0)}, , True)
hp-scan[3206]: debug: Mode=2
hp-scan[3206]: debug: hp:/usb/HP_LaserJet_3300_3310_3320?serial=00XXXXXXXXXX: back_end:hp is_hp:True bus:usb model:HP_LaserJet_3300_3310_3320 serial:00XXXXXXXXXX dev_file: host: zc: port:1
hp-scan[3206]: debug: Cache miss: hp_laserjet_3300_3310_3320
hp-scan[3206]: debug: Reading file: /usr/share/hplip/data/models/models.dat
hp-scan[3206]: debug: Searching for section [hp_laserjet_3300_3310_3320] in file /usr/share/hplip/data/models/models.dat
hp-scan[3206]: debug: Found section [hp_laserjet_3300_3310_3320] in file /usr/share/hplip/data/models/models.dat
hp-scan[3206]: debug: {'hpaio:/usb/HP_LaserJet_3300_3310_3320?serial=00XXXXXXXXXX': ['HP-LaserJet-3300-3310-3320']}
Using device: hpaio:/usb/HP_LaserJet_3300_3310_3320?serial=00XXXXXXXXXX

warning: No destinations specified. Adding 'file' destination by default.
warning: File destination enabled with no output file specified.
Setting output format to PNG for greyscale mode.
warning: Defaulting to '/home/markus/hpscan001.png'.
Using device hpaio:/usb/HP_LaserJet_3300_3310_3320?serial=00XXXXXXXXXX
Opening connection to device...

Resolution: 300dpi
Mode: gray
Compression: JPEG
Scan area (mm):
  Top left (x,y): (0.000000mm, 0.000000mm)
  Bottom right (x,y): (228.599991mm, 381.000000mm)
  Width: 228.599991mm
  Height: 381.000000mm
Destination(s): file
Output file: /home/markus/hpscan001.png

Warming up... ...

Read more...

Revision history for this message
Sarbeswar Meher (sarbeswar-meher) wrote :

Hi,

  From the output of "hp-scan -g", it looks like there is no issue in scan and scan completed successfully and the scanned file is /home/markus/hpscan001.png. If you're not facing any problem with scan, please let us know.

Thanks,
Sarbeswar Meher

Changed in hplip:
status: New → In Progress
Revision history for this message
jocsch (markus-joschko) wrote :

You are right. The scan works fine. Sometimes.
I tried it multiple times and it sometimes fails (xsane still fails 100%). I haven't found a pattern, when it fails. Currently it fails 100% percent for me after I have successfully scanned 5 images.

I get the following error:

hp-scan[11567]: debug: Scan thread exiting...

Read 9.9 MB from scanner.
hp-scan[11567]: debug: PPL=2496 lines=4500 depth=8 BPL=2496 pad=0 total=10428288
error: Did not read enough data from scanner (I/O Error?)
Closing device.

I also have seen (non debug version):

Scanning...
Expecting to read 10.7 MB from scanner.
Reading data: [****************************************************************************************************************************************************************- ] 92% 9.9 MB Closing device.
Traceback (most recent call last):
  File "/usr/bin/hp-scan", line 837, in <module>
    sane.reportError(e)
  File "/usr/share/hplip/scan/sane.py", line 632, in reportError
    log.error("SANE: %s (code=%d)" % (scanext.getErrorMessage(code), code))
TypeError: %d format: a number is required, not str

Changed in hplip:
assignee: nobody → Sarbeswar Meher (sarbeswar-meher)
importance: Undecided → Medium
Revision history for this message
Sarbeswar Meher (sarbeswar-meher) wrote :

Can you plz install hplip-3.11.7 and try scanning.

Revision history for this message
jocsch (markus-joschko) wrote :

hp-scan seems to work fine. I tried a couple of scans and although it is dead slow it scanned everything.
xsane however still doesn't work.

Revision history for this message
Sarbeswar Meher (sarbeswar-meher) wrote :

Please restart your machine. If hp-scan works, then xsane should work fine. You need to set proper parameters in the xsane UI.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.