Problems using Scan with Ubuntu 18.04

Asked by Sharon Adley on 2020-10-28

Scanned doc shows up fine in preview but saved file is a blank white space only 8.5 wide by 1.5 high.

Ran scan from hplip Actions tab.
xsane window opened
Preview window opened.
In Preview window, clicked Acquire preview and scanned image appeared.
In xsane window, set up my Desktop as file location and named image; set file type as tiff; clicked scan.
File was saved to Desktop.
Opening the file with Image Viewer, image is blank white space in black window.
Since the preview displays the correct image of the document, I don't understand why the scan does not.

The printer is an HP Envy 5000 Series that is working just fine for printing using hplip.

Question information

Language:
English Edit question
Status:
Solved
For:
HPLIP Edit question
Assignee:
No assignee Edit question
Solved by:
Sharon Adley
Solved:
2020-11-27
Last query:
2020-11-27
Last reply:
2020-11-21
Sharon Adley (ska-adley) said : #1

The document being scanned is print, black on white - no color or grayscale.

I found some documentation on xsane which states that tiff requires a library that may not be there, but pdf is always available as an output format, so I tried the scan again with file type as pdf. Same results.

shivani mandora (shivani1708) said : #2

Hi ,

Have you installed plugin ?
What error are you getting while scaning ?

Sharon Adley (ska-adley) said : #3

There was a list of plugins needed that I installed.

I am not getting an error message. The scan seems to work but when I open the image, there is just a blank white space, regardless what file type I choose to save as.

Is there a way I can post a screenshot or attach the document xsane produces? I have tried to copy/paste into this space but the Paste results in nothing.

Sharon Adley (ska-adley) said : #4

Contents of hp-check.log from date I installed hplip:

