hplip Fehlermeldung beim Scannen mit HP Officejet Pro 6830 e-All-in-One

Einrichten des Druckers und des Drucksystems, Scannerkonfiguration und Software zum Scannen und Faxen.
Antworten
jcw
Beiträge: 99
Registriert: 10.01.2016 17:11:46

hplip Fehlermeldung beim Scannen mit HP Officejet Pro 6830 e-All-in-One

Beitrag von jcw » 20.10.2020 20:21:00

Hallo!

Ich habe Debian Buster neu installiert. Habe mein Homeverzeichnis von Stretch übernommen. Hat alles gut geklappt. Leider habe nun Probleme mit o.g. Drucker/Scanner/Fax-Gerät beim Scanne über das Terminal.

Code: Alles auswählen

jw@jw09:~$ hp-scan --mode='lineart'  --dest='file' -o015-2.pdf --pdf=okular
HP Linux Imaging and Printing System (ver. 3.18.12)
Scan Utility ver. 2.2

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.

Using device hpaio:/net/Officejet_Pro_6830?ip=192.168.178.20
Opening connection to device...

Resolution: 300dpi
Mode: lineart
Compression: JPEG
Scan area (mm):
  Top left (x,y): (0.000000mm, 0.000000mm)
  Bottom right (x,y): (215.900009mm, 300.566681mm)
  Width: 215.900009mm
  Height: 300.566681mm
Destination(s): file, pdf
Output file: /home/jw/015-2.pdf

Warming up...
 

Scanning...
Reading data: [**********************************************************************************************] 100%  1.1 MB     
Read 1.1 MB from scanner.
error: Did not read enough data from scanner (I/O Error?)
Closing device.
jw@jw09:~$
Die PDF-Datei wird nicht gespeichert. Anbei die installierten Pakete:

Code: Alles auswählen

