Linux - Hardware This forum is for Hardware issues.
Having trouble installing a piece of hardware? Want to know if that peripheral is compatible with 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.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
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.
|
 |
|
02-04-2019, 11:53 AM
|
#1
|
Member
Registered: Jun 2005
Location: Fargo, North Dakota
Distribution: Debian Stable {Probably forever}
Posts: 682
Rep: 
|
Question Concerning An HP Printer and "cupsext.so"
I bought a new laser printer, there is a configuration file/package called "hplip" in/on Debian.
I have a problem with this file called "cupsext.so":
It seems that Debian doesn't have this file in ANY package. BUT I did get a copy from another distribution.
SOOOOO......
I have the "supsext.so" file, I put it (temporarily) in the /lib directory, but I have a question or two.
1: What directory should I put this file?
2: How do I get the system to recognize this file exists. (I probably have to use "ldconfig", but I have run it, but no effect. So, what is the exact command line??)
Thank you for your help, and have a good day!
|
|
|
02-04-2019, 01:04 PM
|
#2
|
Member
Registered: Oct 2016
Location: Southern Hemisphere
Distribution: Devuan
Posts: 112
Rep: 
|
Hello:
Quote:
Originally Posted by kevinbenko
I bought a new laser printer, there is a configuration file/package called "hplip" ...
|
Have to ask: have you checked to see if your new laser printer is actually supported by HPLIP at this time?
From https://launchpad.net/hplip:
If it is not, the other option you can use is CUPS.
https://www.cups.org/
Cheers,
A.
Last edited by Altoid; 02-04-2019 at 01:06 PM.
|
|
|
02-04-2019, 01:11 PM
|
#3
|
LQ Guru
Registered: Jan 2006
Location: Ireland
Distribution: Slackware, Slarm64 & Android
Posts: 17,728
|
I (On Slackware64) have cupsext.so in /usr/lib64/python3.6/site-packages.
I would suggest it's probably a library relied upon by some python module. Your(booting a VM in your honour) correct location for it might be - /usr/lib/python2.7/site-packages
- /usr/lib/python3.6/site-packages
Presuming I have your python versions correct. You can check them running
Code:
python2 --version
python3 --version
ldconfig only outputs mistakes. No output = 
|
|
|
02-04-2019, 01:53 PM
|
#4
|
LQ Guru
Registered: Sep 2003
Location: Auckland, NZ
Distribution: openSUSE Leap
Posts: 6,016
|
Hmmm....AFAIU that should be supplied as part of the hplip package?
Code:
dpkg-query -L hplip
On my RPM-based openSUSE distro, a search of the installed hplip package reports
Code:
/usr/lib64/python3.6/site-packages/cupsext.so
|
|
|
02-04-2019, 05:03 PM
|
#5
|
Member
Registered: Jun 2005
Location: Fargo, North Dakota
Distribution: Debian Stable {Probably forever}
Posts: 682
Original Poster
Rep: 
|
Thank you all.
First, the printer is supported by Linux.
I will respond to these replies when I get home.
|
|
|
02-04-2019, 05:22 PM
|
#6
|
Member
Registered: Oct 2016
Location: Southern Hemisphere
Distribution: Devuan
Posts: 112
Rep: 
|
Hello:
Quote:
Originally Posted by kevinbenko
First, the printer is supported by Linux.
|
OK ...
Then it is as business_kid says, a python issue.
See here:
https://developers.hp.com/hp-linux-i...bleshootErrors
Quote:
ImportError:No Module named 'cupsext'
Notes:
Extension modules are missing from the current Python path "/usr/lib/python<version>/dist-packages".
This happens when HPLIP is installed using one python version and you are running HPLIP using another python version.
For example, HPLIP was installed using python2.x and running the tools using python3.x
Please ensure to run HPLIP tools using the same version of Python which was used for HPLIP installation or re-install HPLIP from https://developers.hp.com/hp-linux-i...nting/gethplip
|
Cheers,
A.
|
|
|
02-04-2019, 06:29 PM
|
#7
|
Member
Registered: Jun 2005
Location: Fargo, North Dakota
Distribution: Debian Stable {Probably forever}
Posts: 682
Original Poster
Rep: 
|
A weird thing......
I "sort of" have a "cupsext(blahblahblah).so" in my "/usr" directory named:
"/usr/lib/python3/dist-packages/cupsext.cpython-37m-x86_64-linux-gnu.so"
Is THAT the file?
And why is there a bunch of {stuff} in the middle of the file name???
Would it be a good idea to make a link (soft or hard) from THAT file to "cupsext.so" ?????
Last edited by kevinbenko; 02-04-2019 at 06:32 PM.
Reason: adding info
|
|
|
02-04-2019, 06:47 PM
|
#8
|
LQ Guru
Registered: Nov 2008
Location: Pictland
Distribution: Linux Mint 21 MATE
Posts: 8,048
|
Out of interest, why is it that you think you need cupsext.so? Is something reporting it missing?
|
|
|
02-04-2019, 08:30 PM
|
#9
|
Member
Registered: Jun 2005
Location: Fargo, North Dakota
Distribution: Debian Stable {Probably forever}
Posts: 682
Original Poster
Rep: 
|
Yes. The HP-provided hplip said it so. It was the, I guess, final process in the script when it "screamed and died"
Also, I made a hard-link from THAT file to cupsext.so
It also failed.
|
|
|
02-05-2019, 05:33 AM
|
#10
|
LQ Guru
Registered: Nov 2008
Location: Pictland
Distribution: Linux Mint 21 MATE
Posts: 8,048
|
Quote:
Originally Posted by kevinbenko
Yes. The HP-provided hplip said it so. It was the, I guess, final process in the script when it "screamed and died"
Also, I made a hard-link from THAT file to cupsext.so
It also failed.
|
Would it be possible to run hplip again (without that hard link) and paste the exact error message here, preferably with the preceding output for context?
|
|
|
02-05-2019, 08:08 AM
|
#11
|
Member
Registered: Jun 2005
Location: Fargo, North Dakota
Distribution: Debian Stable {Probably forever}
Posts: 682
Original Poster
Rep: 
|
OK. The final output is:
POST-BUILD COMMANDS
-------------------
su -c "/usr/bin/kill 25185" (Post-build step 1)
su -c "/usr/bin/kill 25186" (Post-build step 2)
su -c "/usr/bin/kill 24580" (Post-build step 3)
su -c "/usr/bin/kill 25169" (Post-build step 4)
su -c "/usr/bin/kill 24581" (Post-build step 5)
warning: CUPSEXT could not be loaded. Please check HPLIP installation.
kevin@Shatner: ~/Desktop
|
|
|
02-05-2019, 11:04 AM
|
#12
|
LQ Guru
Registered: Nov 2008
Location: Pictland
Distribution: Linux Mint 21 MATE
Posts: 8,048
|
Quote:
Originally Posted by kevinbenko
OK. The final output is:
POST-BUILD COMMANDS
-------------------
su -c "/usr/bin/kill 25185" (Post-build step 1)
su -c "/usr/bin/kill 25186" (Post-build step 2)
su -c "/usr/bin/kill 24580" (Post-build step 3)
su -c "/usr/bin/kill 25169" (Post-build step 4)
su -c "/usr/bin/kill 24581" (Post-build step 5)
warning: CUPSEXT could not be loaded. Please check HPLIP installation.
kevin@Shatner: ~/Desktop
|
How did you equate "CUPSEXT" with needing to have cupsext.so? It may well do so, but I'm interested in how you decided that was the case.
Also, what command did you run to generate this error. What are you building?
|
|
|
02-05-2019, 11:11 AM
|
#13
|
LQ Guru
Registered: Nov 2008
Location: Pictland
Distribution: Linux Mint 21 MATE
Posts: 8,048
|
It might also be a good idea to do a web search for the exact error message in quotes, i.e."CUPSEXT could not be loaded. Please check HPLIP installation".
|
|
|
02-05-2019, 11:29 AM
|
#14
|
Member
Registered: Jun 2005
Location: Fargo, North Dakota
Distribution: Debian Stable {Probably forever}
Posts: 682
Original Poster
Rep: 
|
Yup... Already did that.....
|
|
|
02-05-2019, 01:03 PM
|
#15
|
LQ Guru
Registered: Jan 2006
Location: Ireland
Distribution: Slackware, Slarm64 & Android
Posts: 17,728
|
Why not reinstall hplip to be sure to be sure, and run hp-doctor. My printing works fine, but it thinks I'm on Slackware-14.2, my printer is not installed via it's app (I think it was), and that (summarizing) I don't have what I don't want. But it at least checked stuff.
|
|
|
All times are GMT -5. The time now is 06:17 PM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|