LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware
User Name
Password
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


Reply
  Search this Thread
Old 02-04-2019, 11:53 AM   #1
kevinbenko
Member
 
Registered: Jun 2005
Location: Fargo, North Dakota
Distribution: Debian Stable {Probably forever}
Posts: 682

Rep: Reputation: 175Reputation: 175
Question 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!
 
Old 02-04-2019, 01:04 PM   #2
Altoid
Member
 
Registered: Oct 2016
Location: Southern Hemisphere
Distribution: Devuan
Posts: 112

Rep: Reputation: Disabled
Hello:
Quote:
Originally Posted by kevinbenko View Post
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:

Quote:
Note: Most HP models are supported, but a few are not. See Supported Devices at the HPLIP website for more information:
https://developers.hp.com/hp-linux-i..._devices/index
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.
 
Old 02-04-2019, 01:11 PM   #3
business_kid
LQ Guru
 
Registered: Jan 2006
Location: Ireland
Distribution: Slackware, Slarm64 & Android
Posts: 17,728

Rep: Reputation: 2668Reputation: 2668Reputation: 2668Reputation: 2668Reputation: 2668Reputation: 2668Reputation: 2668Reputation: 2668Reputation: 2668Reputation: 2668Reputation: 2668
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
  1. /usr/lib/python2.7/site-packages
  2. /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 =
 
Old 02-04-2019, 01:53 PM   #4
ferrari
LQ Guru
 
Registered: Sep 2003
Location: Auckland, NZ
Distribution: openSUSE Leap
Posts: 6,016

Rep: Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176
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
 
Old 02-04-2019, 05:03 PM   #5
kevinbenko
Member
 
Registered: Jun 2005
Location: Fargo, North Dakota
Distribution: Debian Stable {Probably forever}
Posts: 682

Original Poster
Rep: Reputation: 175Reputation: 175
Thank you all.

First, the printer is supported by Linux.

I will respond to these replies when I get home.
 
Old 02-04-2019, 05:22 PM   #6
Altoid
Member
 
Registered: Oct 2016
Location: Southern Hemisphere
Distribution: Devuan
Posts: 112

Rep: Reputation: Disabled
Hello:

Quote:
Originally Posted by kevinbenko View Post
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.
 
Old 02-04-2019, 06:29 PM   #7
kevinbenko
Member
 
Registered: Jun 2005
Location: Fargo, North Dakota
Distribution: Debian Stable {Probably forever}
Posts: 682

Original Poster
Rep: Reputation: 175Reputation: 175
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
 
Old 02-04-2019, 06:47 PM   #8
hydrurga
LQ Guru
 
Registered: Nov 2008
Location: Pictland
Distribution: Linux Mint 21 MATE
Posts: 8,048
Blog Entries: 5

Rep: Reputation: 2926Reputation: 2926Reputation: 2926Reputation: 2926Reputation: 2926Reputation: 2926Reputation: 2926Reputation: 2926Reputation: 2926Reputation: 2926Reputation: 2926
Out of interest, why is it that you think you need cupsext.so? Is something reporting it missing?
 
Old 02-04-2019, 08:30 PM   #9
kevinbenko
Member
 
Registered: Jun 2005
Location: Fargo, North Dakota
Distribution: Debian Stable {Probably forever}
Posts: 682

Original Poster
Rep: Reputation: 175Reputation: 175
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.
 
Old 02-05-2019, 05:33 AM   #10
hydrurga
LQ Guru
 
Registered: Nov 2008
Location: Pictland
Distribution: Linux Mint 21 MATE
Posts: 8,048
Blog Entries: 5

Rep: Reputation: 2926Reputation: 2926Reputation: 2926Reputation: 2926Reputation: 2926Reputation: 2926Reputation: 2926Reputation: 2926Reputation: 2926Reputation: 2926Reputation: 2926
Quote:
Originally Posted by kevinbenko View Post
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?
 
Old 02-05-2019, 08:08 AM   #11
kevinbenko
Member
 
Registered: Jun 2005
Location: Fargo, North Dakota
Distribution: Debian Stable {Probably forever}
Posts: 682

Original Poster
Rep: Reputation: 175Reputation: 175
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
 
Old 02-05-2019, 11:04 AM   #12
hydrurga
LQ Guru
 
Registered: Nov 2008
Location: Pictland
Distribution: Linux Mint 21 MATE
Posts: 8,048
Blog Entries: 5

Rep: Reputation: 2926Reputation: 2926Reputation: 2926Reputation: 2926Reputation: 2926Reputation: 2926Reputation: 2926Reputation: 2926Reputation: 2926Reputation: 2926Reputation: 2926
Quote:
Originally Posted by kevinbenko View Post
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?
 
Old 02-05-2019, 11:11 AM   #13
hydrurga
LQ Guru
 
Registered: Nov 2008
Location: Pictland
Distribution: Linux Mint 21 MATE
Posts: 8,048
Blog Entries: 5

Rep: Reputation: 2926Reputation: 2926Reputation: 2926Reputation: 2926Reputation: 2926Reputation: 2926Reputation: 2926Reputation: 2926Reputation: 2926Reputation: 2926Reputation: 2926
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".
 
Old 02-05-2019, 11:29 AM   #14
kevinbenko
Member
 
Registered: Jun 2005
Location: Fargo, North Dakota
Distribution: Debian Stable {Probably forever}
Posts: 682

Original Poster
Rep: Reputation: 175Reputation: 175
Yup... Already did that.....
 
Old 02-05-2019, 01:03 PM   #15
business_kid
LQ Guru
 
Registered: Jan 2006
Location: Ireland
Distribution: Slackware, Slarm64 & Android
Posts: 17,728

Rep: Reputation: 2668Reputation: 2668Reputation: 2668Reputation: 2668Reputation: 2668Reputation: 2668Reputation: 2668Reputation: 2668Reputation: 2668Reputation: 2668Reputation: 2668
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.
 
  


Reply

Tags
command line, cupsext.so, hp printer, ldconfig


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
[SOLVED] I have some quick questions concerning "tune2fs" and "e2fsck.*" kevinbenko Linux - General 2 12-04-2017 04:00 PM
[SOLVED] "CUPSEXT could not be loaded" error with hplip 3.11.1 on opensuse 10.1 aal Linux - Hardware 3 03-12-2011 12:53 AM
Help With Java Problem Please"""""""""""" suemcholan Linux - Newbie 1 04-02-2008 06:02 PM
hplip: hpssd needs cupsext. Where is that? gkiagia Linux - Software 4 09-02-2005 08:04 AM
Question Concerning ISO's and one quick question. evrae Linux - Software 2 06-21-2004 03:53 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware

All times are GMT -5. The time now is 06:17 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