LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices

Reply
 
Search this Thread
Old 09-01-2005, 08:53 AM   #1
gkiagia
Member
 
Registered: Oct 2003
Location: Greece
Distribution: Debian sid
Posts: 248

Rep: Reputation: 30
hplip: hpssd needs cupsext. Where is that?


I installed hplip from rpm packages for suse that I found on rpmseek.com and I want to set up my dj3745 printer.
However, hpssd won't start. It says:
Quote:
# /etc/init.d/hplip restart
Stopping hpiod: /etc/profile: line 285: export: `PATH###': not a valid identifier
[ OK ]
Stopping hpssd: /etc/profile: line 285: export: `PATH###': not a valid identifier
[ OK ]
Starting hpiod: [ OK ]
Starting hpssd: [FAILED]
Note: You may have to restart the cupsd.
I tried to run hpssd manually by running /usr/share/hplip/hpssd.py and it says:
Quote:
# ./hpssd.py
Traceback (most recent call last):
File "./hpssd.py", line 50, in ?
from base import async, utils, database, status, pml, slp
File "/usr/share/hplip/base/database.py", line 38, in ?
import device
File "/usr/share/hplip/base/device.py", line 38, in ?
from prnt import pcl, ldl, cups
File "/usr/share/hplip/prnt/cups.py", line 38, in ?
import cupsext
ImportError: No module named cupsext
I guess it tries to load a file called cupsext.py and it can't find it. I searched in /usr but I can't find it. Am I missing something?

Help!

Edit:
Wrong, there it is: /usr/lib/python2.4/site-packages/cupsext.so
Is this what it tries to load? Why it cant load it?

Last edited by gkiagia; 09-01-2005 at 09:04 AM.
 
Old 09-01-2005, 09:05 AM   #2
kencaz
Senior Member
 
Registered: Mar 2005
Location: Las Vegas, NV
Distribution: Mandriva Slackware FreeBSD
Posts: 1,468

Rep: Reputation: 47
not sure about the particular "cupsext.py" location or purpose, however, here are some usefull CUPS commands:

service cups status

/etc/init.d/cupsys start

/etc/init.d/cupsys restart

Some more useful commands:
To show the accepting state of printers: lpstat -a
To show printers with their attached devices: lpstat -v
To list queued print jobs: lpstat -o
To cancel all print jobs: cancel -a Okipage8z
To cancel print job 37: cancel 37
To delete a printer: lpadmin -x Okipage8z
To view the CUPS log file: cat /var/log/cups/error_log

KC
 
Old 09-01-2005, 09:26 AM   #3
gkiagia
Member
 
Registered: Oct 2003
Location: Greece
Distribution: Debian sid
Posts: 248

Original Poster
Rep: Reputation: 30
Well, I fixed it. I just copied cupsext.so from /usr/lib/python2.4/site-packages/ to /usr/share/hplip.
So simple!!!
 
Old 09-01-2005, 09:42 AM   #4
orgcandman
Member
 
Registered: May 2002
Location: dracut MA
Distribution: Ubuntu; PNE-LE; LFS (no book)
Posts: 594

Rep: Reputation: 102Reputation: 102
I would remove the copied file, and put up a symlink. that way, after upgrades, you can still maintain interoperability.
 
Old 09-02-2005, 08:04 AM   #5
gkiagia
Member
 
Registered: Oct 2003
Location: Greece
Distribution: Debian sid
Posts: 248

Original Poster
Rep: Reputation: 30
Hmm, that's right. I'll do it.
 
  


Reply


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
hplip 0.9.3 problems on Slackware 10.1 jmp1prs Slackware 34 03-05-2006 01:43 AM
hplip have not worked :( mbt Linux - Hardware 2 12-03-2005 10:49 AM
Hplip thoyyib Linux - Hardware 1 12-01-2005 12:35 PM
HPLIP for hp usb all-in-one simcox1 Slackware 1 10-03-2005 12:44 AM
HPLIP toolbox zba78 Slackware 0 02-10-2005 05:25 AM


All times are GMT -5. The time now is 07:38 PM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration