HP LaserJet Pro MFC M148nw Scanning with xsane fails

Asked by Holger Anger

After installing current hplip on ubuntu xsane starts and recognizes a device name, but it comes to an IO-Error while communicating.
syslog found that:
Apr 10 11:25:03 holger-Akoya-E7223 xsane: io/hpmud/model.c 532: no laserjet_pro_m148-m149 attributes found in /usr/share/hplip/data/models/models.dat
Apr 10 11:25:03 holger-Akoya-E7223 xsane: io/hpmud/model.c 543: no laserjet_pro_m148-m149 attributes found in /usr/share/hplip/data/models/unreleased/unreleased.dat
Apr 10 11:25:14 holger-Akoya-E7223 xsane: common/utils.c 245: unable to load library libm.so: /usr/lib/x86_64-linux-gnu/libm.so: Ungültiger ELF-Header
Apr 10 11:25:14 holger-Akoya-E7223 xsane: common/utils.c 69: unable to open /var/lib/hp/hplip.state: Datei oder Verzeichnis nicht gefunden
Apr 10 11:25:14 holger-Akoya-E7223 xsane: common/utils.c 119: validate_plugin_version() Failed to get Plugin version from [/var/lib/hp/hplip.state]
Apr 10 11:25:14 holger-Akoya-E7223 xsane: common/utils.c 157: Plugin version is not matching
Apr 10 11:25:14 holger-Akoya-E7223 xsane: common/utils.c 220: Invalid Library hanlder pLibHandler = NULL.
A
how to solve that?

Question information

Language:
English Edit question
Status:
Solved
For:
HPLIP Edit question
Assignee:
No assignee Edit question
Solved by:
Holger Anger
Solved:
Last query:
Last reply:
Revision history for this message
Manfred Hampl (m-hampl) said :
#1

Which operating system (including release number) are you using, which version of HPLIP, and from which source did you install it (e.g. from the repository for your operating system distribution, or from the HPLIP web pages)?

Revision history for this message
Holger Anger (holg) said :
#2

System xubuntu Bionic Beaver
HPLIP 3.19.11.run from the Website
the Script removed the previously installed Version of HPLIP.
Must I run that hplip-3.19.11-plugin.run in order to be able to scan?

Revision history for this message
Manfred Hampl (m-hampl) said :
#3

There is already a newer version available on https://developers.hp.com/hp-linux-imaging-and-printing/gethplip (3.20.3).
I suggest that you download and install that one, and then check whether it works or not.

Revision history for this message
brian_p (claremont102) said :
#4

> no laserjet_pro_m148-m149 attributes found in /usr/share/hplip/data/models/models.dat

That is correct. There is an hp_laserjet_pro_m148-m149 in models.dat.
It is an HPLIP bug. See

  https://bugs.launchpad.net/hplip/+bug/1871116

for the solution.

Brian.

Revision history for this message
Holger Anger (holg) said :
#5

I had to remove all old printerqueses and to setup everything new..... then it was working

HP Linux Imaging and Printing System (ver. 3.19.11)
HPLIP upgrade latest version ver. 1.0

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.

Latest version of HPLIP is already installed.

Checking for Dependencies....

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

 Kernel: 5.3.0-46-generic #38~18.04.1-Ubuntu SMP Tue Mar 31 04:17:56 UTC 2020 GNU/Linux
 Host: holger-Akoya-E7223
 Proc: 5.3.0-46-generic #38~18.04.1-Ubuntu SMP Tue Mar 31 04:17:56 UTC 2020 GNU/Linux
 Distribution: 12 18.04
 Bitness: 64 bit

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

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

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

[hplip]
version=3.19.11

[dirs]
home=/usr/share/hplip
run=/var/run
ppd=/usr/share/ppd/HP
ppdbase=/usr/share/ppd
doc=/usr/share/doc/hplip-3.19.11
html=/usr/share/doc/hplip-3.19.11
icon=/usr/share/applications
cupsbackend=/usr/lib/cups/backend
cupsfilter=/usr/lib/cups/filter
drv=/usr/share/cups/drv/hp
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=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.19.11
restricted-build=no
ui-toolkit=qt4
qt3=no
qt4=yes
qt5=no
policy-kit=no
lite-build=no
udev_sysfs_rules=no
hpcups-only-build=no
hpijs-only-build=no
apparmor_build=yes
class-driver=no

Current contents of '/var/lib/hp/hplip.state' file:
[plugin]
installed = 1
eula = 1
version = 3.19.11

Current contents of '~/.hplip/hplip.conf' file:
[upgrade]
latest_available_version = 3.17.10
notify_upgrade = false
last_upgraded_time = 1586545495
pending_upgrade_time = 0

[settings]
systray_visible = 0
systray_messages = 0

[last_used]
device_uri = "hp:/net/HP_LaserJet_Pro_M148-M149?ip=192.168.0.5"
printer_name =
working_dir = /home/holger/Schreibtisch/HPLIB/hplip-3.19.11-plugin.run