jw@jw09:~$ cat /etc/*release      
PRETTY_NAME="Debian GNU/Linux 10 (buster)"
NAME="Debian GNU/Linux"
VERSION_ID="10"
VERSION="10 (buster)"
VERSION_CODENAME=buster
ID=debian
HOME_URL="https://www.debian.org/"
SUPPORT_URL="https://www.debian.org/support"
BUG_REPORT_URL="https://bugs.debian.org/"
jw@jw09:~$ uname -r
4.19.0-11-amd64
jw@jw09:~$ apt-cache showpkg hplip-gui
Package: hplip-gui
Versions: 
3.18.12+dfsg0-2 (/var/lib/apt/lists/deb.debian.org_debian_dists_buster_main_binary-amd64_Packages)
 Description Language: 
                 File: /var/lib/apt/lists/deb.debian.org_debian_dists_buster_main_binary-amd64_Packages
                  MD5: 0e8b9881942aaafee62df05b01b6d0d0
 Description Language: en
                 File: /var/lib/apt/lists/deb.debian.org_debian_dists_buster_main_i18n_Translation-en
                  MD5: 0e8b9881942aaafee62df05b01b6d0d0


Reverse Depends: 
  hplip,hplip-gui
Dependencies: 
3.18.12+dfsg0-2 - default-dbus-session-bus (16 (null)) dbus-session-bus (0 (null)) hplip (2 3.18.12+dfsg0-2) python3-dbus.mainloop.pyqt5 (0 (null)) python3-pyqt5 (0 (null)) python3-notify2 (0 (null)) xsane (16 (null)) simple-scan (16 (null)) skanlite (0 (null)) 
Provides: 
3.18.12+dfsg0-2 - 
Reverse Provides: 
jw@jw09:~$ apt-cache showpkg hplip-gui
Package: hplip-gui
Versions: 
3.18.12+dfsg0-2 (/var/lib/apt/lists/deb.debian.org_debian_dists_buster_main_binary-amd64_Packages)
 Description Language: 
                 File: /var/lib/apt/lists/deb.debian.org_debian_dists_buster_main_binary-amd64_Packages
                  MD5: 0e8b9881942aaafee62df05b01b6d0d0
 Description Language: en
                 File: /var/lib/apt/lists/deb.debian.org_debian_dists_buster_main_i18n_Translation-en
                  MD5: 0e8b9881942aaafee62df05b01b6d0d0


Reverse Depends: 
  hplip,hplip-gui
Dependencies: 
3.18.12+dfsg0-2 - default-dbus-session-bus (16 (null)) dbus-session-bus (0 (null)) hplip (2 3.18.12+dfsg0-2) python3-dbus.mainloop.pyqt5 (0 (null)) python3-pyqt5 (0 (null)) python3-notify2 (0 (null)) xsane (16 (null)) simple-scan (16 (null)) skanlite (0 (null)) 
Provides: 
3.18.12+dfsg0-2 - 
Reverse Provides: 
jw@jw09:~$
Für Tipps bin ich dankbar.

jcw
Beiträge: 99
Registriert: 10.01.2016 17:11:46

Re: hplip Fehlermeldung beim Scannen mit HP Officejet Pro 6830 e-All-in-One

Beitrag von jcw » 21.10.2020 11:43:32

Hat niemand eine Idee? Werden noch weitere Informationen benötigt, die ich nachliefern soll?

Benutzeravatar
TRex
Moderator
Beiträge: 8038
Registriert: 23.11.2006 12:23:54
Lizenz eigener Beiträge: MIT Lizenz
Wohnort: KA

Re: hplip Fehlermeldung beim Scannen mit HP Officejet Pro 6830 e-All-in-One

Beitrag von TRex » 21.10.2020 12:17:32

Nö, ich glaube, die Situation ist einfach etwas dünn... irgendwelche Infos auf dem Gerät? Ich denke, hp-scan richtet sich überwiegend selbständig ein und braucht keine (möglicherweise anzupassende) Konfiguration.
Jesus saves. Buddha does incremental backups.
Windows ist doof, Linux funktioniert nichtDon't break debian!Wie man widerspricht

willy4711

Re: hplip Fehlermeldung beim Scannen mit HP Officejet Pro 6830 e-All-in-One

Beitrag von willy4711 » 21.10.2020 12:26:29

Wenn man nach error: Did not read enough data from scanner (I/O Error?) sucht,
gibt es jede Menge Bug-Reports.z.B. Hier: https://bugs.launchpad.net/hplip/+bug/1703982
Zumindest mit der Testing - Version von Debianhplip läuft der identische Befehl anstandslos durch.

Code: Alles auswählen

hp-scan --mode='lineart'  --dest='file' -o015-2.pdf --pdf=atril

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

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

warning: Output file '/home/willy/015-2.pdf' exists. File will be overwritten.
Using device hpaio:/net/HP_LaserJet_Pro_MFP_M125nw?ip=192.168.0.7
Opening connection to device...

Resolution: 300dpi
Mode: lineart
Compression: JPEG
Scan area (mm):
  Top left (x,y): (0.000000mm, 0.000000mm)
  Bottom right (x,y): (215.899994mm, 296.925995mm)
  Width: 215.899994mm
  Height: 296.925995mm
Destination(s): file, pdf
Output file: /home/willy/015-2.pdf

Warming up...
 

Scanning...
Reading data: [***********************************************] 100%  1.1 MB     
Read 1.1 MB from scanner.
Closing device.
Saving to file /home/willy/015-2.pdf
Einzig dieser Befehl --pdf=atril (--pdf=<pdf_viewer>) scheint keinen Effekt zu haben.
Aber das ist wohl nebensächlich, da auch ohne dieses "Anhängsel" der Job abgearbeitet wird.
Vermutlich geht es in der GUI auch nicht ?
Möglichkeit wäre eine Version von hier:
https://developers.hp.com/hp-linux-imag ... g/gethplip

Edit:
Kommt der Fehler auch, wenn du einen anderen mode nimmst z.B. 'gray' ?
Wird dann zwar um einiges größer aber zum Testen ?

jcw
Beiträge: 99
Registriert: 10.01.2016 17:11:46

Re: hplip Fehlermeldung beim Scannen mit HP Officejet Pro 6830 e-All-in-One

Beitrag von jcw » 21.10.2020 21:44:12

Mir der Option
--mode='gray'
funktioniert es.

Code: Alles auswählen

jw@jw09:~/Dokumente$ hp-scan --mode='gray'  --dest='file' -o015-2.pdf --pdf=okular

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

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.

Using device hpaio:/net/Officejet_Pro_6830?ip=192.168.178.20
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): (215.900009mm, 300.566681mm)
  Width: 215.900009mm
  Height: 300.566681mm
Destination(s): file, pdf
Output file: /home/jw/Dokumente/015-2.pdf

Warming up...
 

Scanning...
Reading data: [********************************************************************************************************************] 100%  8.6 MB     
Read 8.6 MB from scanner.
Closing device.
Saving to file /home/jw/Dokumente/015-2.pdf
Viewing PDF file in /usr/bin/okular
jw@jw09:~/Dokumente$
Eigenartig? Unter 'stretch' hat es normal funktioniert.

Ein Check gibt Folgendes aus:

Code: Alles auswählen

jw@jw09:~/Dokumente$ hp-check 
Saving output in log file: /home/jw/Dokumente/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
jw@jw09:~/Dokumente$

willy4711

Re: hplip Fehlermeldung beim Scannen mit HP Officejet Pro 6830 e-All-in-One

Beitrag von willy4711 » 22.10.2020 12:43:34

jcw hat geschrieben: ↑ zum Beitrag ↑
21.10.2020 21:44:12
RuntimeError: generator raised StopIteration
Hmm, die Gründe, warum es dazu kommt (falls die da vorher stehen) sind für mich wie Chinesisch.
Auf jeden Fall läuft da was gründlich schief.
Ich würde hplip erstmal purgen, den Ordner ~/.hplip löschen.
Im Anschluss würde ich einen Neuinstallation machen, dabei drauf achten, dass alles samt "Empfehlungen"
mit installiert wird, bzw. vorhanden ist.

Code: Alles auswählen

 apt depends hplip
hplip
  Hängt ab von: adduser
  Hängt ab von: cups
  Hängt ab von: hplip-data (= 3.18.12+dfsg0-2)
  Hängt ab von: libhpmud0 (= 3.18.12+dfsg0-2)
  Hängt ab von: libsane-hpaio (= 3.18.12+dfsg0-2)
  Hängt ab von: lsb-base
  Hängt ab von: printer-driver-hpcups (= 3.18.12+dfsg0-2)
  Hängt ab von: python3-dbus
  Hängt ab von: python3-gi
  Hängt ab von: python3-pexpect
  Hängt ab von: python3-pil
  Hängt ab von: python3-reportlab
  Hängt ab von: wget
  Hängt ab von: <python3:any>
    python3
  Hängt ab von: xz-utils
  Hängt ab von: python3 (<< 3.8)
  Hängt ab von: python3 (>= 3.7~)
  Hängt ab von: libc6 (>= 2.14)
  Hängt ab von: libcups2 (>= 1.6.0)
  Hängt ab von: libdbus-1-3 (>= 1.9.14)
  Hängt ab von: libpython3.7 (>= 3.7.0)
  Hängt ab von: libsane (>= 1.0.24)
  Hängt ab von: libsnmp30 (>= 5.7.3+dfsg-4+b1~dfsg)
  Hängt ab von: libusb-1.0-0 (>= 2:1.0.8)
  Empfiehlt: avahi-daemon
  Empfiehlt: policykit-1
  Empfiehlt: printer-driver-postscript-hp
  Empfiehlt: sane-utils
  Schlägt vor: hplip-doc
  Schlägt vor: hplip-gui
  Schlägt vor: python3-notify2
  Schlägt vor: system-config-printer

Antworten