LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 02-25-2021, 04:39 AM   #1
business_kid
LQ Guru
 
Registered: Jan 2006
Location: Ireland
Distribution: Slackware, Slarm64 & Android
Posts: 16,297

Rep: Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322
Scanner Problem after update


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.

Any ideas what to try next?
 
Old 02-25-2021, 05:03 AM   #2
brobr
Member
 
Registered: Oct 2003
Location: uk
Distribution: Slackware
Posts: 974

Rep: Reputation: 239Reputation: 239Reputation: 239
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??

Last edited by brobr; 02-25-2021 at 05:04 AM.
 
Old 02-25-2021, 07:30 AM   #3
BrunoLafleur
Member
 
Registered: Apr 2020
Location: France
Distribution: Slackware
Posts: 399

Rep: Reputation: 364Reputation: 364Reputation: 364Reputation: 364
Has the package sane-1.0.31-x86_64-3 been upgraded ?
 
Old 02-25-2021, 07:33 AM   #4
business_kid
LQ Guru
 
Registered: Jan 2006
Location: Ireland
Distribution: Slackware, Slarm64 & Android
Posts: 16,297

Original Poster
Rep: Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322
Thx for reply.

The printer/scanner/fax sits on the network. Cups can print to it; so can windows. I have no issue with cups so see no need to reinstall it.

I have just used sane, which reads it off the network. Is there something else?

EDIT:@BrunoLafleur: the packages are
Quote:
/var/log/packages/python-sane-2.9.1-x86_64-2 /var/log/packages/sane-compat32-1.0.31-x86_64-3compat32
/var/log/packages/sane-1.0.31-x86_64-2 /var/log/packages/xsane-0.999-x86_64-4
They have all been updated although the versions are nearly all identical. I can tell by the dates

Last edited by business_kid; 02-25-2021 at 08:16 AM.
 
Old 02-25-2021, 07:42 AM   #5
BrunoLafleur
Member
 
Registered: Apr 2020
Location: France
Distribution: Slackware
Posts: 399

Rep: Reputation: 364Reputation: 364Reputation: 364Reputation: 364
xsane call sane which has xcam you said is segfaulting. That's why I think about it.

Maybe some packages were not updated correctly ?

I use scanners with sane / xsane / gimp and they works well (HP Photosmart 5525 and HP Envy PRO 6430).
 
Old 02-25-2021, 08:07 AM   #6
Emerson
LQ Sage
 
Registered: Nov 2004
Location: Saint Amant, Acadiana
Distribution: Gentoo ~amd64
Posts: 7,661

Rep: Reputation: Disabled
There is hp-doctor utility in hplip package, have you tried to run it?
 
Old 02-25-2021, 09:21 AM   #7
business_kid
LQ Guru
 
Registered: Jan 2006
Location: Ireland
Distribution: Slackware, Slarm64 & Android
Posts: 16,297

Original Poster
Rep: Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322
@BrunoLafleur: I did a full backup of the original install and that xcam segfaults also Thx anyway.

Quote:
Originally Posted by Emerson View Post
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?
 
Old 02-25-2021, 09:32 AM   #8
Emerson
LQ Sage
 
Registered: Nov 2004
Location: Saint Amant, Acadiana
Distribution: Gentoo ~amd64
Posts: 7,661

Rep: Reputation: Disabled
Ignore Qt errors, Qt is optional.
 
Old 02-25-2021, 10:17 AM   #9
business_kid
LQ Guru
 
Registered: Jan 2006
Location: Ireland
Distribution: Slackware, Slarm64 & Android
Posts: 16,297

Original Poster
Rep: Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322
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$
 
Old 02-25-2021, 10:17 AM   #10
bassmadrigal
LQ Guru
 
Registered: Nov 2003
Location: West Jordan, UT, USA
Distribution: Slackware
Posts: 8,792

Rep: Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656
Quote:
Originally Posted by business_kid View Post
Polkit is there. I'm guilty as charged on avahi. They seem to have vanished.
Avahi is not a part of Slackware... I believe it just allows the hp utility to scan the network for printers.
 
Old 02-25-2021, 10:35 AM   #11
Emerson
LQ Sage
 
Registered: Nov 2004
Location: Saint Amant, Acadiana
Distribution: Gentoo ~amd64
Posts: 7,661

Rep: Reputation: Disabled
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.
 
1 members found this post helpful.
Old 02-25-2021, 11:11 AM   #12
BrunoLafleur
Member
 
Registered: Apr 2020
Location: France
Distribution: Slackware
Posts: 399

Rep: Reputation: 364Reputation: 364Reputation: 364Reputation: 364
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.
 
Old 02-25-2021, 11:56 AM   #13
business_kid
LQ Guru
 
Registered: Jan 2006
Location: Ireland
Distribution: Slackware, Slarm64 & Android
Posts: 16,297

Original Poster
Rep: Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322
Quote:
Originally Posted by BrunoLafleur View Post
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.
 
Old 02-25-2021, 12:00 PM   #14
Emerson
LQ Sage
 
Registered: Nov 2004
Location: Saint Amant, Acadiana
Distribution: Gentoo ~amd64
Posts: 7,661

Rep: Reputation: Disabled
What version of hplip you have there, I have 3.20.11 and it is happy with Qt5.
 
Old 02-25-2021, 01:21 PM   #15
business_kid
LQ Guru
 
Registered: Jan 2006
Location: Ireland
Distribution: Slackware, Slarm64 & Android
Posts: 16,297

Original Poster
Rep: Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322
Quote:
Originally Posted by Emerson View Post
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.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Scanner help.. failed to open device snapscan/dev/usb/scanner johnathan Linux - Hardware 2 10-12-2007 06:06 PM
Scanner/Printer Combo Unit - Scanner Works - Printer Does Not rrrssssss Linux - Hardware 1 03-04-2007 10:49 PM
Qmail-scanner: custom scanner cuigri Linux - Software 1 10-18-2004 05:46 AM
can't locate module scanner > how to get scanner work? b0uncer Linux - Hardware 1 10-26-2003 06:50 AM
Scanner driver for USB scanner rros Linux - Newbie 1 04-23-2001 12:30 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 03:25 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration