View previous topic :: View next topic |
Author |
Message |
lembark n00b
Joined: 08 Aug 2014 Posts: 3 Location: St. Louis, MO, USA
|
Posted: Sat Sep 15, 2018 5:11 pm Post subject: cups prints, hplip fails scanning for lack of "scanext& |
|
|
Usual situation: I can print to an HP printer via cups but hplip cannot
access it, keeps having problems with "sanext" and "scanimage -L" or
"xsane -d hp://net/..." do not find the device.
Q: What is "scanext"?
Q: What module provides it?
Q: What module provides pythons "reportlab"?
Q: What module provides "Python Imaging Library"?
emerge --search & equery belongs gets me nada for reportlab, etc.
Bulk output:
# emerge -pv hplip; https://pastebin.com/zEasyG6i
$ emerge --info; https://pastebin.com/Es2vrUtu
# hp-check: https://pastebin.com/hAqBS606
First things: "scanner" is in the use flags, language is UTF8, printer is online at the fixed address.
Looking at a number of posts, e.g.
https://forums.gentoo.org/viewtopic-t-1063138-highlight-hplip+scanext.html
https://alioth-lists.debian.net/pipermail/sane-devel/2009-February/024117.html
I've checked and LANG & LC_ALL are both utf8:
$ echo "'$LANG' '$LC_ALL'";
'en_US.UTF-8' 'en_US.UTF-8'
Checking /etc/sane.d/dll.conf:
# Add support for the HP-specific backend. Needs net-print/hplip installed.
hpaio
and net.conf has the address:
172.16.1.9
CUPS config for the printer:
Color (Idle, Accepting Jobs, Not Shared, Server Default)
Description: Color
Location: Office
Driver: HP LJ 300-400 color MFP M375-M475 Postscript (recommended) (color, 2-sided printing)
Connection: hp:/net/HP_LaserJet_400_colorMFP_M475dw?ip=172.16.1.9
Defaults: job-sheets=none, none media=na_letter_8.5x11in sides=two-sided-long-edge
the "hp:/net/HP_..." seems reasonable. I've tried removing the "HP_",
adding it back without any effect.
I can access the printers config web page via http://172.16.1.9 so the
beast is online at that address.
hplip & plugins are installed:
Code: |
* net-print/hplip
Latest version available: 3.18.6
Latest version installed: 3.18.6
Size of files: 22,070 KiB
Homepage: https://developers.hp.com/hp-linux-imaging-and-printing
Description: HP Linux Imaging and Printing - Print, scan, fax drivers and service tools
License: GPL-2
* net-print/hplip-plugin
Latest version available: 3.18.6
Latest version installed: 3.18.6
Size of files: 2,018 KiB
Homepage: https://developers.hp.com/hp-linux-imaging-and-printing
Description: Proprietary plugins and firmware for HPLIP
License: hplip-plugin
|
along with sane backends:
Code: |
* media-gfx/sane-backends
Latest version available: 1.0.27-r1
Latest version installed: 1.0.27-r1
Size of files: 6,280 KiB
Homepage: http://www.sane-project.org/
Description: Scanner Access Now Easy - Backends
License: GPL-2 public-domain
|
Example from scanimage:
$ scanimage -d hp:/net/HP_LaserJet_400_colorMFP_M475dw?ip=172.16.1.9;
scanimage: open of device hp:/net/HP_LaserJet_400_colorMFP_M475dw?ip=172.16.1.9 failed: Invalid argument
$ scanimage -d hpaio:/net/HP_LaserJet_400_colorMFP_M475dw?ip=172.16.1.9;
scanimage: open of device hpaio:/net/HP_LaserJet_400_colorMFP_M475dw?ip=172.16.1.9 failed: Invalid argument
I get the familliar message about scanext:
$ hp-scan -h
Traceback (most recent call last):
File "/usr/bin/hp-scan", line 40, in <module>
import scanext
ModuleNotFoundError: No module named 'scanext'
Looking at hp-check output:
The issue is not a personal configuration issue:
Current contents of '~/.hplip/hplip.conf' file:
warning: Could not access file: No such file or directory
Some python lib's seem to be missing, though I don't know if these
affect use of "sanext":
python3X Python 2.2 or greater - Python programming language REQUIRED 2.2 3.4.8 OK -
error: python3-notify2 Python libnotify - Python bindings for the libnotify Desktop notifications OPTIONAL - - MISSING 'python3-notify2 needs to be installed'
error: python3-pyqt4-dbus PyQt 4 DBus - DBus Support for PyQt4 OPTIONAL 4.0 - MISSING 'python3-pyqt4-dbus needs to be installed'
error: python3-pyqt4 PyQt 4- Qt interface for Python (for Qt version 4.x) REQUIRED 4.0 - MISSING 'python3-pyqt4 needs to be installed'
The system was converted to Qt5 a while back, so there should not be
any remaining Qt4 bindings; not sure if "notify2" is handled via:
* dev-python/inotifyx
Latest version available: 0.2.2
Latest version installed: 0.2.2
if it is then hp-check may have a bug, or is there something more that
provides the notify bindings?
I'm also not sure what provides:
python3-pil PIL - Python Imaging Library (required for commandline scanning with hp-scan) OPTIONAL - 1.1.7 OK -
error: python3-reportlab Reportlab - PDF library for Python OPTIONAL 2.0 - MISSING 'python3-reportlab needs to be installed'
and whether it would prevent finding the scanner (vs. blowing up when
using it).
Any further suggestions would be welcome.
Thank you |
|
Back to top |
|
|
ct85711 Veteran
Joined: 27 Sep 2005 Posts: 1791
|
|
Back to top |
|
|
NeddySeagoon Administrator
Joined: 05 Jul 2003 Posts: 54220 Location: 56N 3W
|
Posted: Sat Sep 15, 2018 8:22 pm Post subject: |
|
|
lembark,
Quote: | Q: What is "scanext"?
Q: What module provides it?
Q: What module provides pythons "reportlab"?
Q: What module provides "Python Imaging Library"? |
Code: | $ eix reportlab
* dev-python/reportlab
$ eix pillow
* dev-python/pillow
Available versions: 3.4.2-r1 4.3.0-r2 (~)4.3.0-r3 (~)5.2.0 {doc examples imagequant jpeg jpeg2k lcms qt5 test tiff tk truetype webp zlib PYTHON_TARGETS="pypy python2_7 python3_4 python3_5 python3_6 python3_7"}
Homepage: https://python-pillow.org/
Description: Python Imaging Library (fork) |
You should not need to install either of those by hand. They should be dependencies if they are needed.
Looking in the hplip-3.18.6.ebuild
Code: | scanner? (
>=dev-python/reportlab-3.2[${PYTHON_USEDEP}]
>=dev-python/pillow-3.1.1[${PYTHON_USEDEP}] |
That suggests you have installed hplip without USE=scanner. _________________ Regards,
NeddySeagoon
Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail. |
|
Back to top |
|
|
lembark n00b
Joined: 08 Aug 2014 Posts: 3 Location: St. Louis, MO, USA
|
Posted: Mon Sep 17, 2018 12:49 pm Post subject: [solved] hplip fails with missing "scanext" |
|
|
Found it: make.conf had "scanner,".
grep scanner returned a line, I missed the comma. Removing it, emerge --onshot hplip fixed it.
Thank you.
I'd never used "eix" before, thanks for that. |
|
Back to top |
|
|
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
|