Bug#961028: hplip: No scanner found: SANE cannot load the hpaio backend

2020-05-23 Thread Milomak
patch worked
On Sat, 23 May 2020 09:56:47 +0200 Florian Hatat  wrote:
> This issue has an attached patch:
> https://launchpadlibrarian.net/480406888/hplip-configure-python.patch
> I've just applied this patch to the current Debian source, and rebuilt
> the package. This fixes the issue for me.
>
> Regards,
> --
> Florian Hatat
>
>


Bug#961028: hplip: No scanner found: SANE cannot load the hpaio backend

2020-05-23 Thread Florian Hatat
Thanks to Andreas Radke, here are some extra resources:

* the same bug received a patch in Arch:
bug: https://bugs.archlinux.org/task/66704
patch:
https://git.archlinux.org/svntogit/packages.git/commit/trunk?h=packages/hplip=edd6e8898d6bfbf39888099171240f2c949f3669

* other relevant upstream issue:
https://bugs.launchpad.net/hplip/+bug/1879445

This issue has an attached patch:
https://launchpadlibrarian.net/480406888/hplip-configure-python.patch
I've just applied this patch to the current Debian source, and rebuilt
the package. This fixes the issue for me.

Regards,
-- 
Florian Hatat



Bug#961028: hplip: No scanner found: SANE cannot load the hpaio backend

2020-05-22 Thread gpe92
Package: hplip
Version: 3.20.5+dfsg0-2
Followup-For: Bug #961028

Same problem for me with an Envy 7640.

BR

-- Package-specific info:
Saving output in log file: /home/gpe/hp-check.log

HP Linux Imaging and Printing System (ver. 3.20.5)
Dependency/Version Check Utility ver. 15.1

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.

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

warning: debian-testing version is not supported. Using debian-10.3 versions 
dependencies to verify and install...

---
| SYSTEM INFO |
---

 Kernel: 5.6.0-1-amd64 #1 SMP Debian 5.6.7-1 (2020-04-29) GNU/Linux
 Host: reveillon
 Proc: 5.6.0-1-amd64 #1 SMP Debian 5.6.7-1 (2020-04-29) GNU/Linux
 Distribution: debian testing
 Bitness: 64 bit


---
| HPLIP CONFIGURATION |
---

HPLIP-Version: HPLIP 3.20.5
HPLIP-Home: /usr/share/hplip
warning: HPLIP-Installation: Auto installation is not supported for debian 
distro  testing version 

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

[hplip]
version=3.20.5