[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 = 10.04.2020 21:41:33
version = 3.19.11

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

--------------
| COMPILEDEP |
--------------

 gcc gcc - GNU Project C and C++ Compiler REQUIRED - 7.5.0 OK -
 make make - GNU make utility to maintain groups of programs REQUIRED 3.0 4.1 OK -
 libtool libtool - Library building support services REQUIRED - 2.4.6 OK -

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

 libcrypto libcrypto - OpenSSL cryptographic library REQUIRED - 1.1.1 OK -
 python-xml Python XML libraries REQUIRED - 2.2.5 OK -
 libnetsnmp-devel libnetsnmp-devel - SNMP networking library development files REQUIRED 5.0.9 5.7.3 OK -
 sane-devel SANE - Scanning library development files REQUIRED - - OK -
 pil PIL - Python Imaging Library (required for commandline scanning with hp-scan) OPTIONAL - 5.1.0 OK -
 pyqt4-dbus PyQt 4 DBus - DBus Support for PyQt4 REQUIRED 4.0 4.12.1 OK -
 libpthread libpthread - POSIX threads library REQUIRED - 2.27 OK -
 python-devel Python devel - Python development files REQUIRED 2.2 2.7.17 OK -
 cups-devel CUPS devel- Common Unix Printing System development files REQUIRED - 2.2.7 OK -
 python-dbus Python DBus - Python bindings for DBus REQUIRED 0.80.0 1.2.6 OK -
 cups-ddk CUPS DDK - CUPS driver development kit OPTIONAL - - OK -
 reportlab Reportlab - PDF library for Python OPTIONAL 2.0 3.4.0 OK -
 pyqt4 PyQt 4- Qt interface for Python (for Qt version 4.x) REQUIRED 4.0 4.12.1 OK -
 libusb libusb - USB library REQUIRED - 1.0 OK -
 cups-image CUPS image - CUPS image development files REQUIRED - 2.2.7 OK -
 python2X Python 2.2 or greater - Python programming language REQUIRED 2.2 2.7.17 OK -
 python-notify Python libnotify - Python bindings for the libnotify Desktop notifications OPTIONAL - - OK -
 libjpeg libjpeg - JPEG library REQUIRED - - OK -
 sane SANE - Scanning library REQUIRED - - OK -

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

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

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

 gs GhostScript - PostScript and PDF language interpreter and previewer REQUIRED 7.05 9.26 OK -
 scanimage scanimage - Shell scanning program OPTIONAL 1.0 1.0.27 OK -
 cups CUPS - Common Unix Printing System REQUIRED 1.1 2.2.7 OK 'CUPS Scheduler is running'
 network network -wget OPTIONAL - 1.19.4 OK -
 policykit PolicyKit - Administrative policy framework OPTIONAL - 0.105 OK -
 xsane xsane - Graphical scanner frontend for SANE OPTIONAL 0.9 0.999 OK -
 dbus DBus - Message bus system REQUIRED - 1.12.2 OK -
 avahi-utils avahi-utils OPTIONAL - 0.7 OK -

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

 hpmudext IO-Extension REQUIRED - 3.19.11 OK -
 cupsext CUPS-Extension REQUIRED - 3.19.11 OK -

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

device `hpaio:/net/HP_LaserJet_Pro_M148-M149?ip=192.168.0.5' is a Hewlett-Packard HP_LaserJet_Pro_M148-M149 all-in-one
device `hpaio:/net/HP_LaserJet_Pro_M148-M149?ip=192.168.0.5' is a Hewlett-Packard HP_LaserJet_Pro_M148-M149 all-in-one

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

No devices found.

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

HP_LaserJet_Pro_M148-M149
-------------------------
Type: Printer
Device URI: hp:/net/HP_LaserJet_Pro_M148-M149?ip=192.168.0.5
PPD: /etc/cups/ppd/HP_LaserJet_Pro_M148-M149.ppd
warning: Failed to read /etc/cups/ppd/HP_LaserJet_Pro_M148-M149.ppd ppd file
PPD Description:
Printer status: Drucker HP_LaserJet_Pro_M148-M149 ist im Leerlauf. Aktiviert seit Fr 10 Apr 2020 16:23:39 CEST
Communication status: Good

HP_LaserJet_Pro_M148-M149_2
---------------------------
Type: Printer
Device URI: hp:/net/HP_LaserJet_Pro_M148-M149?ip=192.168.0.5
PPD: /etc/cups/ppd/HP_LaserJet_Pro_M148-M149_2.ppd
warning: Failed to read /etc/cups/ppd/HP_LaserJet_Pro_M148-M149_2.ppd ppd file
PPD Description:
Printer status: Drucker HP_LaserJet_Pro_M148-M149_2 ist im Leerlauf. Aktiviert seit Fr 10 Apr 2020 17:48:39 CEST
Communication status: Good

HP_LaserJet_Pro_M148dw_978D9D_
------------------------------
Type: Unknown
Device URI: ipps://NPI978D9D.local:631/ipp/print
PPD: /etc/cups/ppd/HP_LaserJet_Pro_M148dw_978D9D_.ppd
warning: Failed to read /etc/cups/ppd/HP_LaserJet_Pro_M148dw_978D9D_.ppd ppd file
PPD Description:
Printer status: Drucker HP_LaserJet_Pro_M148dw_978D9D_ ist im Leerlauf. Aktiviert seit Fr 10 Apr 2020 20:25:36 CEST
warning: Printer is not HPLIP installed. Printers must use the hp: or hpfax: CUPS backend for HP-Devices.

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

Checking Permissions....

Checking for Configured Queues....
warning: Fail to read ppd=/etc/cups/ppd/HP_LaserJet_Pro_M148-M149.ppd file
warning: Insufficient permission to access file /etc/cups/ppd/HP_LaserJet_Pro_M148-M149.ppd
warning: Could not complete Queue(s) configuration check

Checking for HP Properitery Plugin's....
No plug-in printers are configured.

Diagnose completed...