SlackwareThis Forum is for the discussion of Slackware Linux.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
I thought my update (Current 2020-09-28 updated to 2021-02-11) had gone perfectly, but it seems I lost the scanning function on my HP Laserje MFP130 scanner
Code:
scanimage -l
Output format is not set, using pnm as a default.
scanimage: open of device hpaio:/net/HP_LaserJet_MFP_M129-M134?ip=192.168.178.103 failed: Error during device I/O
I get exactly the same error from opening xsane.
I'm not au fait with scrapping with scanners, as this thing always worked, so there was nothing to do. The scanner is on 192.168.178.103. I can ping it, and anyone on my home network can print on it, such that it's the only printer in the house now (My son got sick of buying inkjet cartridges). All the libs seem present, the only oddity I can find is that xcam exits with a segfault There is no specific file in /etc/sane.d that obviously refers to it, but there was none last time either - the thing just worked.
Maybe stupid idea; Did you try reinstalling it (i.e. setting it up anew) via cups, maybe all kinds of stuff have changed in the mean time? Or does it only works via sane??
@BrunoLafleur: I did a full backup of the original install and that xcam segfaults also Thx anyway.
Quote:
Originally Posted by Emerson
There is hp-doctor utility in hplip package, have you tried to run it?
I'm really just a scanner user, but I ran it. Some interesting results
Code:
error: This distro (i.e slackware 14.2) is either deprecated or not yet supported.
The diagnosis is limited on unsupported platforms. Do you want to continue?(y=yes*, n=no):y
…
Checking for Dependencies....
warning: 8-14.2 version is not supported. Using 8-12.1 versions dependencies to verify and install...
…
warning: HPLIP-Installation: Auto installation is not supported for 8 distro 14.2 version
…
error: policykit PolicyKit - Administrative policy framework OPTIONAL - 0.118 MISSING 'policykit needs to be installed'
…
error: avahi-utils avahi-utils OPTIONAL - - MISSING 'avahi-utils needs to be installed'
…
Polkit is there. I'm guilty as charged on avahi. They seem to have vanished.
Quote:
bash-5.1$ ls -lh *polkit*
-rw-r--r-- 1 root root 8.4K Feb 15 13:25 polkit-0.118-x86_64-4
-rw-r--r-- 1 root root 1.4K Feb 16 13:28 polkit-compat32-0.118-x86_64-5compat32
-rw-r--r-- 1 root root 6.2K Feb 15 13:25 polkit-gnome-0.105-x86_64-3
-rw-r--r-- 1 root root 2.9K Feb 15 13:25 polkit-qt-1-0.113.0-x86_64-2
It appears to have puked near the end for the lack of PyQt4. I did grep the iso ChangeLog.txt for it, and it appears to have been removed If it's a 'must-have' I can bang it in again. Is it?
I installed PyQrt-4,12.3 before I saw your comment
Optional for sane maybe, but it stops hp-doctor thusly (even with PyQt-4.12.3 installed)
Code:
Traceback (most recent call last):
File "/usr/bin/hp-doctor", line 297, in <module>
num_errors, num_warns = dep.validate(DEPENDENCY_RUN_AND_COMPILE_TIME, False)
File "/usr/share/hplip/check.py", line 367, in validate
self.__update_deps_info(supported_distro_vrs, dep,
File "/usr/share/hplip/check.py", line 210, in __update_deps_info
installed_ver = self.core.version_func[deps_info[6]]()
File "/usr/share/hplip/installer/dcheck.py", line 303, in get_pyQt4_version
from PyQt4 import QtCore
ImportError: cannot import name 'QtCore' from 'PyQt4' (unknown location)
bash-5.1$
Strangely enough hplip seems to depend on it in Linux. I have an HP printer/scanner. When I purchased it I logged into its web interface and turned off a few things, including automatic network discovery. After that I started looking how to get it working, and it did not. Totally desperate I installed Windows 7 into VirtualBox and it was able to print and scan. So I knew the hardware was good. I got it finally working, but I learned the hard way automatic network discovery is not optional for Linux driver, it must be enabled. Which hints avahi isn't optional, either.
PyQt4 needs qt4 which is no more in Slackware current since KDE5. It can be put aside qt5 but take some resources to compile (2 Go /tmp and 1 hour on a 8 thread machine).
sane has been recompiled but maybe there is some problems with the new stack ot the current.
I can't test because I have kept KDE4 and Qt4 and have no KDE5 on my latest Slackcurrent. I recompiled my KDE4 like said in other posts.
PyQt4 needs qt4 which is no more in Slackware current since KDE5. It can be put aside qt5 but take some resources to compile (2 Go /tmp and 1 hour on a 8 thread machine).
sane has been recompiled but maybe there is some problems with the new stack ot the current.
I can't test because I have kept KDE4 and Qt4 and have no KDE5 on my latest Slackcurrent. I recompiled my KDE4 like said in other posts.
Now you know why I keep isos . I have qt-4.8.7 from the 2020-09-28 iso. That went in, but didn't help much. I think it may have got further along, but I'm not sure
Code:
Traceback (most recent call last):
File "/usr/bin/hp-doctor", line 297, in <module>
num_errors, num_warns = dep.validate(DEPENDENCY_RUN_AND_COMPILE_TIME, False)
File "/usr/share/hplip/check.py", line 367, in validate
self.__update_deps_info(supported_distro_vrs, dep,
File "/usr/share/hplip/check.py", line 210, in __update_deps_info
installed_ver = self.core.version_func[deps_info[6]]()
File "/usr/share/hplip/installer/dcheck.py", line 303, in get_pyQt4_version
from PyQt4 import QtCore
ImportError: cannot import name 'QtCore' from 'PyQt4' (unknown location)
I don't have the machine for big compiles. I don't need to fix qt, just the scanner.
Last edited by business_kid; 02-25-2021 at 12:00 PM.
What version of hplip you have there, I have 3.20.11 and it is happy with Qt5.
I have 3.20.6, from 10 days ago. It would be unusual to shift QT versions with such a small version bump, but I'll update hplip first thing tmw, remove qt4 & PyQt4, and post results. It's late here.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.