hp-check[3090]: info: :
hp-check[3090]: info: :[01mHP Linux Imaging and Printing System (ver. 3.17.10)[0m
hp-check[3090]: info: :[01mDependency/Version Check Utility ver. 15.1[0m
hp-check[3090]: info: :
hp-check[3090]: info: :Copyright (c) 2001-15 HP Development Company, LP
hp-check[3090]: info: :This software comes with ABSOLUTELY NO WARRANTY.
hp-check[3090]: info: :This is free software, and you are welcome to distribute it
hp-check[3090]: info: :under certain conditions. See COPYING file for more details.
hp-check[3090]: info: :
hp-check[3090]: info: :[01mNote: hp-check can be run in three modes:[0m
hp-check[3090]: info: :1. Compile-time check mode (-c or --compile): Use this mode before compiling the HPLIP supplied tarball (.tar.gz
hp-check[3090]: info: :or .run) to determine if the proper dependencies are installed to successfully compile HPLIP.
hp-check[3090]: info: :2. Run-time check mode (-r or --run): Use this mode to determine if a distro supplied package (.deb, .rpm, etc)
hp-check[3090]: info: :or an already built HPLIP supplied tarball has the proper dependencies installed to successfully run.
hp-check[3090]: info: :3. Both compile- and run-time check mode (-b or --both) (Default): This mode will check both of the above cases
hp-check[3090]: info: :(both compile- and run-time dependencies).
hp-check[3090]: info: :
hp-check[3090]: info: :Check types:
hp-check[3090]: info: :a. EXTERNALDEP - External Dependencies
hp-check[3090]: info: :b. GENERALDEP - General Dependencies (required both at compile and run time)
hp-check[3090]: info: :c. COMPILEDEP - Compile time Dependencies
hp-check[3090]: info: :d. [All are run-time checks]
hp-check[3090]: info: :PYEXT SCANCONF QUEUES PERMISSION
hp-check[3090]: info: :
hp-check[3090]: info: :Status Types:
hp-check[3090]: info: : OK
hp-check[3090]: info: : MISSING - Missing Dependency or Permission or Plug-in
hp-check[3090]: info: : INCOMPAT - Incompatible dependency-version or Plugin-version
hp-check[3090]: info: :
warning: [01m12-18.04 version is not supported. Using 12-17.04 versions dependencies to verify and install...[0m
hp-check[3090]: info: :
hp-check[3090]: info: :---------------
hp-check[3090]: info: :| SYSTEM INFO |
hp-check[3090]: info: :---------------
hp-check[3090]: info: :
hp-check[3090]: info: : Kernel: 5.4.0-45-generic #49~18.04.2-Ubuntu SMP Wed Aug 26 16:29:02 UTC 2020 GNU/Linux
 Host: sharon-ThinkPad-E420
 Proc: 5.4.0-45-generic #49~18.04.2-Ubuntu SMP Wed Aug 26 16:29:02 UTC 2020 GNU/Linux
 Distribution: 12 18.04
hp-check[3090]: info: : Bitness: 64 bit

hp-check[3090]: info: :
hp-check[3090]: info: :-----------------------
hp-check[3090]: info: :| HPLIP CONFIGURATION |
hp-check[3090]: info: :-----------------------
hp-check[3090]: info: :
hp-check[3090]: info: :HPLIP-Version: HPLIP 3.17.10
hp-check[3090]: info: :HPLIP-Home: /usr/share/hplip
warning: HPLIP-Installation: Auto installation is not supported for 12 distro 18.04 version
hp-check[3090]: info: :
hp-check[3090]: info: :[01mCurrent contents of '/etc/hp/hplip.conf' file:[0m
hp-check[3090]: info: :# hplip.conf. Generated from hplip.conf.in by configure.

[hplip]
version=3.17.10

[dirs]
home=/usr/share/hplip
run=/var/run
ppd=/usr/share/ppd/hplip/HP
ppdbase=/usr/share/ppd/hplip
doc=/usr/share/doc/hplip
html=/usr/share/doc/hplip-doc
icon=no
cupsbackend=/usr/lib/cups/backend
cupsfilter=/usr/lib/cups/filter
drv=/usr/share/cups/drv
bin=/usr/bin
apparmor=/etc/apparmor.d
# Following values are determined at configure time and cannot be changed.
[configure]
network-build=yes
libusb01-build=no
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.17.10
restricted-build=no
ui-toolkit=qt5
qt3=no
qt4=no
qt5=yes
policy-kit=yes
lite-build=no
udev_sysfs_rules=no
hpcups-only-build=no
hpijs-only-build=no
apparmor_build=no

hp-check[3090]: info: :
hp-check[3090]: info: :[01mCurrent contents of '/var/lib/hp/hplip.state' file:[0m
hp-check[3090]: info: :Plugins are not installed. Could not access file: No such file or directory
hp-check[3090]: info: :
hp-check[3090]: info: :[01mCurrent contents of '~/.hplip/hplip.conf' file:[0m
hp-check[3090]: info: :[installation]
date_time = 09/06/20 14:09:30
version = 3.17.10

[last_used]
device_uri = hp:/usb/ENVY_5000_series?serial=TH91V8J1BT

hp-check[3090]: info: : <Package-name> <Package-Desc> <Required/Optional> <Min-Version> <Installed-Version> <Status> <Comment>
hp-check[3090]: info: :
hp-check[3090]: info: :-------------------------
hp-check[3090]: info: :| External Dependencies |
hp-check[3090]: info: :-------------------------
hp-check[3090]: info: :
hp-check[3090]: info: : cups CUPS - Common Unix Printing System REQUIRED 1.1 2.2.7 OK 'CUPS Scheduler is running'
hp-check[3090]: info: : gs GhostScript - PostScript and PDF language interpreter and previewer REQUIRED 7.05 9.26 OK -
hp-check[3090]: info: : xsane xsane - Graphical scanner frontend for SANE OPTIONAL 0.9 0.999 OK -
hp-check[3090]: info: : scanimage scanimage - Shell scanning program OPTIONAL 1.0 1.0.27 OK -
hp-check[3090]: info: : dbus DBus - Message bus system REQUIRED - 1.12.2 OK -
hp-check[3090]: info: : policykit PolicyKit - Administrative policy framework OPTIONAL - 0.105 OK -
hp-check[3090]: info: : network network -wget OPTIONAL - 1.19.4 OK -
hp-check[3090]: info: : avahi-utils avahi-utils OPTIONAL - 0.7 OK -
hp-check[3090]: info: :
hp-check[3090]: info: :------------------------
hp-check[3090]: info: :| General Dependencies |
hp-check[3090]: info: :------------------------
hp-check[3090]: info: :
hp-check[3090]: info: : libjpeg libjpeg - JPEG library REQUIRED - - OK -
hp-check[3090]: info: : cups-devel CUPS devel- Common Unix Printing System development files REQUIRED - 2.2.7 OK -
hp-check[3090]: info: : cups-image CUPS image - CUPS image development files REQUIRED - 2.2.7 OK -
hp-check[3090]: info: : libpthread libpthread - POSIX threads library REQUIRED - b'2.27' OK -
hp-check[3090]: info: : libusb libusb - USB library REQUIRED - 1.0 OK -
hp-check[3090]: info: : sane SANE - Scanning library REQUIRED - - OK -
hp-check[3090]: info: : sane-devel SANE - Scanning library development files REQUIRED - - OK -
hp-check[3090]: info: : libnetsnmp-devel libnetsnmp-devel - SNMP networking library development files REQUIRED 5.0.9 5.7.3 OK -
hp-check[3090]: info: : libcrypto libcrypto - OpenSSL cryptographic library REQUIRED - 1.1.1 OK -
hp-check[3090]: info: : python3X Python 2.2 or greater - Python programming language REQUIRED 2.2 3.6.9 OK -
hp-check[3090]: info: : python3-notify2 Python libnotify - Python bindings for the libnotify Desktop notifications OPTIONAL - - OK -
hp-check[3090]: info: :[31;01m error: python3-pyqt4-dbus PyQt 4 DBus - DBus Support for PyQt4 OPTIONAL 4.0 4.12.1 MISSING 'python3-pyqt4-dbus needs to be installed'[0m
hp-check[3090]: info: : python3-pyqt4 PyQt 4- Qt interface for Python (for Qt version 4.x) REQUIRED 4.0 4.12.1 OK -
hp-check[3090]: info: : python3-dbus Python DBus - Python bindings for DBus REQUIRED 0.80.0 1.2.6 OK -
hp-check[3090]: info: : python3-xml Python XML libraries REQUIRED - 2.2.5 OK -
hp-check[3090]: info: : python3-devel Python devel - Python development files REQUIRED 2.2 3.6.9 OK -
hp-check[3090]: info: : python3-pil PIL - Python Imaging Library (required for commandline scanning with hp-scan) OPTIONAL - 1.1.7 OK -
hp-check[3090]: info: : python3-reportlab Reportlab - PDF library for Python OPTIONAL 2.0 3.4.0 OK -
hp-check[3090]: info: :
hp-check[3090]: info: :--------------
hp-check[3090]: info: :| COMPILEDEP |
hp-check[3090]: info: :--------------
hp-check[3090]: info: :
hp-check[3090]: info: : libtool libtool - Library building support services REQUIRED - 2.4.6 OK -
hp-check[3090]: info: : gcc gcc - GNU Project C and C++ Compiler REQUIRED - 7.5.0 OK -
hp-check[3090]: info: : make make - GNU make utility to maintain groups of programs REQUIRED 3.0 4.1 OK -
hp-check[3090]: info: :
hp-check[3090]: info: :---------------------
hp-check[3090]: info: :| Python Extentions |
hp-check[3090]: info: :---------------------
hp-check[3090]: info: :
hp-check[3090]: info: : cupsext CUPS-Extension REQUIRED - 3.17.10 OK -
hp-check[3090]: info: : hpmudext IO-Extension REQUIRED - 3.17.10 OK -
hp-check[3090]: info: :
hp-check[3090]: info: :----------------------
hp-check[3090]: info: :| Scan Configuration |
hp-check[3090]: info: :----------------------
hp-check[3090]: info: :
hp-check[3090]: info: :'/etc/sane.d/dll.d/hpaio' not found.
hp-check[3090]: info: : hpaio HPLIP-SANE-Backend REQUIRED - 3.17.10 OK 'hpaio found in /etc/sane.d/dll.conf'
hp-check[3090]: info: : scanext Scan-SANE-Extension REQUIRED - 3.17.10 OK -
hp-check[3090]: info: :
hp-check[3090]: info: :------------------------------
hp-check[3090]: info: :| DISCOVERED SCANNER DEVICES |
hp-check[3090]: info: :------------------------------
hp-check[3090]: info: :
hp-check[3090]: info: :device `hpaio:/usb/ENVY_5000_series?serial=TH91V8J1BT' is a Hewlett-Packard ENVY_5000_series all-in-one

hp-check[3090]: info: :
hp-check[3090]: info: :--------------------------
hp-check[3090]: info: :| DISCOVERED USB DEVICES |
hp-check[3090]: info: :--------------------------
hp-check[3090]: info: :
hp-check[3090]: info: : Device URI Model
hp-check[3090]: info: : ------------------------------------------ ----------------------
hp-check[3090]: info: : hp:/usb/ENVY_5000_series?serial=TH91V8J1BT HP ENVY 5000 series
hp-check[3090]: info: :
hp-check[3090]: info: :---------------------------------
hp-check[3090]: info: :| INSTALLED CUPS PRINTER QUEUES |
hp-check[3090]: info: :---------------------------------
hp-check[3090]: info: :
hp-check[3090]: info: :
hp-check[3090]: info: :[01mENVY-5000-series[0m
hp-check[3090]: info: :[01m----------------[0m
hp-check[3090]: info: :Type: Printer
hp-check[3090]: info: :Device URI: hp:/usb/ENVY_5000_series?serial=TH91V8J1BT
hp-check[3090]: info: :PPD: /etc/cups/ppd/ENVY-5000-series.ppd
warning: Failed to read /etc/cups/ppd/ENVY-5000-series.ppd ppd file
hp-check[3090]: info: :PPD Description:
hp-check[3090]: info: :Printer status: printer ENVY-5000-series is idle. enabled since Sun 06 Sep 2020 12:51:12 PM CDT
hp-check[3090]: info: :Communication status: Good
hp-check[3090]: info: :
hp-check[3090]: info: :
hp-check[3090]: info: :--------------
hp-check[3090]: info: :| PERMISSION |
hp-check[3090]: info: :--------------
hp-check[3090]: info: :
hp-check[3090]: info: :USB ENVY-5000-series Required - - OK Node:'/dev/bus/usb/001/007' Perm:' root lp rw- rw- rw- rw- r--'
hp-check[3090]: info: :
hp-check[3090]: info: :-----------
hp-check[3090]: info: :| SUMMARY |
hp-check[3090]: info: :-----------
hp-check[3090]: info: :
hp-check[3090]: info: :[01mMissing Required Dependencies[0m
hp-check[3090]: info: :[01m-----------------------------[0m
hp-check[3090]: info: :None
hp-check[3090]: info: :
hp-check[3090]: info: :[01mMissing Optional Dependencies[0m
hp-check[3090]: info: :[01m-----------------------------[0m
error: 'python3-dbus.mainloop.qt' package is missing/incompatible
hp-check[3090]: info: :
hp-check[3090]: info: :Total Errors: 1
hp-check[3090]: info: :Total Warnings: 0
hp-check[3090]: info: :
hp-check[3090]: info: :
hp-check[3090]: info: :Done.

Sharon Adley (ska-adley) said : #5

While attempting some more scans and looking at the different options available, xsane crashed. The crash details said to upgrade the following: libsane-common, libsane1, sane-utils. I upgraded libsane-common and sane-utils. Response to upgrade attempt on libsane1 was that I had the latest version.

I have checked the scan image size shown next to the Scan button and it is 8,50 x 11.69, which should be enough to scan the entire test document. But I still get an image that is 8.5 inches wide but only 1.5 inches long. If I open the viewer window, I see the same size image, but if I open the Preview window, I see the entire image. There has to be something wrong with the settings for this device but I don't know how to correct them.

My printer model is HP Envy 5055. That specific number isn't listed as supported on the sane web site, although the 5000, 5020, 5030, and 5032 are. No way for me to know how different the 5055 is from the others. I'm wondering if the 5000 series .drc needs adjusting for the 5055.

Launchpad Janitor (janitor) said : #6

This question was expired because it remained in the 'Open' state without activity for the last 15 days.

Sharon Adley (ska-adley) said : #7

Does anyone know why the HP Envy 5000 hplip doesn't work with the Ency 5055?

Sharon Adley (ska-adley) said : #8

Based on further research, I have come to the conclusion that xsane just doesn't work with my printer. Problem solved by using other scan software.