[SOLVED] raspbian buster issue with scanning on hp deskjet 2544 in raspberry pi2 printer/scanner server
by floppy_stuttgart from LinuxQuestions.org on (#5CXSD)
Hello,
I installed the latest raspbian on a raspberry pi2 (which had wheezy: it worked but the SD card was showing an error; so I am using a new card with paspbian; the old-working-one is still available as plan B).
Printing setup works with the hp deskjet 2544). Scanning is an issue.
sudo hp-doctor
Code:error: cupsext not present in the system. Please re-install HPLIP.re-installing dont help.
Further errors can be seen..
sudo hp-check -t
PHP Code:Saving output in log file: /home/pi/hp-check.log
HP Linux Imaging and Printing System (ver. 3.18.12)
Dependency/Version Check Utility ver. 15.1
Copyright (c) 2001-15 HP 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
|Traceback (most recent call last):
File "/usr/share/hplip/base/utils.py", line 265, in walkFiles
names = os.listdir(root)
FileNotFoundError: [Errno 2] No such file or directory: '/usr/include/cups'
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/usr/share/hplip/base/utils.py", line 267, in walkFiles
raise StopIteration
StopIteration
The above exception was the direct cause of the following exception:
Traceback (most recent call last):
File "/usr/bin/hp-check", line 861, in <module>
dep.core.init()
File "/usr/share/hplip/installer/core_install.py", line 527, in init
self.check_dependencies(callback)
File "/usr/share/hplip/installer/core_install.py", line 620, in check_dependencies
self.have_dependencies[d] = self.dependencies[d][3]()
File "/usr/share/hplip/installer/core_install.py", line 1166, in check_cups_image
return check_file("raster.h", "/usr/include/cups")
File "/usr/share/hplip/installer/dcheck.py", line 107, in check_file
for w in utils.walkFiles(dir, recurse=True, abs_paths=True, return_folders=False, pattern=f):
RuntimeError: generator raised StopIteration
sudo hp-setup -i
PHP Code:HP Linux Imaging and Printing System (ver. 3.18.12)
Printer/Fax Setup Utility ver. 9.0
Copyright (c) 2001-15 HP 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: Defaults for each question are maked with a '*'. Press <enter> to accept the default.)
--------------------------------
| SELECT CONNECTION (I/O) TYPE |
--------------------------------
Num Connection Description
Type
-------- ---------- ----------------------------------------------------------
0* usb Universal Serial Bus (USB)
1 net Network/Ethernet/Wireless (direct connection or JetDirect)
Enter number 0...1 for connection type (q=quit, enter=usb*) ?
Using connection type: usb
Setting up device: hp:/usb/Deskjet_2540_series?serial=CN49Q4F4KH0604
---------------------
| PRINT QUEUE SETUP |
---------------------
warning: One or more print queues already exist for this device: HP_Deskjet_2540_series.
Would you like to install another print queue for this device (y=yes, n=no*, q=quit) ? n
Done.
weird: 2 scanners are recognized.
sudo sane-find-scanner
Code: # sane-find-scanner will now attempt to detect your scanner. If the
# result is different from what you expected, first make sure your
# scanner is powered up and properly connected to your computer.
# No SCSI scanners found. If you expected something different, make sure that
# you have loaded a kernel SCSI driver for your SCSI adapter.
# Also you need support for SCSI Generic (sg) in your operating system.
# If using Linux, try "modprobe sg".
found USB scanner (vendor=0x03f0 [HP], product=0xc211 [Deskjet 2540 series]) at libusb:001:004
found USB scanner (vendor=0x0424, product=0xec00) at libusb:001:003
# Your USB scanner was (probably) detected. It may or may not be supported by
# SANE. Try scanimage -L and read the backend's manpage.
# Not checking for parallel port scanners.
# Most Scanners connected to the parallel port or other proprietary ports
# can't be detected by this program.sudo scanimage -L
Code:device `hpaio:/usb/Deskjet_2540_series?serial=CN49Q4F4KH0604' is a Hewlett-Packard Deskjet_2540_series all-in-one
Has anybody any idea what could cause the issue and/or where to search for making the scanner working?
I will have a look if any usb rules must be defined etc.
Any recommendation is welcome.
Update/closure:
I putted the printer/scanner usb into the other usb port of the raspberry PI
Now
sudo sane-find-scanner
Quote:
AND according "2.3" of http://schuett.io/2011/03/debian-pri...lip-cups-sane/
Quote:
then..
scanimage -L
Quote:
And started simple scan. it works. topic closed.


I installed the latest raspbian on a raspberry pi2 (which had wheezy: it worked but the SD card was showing an error; so I am using a new card with paspbian; the old-working-one is still available as plan B).
Printing setup works with the hp deskjet 2544). Scanning is an issue.
sudo hp-doctor
Code:error: cupsext not present in the system. Please re-install HPLIP.re-installing dont help.
Further errors can be seen..
sudo hp-check -t
PHP Code:Saving output in log file: /home/pi/hp-check.log
HP Linux Imaging and Printing System (ver. 3.18.12)
Dependency/Version Check Utility ver. 15.1
Copyright (c) 2001-15 HP 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
|Traceback (most recent call last):
File "/usr/share/hplip/base/utils.py", line 265, in walkFiles
names = os.listdir(root)
FileNotFoundError: [Errno 2] No such file or directory: '/usr/include/cups'
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/usr/share/hplip/base/utils.py", line 267, in walkFiles
raise StopIteration
StopIteration
The above exception was the direct cause of the following exception:
Traceback (most recent call last):
File "/usr/bin/hp-check", line 861, in <module>
dep.core.init()
File "/usr/share/hplip/installer/core_install.py", line 527, in init
self.check_dependencies(callback)
File "/usr/share/hplip/installer/core_install.py", line 620, in check_dependencies
self.have_dependencies[d] = self.dependencies[d][3]()
File "/usr/share/hplip/installer/core_install.py", line 1166, in check_cups_image
return check_file("raster.h", "/usr/include/cups")
File "/usr/share/hplip/installer/dcheck.py", line 107, in check_file
for w in utils.walkFiles(dir, recurse=True, abs_paths=True, return_folders=False, pattern=f):
RuntimeError: generator raised StopIteration
sudo hp-setup -i
PHP Code:HP Linux Imaging and Printing System (ver. 3.18.12)
Printer/Fax Setup Utility ver. 9.0
Copyright (c) 2001-15 HP 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: Defaults for each question are maked with a '*'. Press <enter> to accept the default.)
--------------------------------
| SELECT CONNECTION (I/O) TYPE |
--------------------------------
Num Connection Description
Type
-------- ---------- ----------------------------------------------------------
0* usb Universal Serial Bus (USB)
1 net Network/Ethernet/Wireless (direct connection or JetDirect)
Enter number 0...1 for connection type (q=quit, enter=usb*) ?
Using connection type: usb
Setting up device: hp:/usb/Deskjet_2540_series?serial=CN49Q4F4KH0604
---------------------
| PRINT QUEUE SETUP |
---------------------
warning: One or more print queues already exist for this device: HP_Deskjet_2540_series.
Would you like to install another print queue for this device (y=yes, n=no*, q=quit) ? n
Done.
weird: 2 scanners are recognized.
sudo sane-find-scanner
Code: # sane-find-scanner will now attempt to detect your scanner. If the
# result is different from what you expected, first make sure your
# scanner is powered up and properly connected to your computer.
# No SCSI scanners found. If you expected something different, make sure that
# you have loaded a kernel SCSI driver for your SCSI adapter.
# Also you need support for SCSI Generic (sg) in your operating system.
# If using Linux, try "modprobe sg".
found USB scanner (vendor=0x03f0 [HP], product=0xc211 [Deskjet 2540 series]) at libusb:001:004
found USB scanner (vendor=0x0424, product=0xec00) at libusb:001:003
# Your USB scanner was (probably) detected. It may or may not be supported by
# SANE. Try scanimage -L and read the backend's manpage.
# Not checking for parallel port scanners.
# Most Scanners connected to the parallel port or other proprietary ports
# can't be detected by this program.sudo scanimage -L
Code:device `hpaio:/usb/Deskjet_2540_series?serial=CN49Q4F4KH0604' is a Hewlett-Packard Deskjet_2540_series all-in-one
Has anybody any idea what could cause the issue and/or where to search for making the scanner working?
I will have a look if any usb rules must be defined etc.
Any recommendation is welcome.
Update/closure:
I putted the printer/scanner usb into the other usb port of the raspberry PI
Now
sudo sane-find-scanner
Quote:
# sane-find-scanner will now attempt to detect your scanner. If the # result is different from what you expected, first make sure your # scanner is powered up and properly connected to your computer. # No SCSI scanners found. If you expected something different, make sure that # you have loaded a kernel SCSI driver for your SCSI adapter. # Also you need support for SCSI Generic (sg) in your operating system. # If using Linux, try "modprobe sg". found USB scanner (vendor=0x03f0 [HP], product=0xc211 [Deskjet 2540 series]) at libusb:001:006 found USB scanner (vendor=0x0424, product=0xec00) at libusb:001:003 # Your USB scanner was (probably) detected. It may or may not be supported by # SANE. Try scanimage -L and read the backend's manpage. # Not checking for parallel port scanners. # Most Scanners connected to the parallel port or other proprietary ports |
Quote:
sudo chmod 666 /dev/bus/usb/001/006 |
scanimage -L
Quote:
device `hpaio:/usb/Deskjet_2540_series?serial=CN49Q4F4KH0604' is a Hewlett-Packard Deskjet_2540_series all-in-one |