[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=no
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=no
foomatic-rip-hplip-install=no
hpcups-install=yes
cups-drv-install=yes
cups-ppd-install=no
internal-tag=3.20.5
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
class-driver=no


Current contents of '/var/lib/hp/hplip.state' file:
Plugins are not installed. Could not access file: No such file or directory

Current contents of '~/.hplip/hplip.conf' file:
[commands]
scan = /usr/bin/simple-scan %SANE_URI%

[fax]
email_address = 
voice_phone = 

[installation]
date_time = 05/23/20 01:26:22
version = 3.20.5

[last_used]
device_uri = "hp:/net/ENVY_7640_series?ip=192.168.1.4"
printer_name = ENVY_7640
working_dir = .

[polling]
device_list = 
enable = false
interval = 5

[refresh]
enable = true
rate = 30
type = 2

[settings]
systray_messages = 0
systray_visible = 0

[upgrade]
last_upgraded_time = 1424993732
latest_available_version = 3.15.11
notify_upgrade = false
pending_upgrade_time = 0


 


-
| External Dependencies |
-

 error: cups  CUPS - Common Unix Printing System
   REQUIRED1.1 -   INCOMPAT   'CUPS may not be 
installed or not running'
 gs   GhostScript - PostScript and PDF language interpreter and 
previewer REQUIRED7.059.52OK -
 xsanexsane - Graphical scanner frontend for SANE   
   OPTIONAL0.9 0.999   OK -
 scanimagescanimage - Shell scanning program
   OPTIONAL1.0 1.0.27  OK -
 dbus DBus - Message bus system 
   REQUIRED  

Bug#961028: hplip: No scanner found: SANE cannot load the hpaio backend

2020-05-22 Thread Léo Girardin
Hello,

Same bug here with a Deskjet F4500. As a workaround I can use Webscan
by entering the IP address of the printer in Firefox URL bar. 

-- 
Léo



Bug#961028: hplip: No scanner found: SANE cannot load the hpaio backend

2020-05-22 Thread Jeffrey Ratcliffe
Package: hplip
Followup-For: Bug #961028

   * What led up to the situation?

Upgrade to 3.20.5+dfsg0-2

   * What exactly did you do (or not do) that was effective (or
 ineffective)?

scanimage -L

   * What was the outcome of this action?

No scanners found

   * What outcome did you expect instead?

device `hpaio:/usb/Officejet_6500_E709a?serial=MY01C3X12W05G3' is a Hewlett-
Packard Officejet_6500_E709a all-in-one
default device is `hpaio:/usb/Officejet_6500_E709a?serial=MY01C3X12W05G3'

which is what I get again, having downgraded to 3.20.3+dfsg0-2

As it says, this is with an OfficeJet 6500



-- Package-specific info:

-- System Information:
Debian Release: bullseye/sid
  APT prefers testing-debug
  APT policy: (500, 'testing-debug'), (500, 'unstable'), (500, 'testing')
Architecture: amd64 (x86_64)
Foreign Architectures: i386

Kernel: Linux 5.6.0-1-amd64 (SMP w/8 CPU cores)
Kernel taint flags: TAINT_PROPRIETARY_MODULE, TAINT_OOT_MODULE, 
TAINT_UNSIGNED_MODULE
Locale: LANG=en_GB.UTF-8, LC_CTYPE=en_GB.UTF-8 (charmap=UTF-8), 
LANGUAGE=en_GB:en (charmap=UTF-8)
Shell: /bin/sh linked to /usr/bin/dash
Init: systemd (via /run/systemd/system)
LSM: AppArmor: enabled

Versions of packages hplip depends on:
ii  adduser3.118
ii  cups   2.3.3-1
hi  hplip-data 3.20.3+dfsg0-2
ii  libc6  2.30-8
ii  libcups2   2.3.3-1
ii  libdbus-1-31.12.16-2
hi  libhpmud0  3.20.3+dfsg0-2
ii  libpython3.8   3.8.3-1
ii  libsane1.0.27-3.2+b1
hi  libsane-hpaio  3.20.3+dfsg0-2
ii  lsb-base   11.1.0
hi  printer-driver-hpcups  3.20.3+dfsg0-2
ii  python33.8.2-3
ii  python3-dbus   1.2.16-2
ii  python3-gi 3.36.0-3
ii  python3-pexpect4.6.0-3
ii  python3-pil7.0.0-4+b1
ii  python3-reportlab  3.5.34-1
ii  wget   1.20.3-1+b2
ii  xz-utils   5.2.4-1+b1

Versions of packages hplip recommends:
ii  avahi-daemon  0.8-1
ii  policykit-1   0.105-26
hi  printer-driver-postscript-hp  3.20.3+dfsg0-2
ii  sane-utils1.0.27-3.2+b1

Versions of packages hplip suggests:
pn  hplip-doc  
pn  hplip-gui  
pn  python3-notify2
ii  system-config-printer  1.5.12-1

-- no debconf information



Bug#961028: hplip: No scanner found: SANE cannot load the hpaio backend

2020-05-20 Thread BERTRAND Joël
Hello,

Same constatation here with a LaserJet CM2320. I haven't found a 
solution

Best regards,

JB



Bug#961028: hplip: No scanner found: SANE cannot load the hpaio backend

2020-05-19 Thread Florian Hatat
Package: hplip
Version: 3.20.5+dfsg0-2
Severity: important

Dear Maintainer,

The current version of hplip seems to come with a non functional
libsane-hpaio. This bug happens with a printer-scanner model.

The CUPS print queue is configured using hp-setup and works well.

The scanner is not detected anymore since the latest upgrade from
3.20.3+dfsg0-2 to 3.20.5+dfsg0-2. Running "scanimage -L" does not
detect any device.

I've also tried (removed lines are about other backends):
# export SANE_DEBUG_DLL=128
# scanimage -d 'hpaio:/net/Officejet_Pro_8600?ip=192.168.0.21'
[sanei_debug] Setting debug level of dll to 128.
[dll] sane_init: SANE dll backend version 1.0.13 from sane-backends 1.0.27
[dll] sane_init/read_dlld: attempting to open directory `./dll.d'
[dll] sane_init/read_dlld: attempting to open directory `/etc/sane.d/dll.d'
[dll] sane_init/read_dlld: using config directory `/etc/sane.d/dll.d'
[dll] sane_init/read_dlld: considering /etc/sane.d/dll.d/hplip
[dll] sane_init/read_config: reading dll.d/hplip
[dll] add_backend: adding backend `hpaio'
[dll] sane_init/read_dlld: done.
[dll] sane_init/read_config: reading dll.conf
(...)
[dll] sane_open: trying to open `hpaio:/net/Officejet_Pro_8600?ip=192.168.0.21'
[dll] load: searching backend `hpaio' in 
`/usr/lib/x86_64-linux-gnu/sane:/usr/lib/sane'
[dll] load: trying to load `/usr/lib/x86_64-linux-gnu/sane/libsane-hpaio.so.1'
[dll] load: dlopen()ing `/usr/lib/x86_64-linux-gnu/sane/libsane-hpaio.so.1'
[dll] load: dlopen() failed (/usr/lib/x86_64-linux-gnu/sane/libsane-hpaio.so.1: 
undefined symbol: _DBG)
scanimage: open of device hpaio:/net/Officejet_Pro_8600?ip=192.168.0.21 failed: 
Invalid argument
[dll] sane_exit: exiting
[dll] sane_exit: finished

The last lines seem to explain why no scanner is detected.

I've finally manually downgraded libsane-hpaio to version 3.20.3+dfsg0-2
(and only this package, keeping 3.20.5 for other hplip related
packages). The scanner works fine again.

Regards.

-- Package-specific info:
Saving output in log file: /home/florian/hp-check.log

HP Linux Imaging and Printing System (ver. 3.20.5)
Dependency/Version Check Utility ver. 15.1

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.

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

warning: debian-testing version is not supported. Using debian-10.3 versions 
dependencies to verify and install...

---
| SYSTEM INFO |
---

 Kernel: 5.6.0-1-amd64 #1 SMP Debian 5.6.7-1 (2020-04-29) GNU/Linux
 Host: soto
 Proc: