LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
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 09-29-2006, 10:36 AM   #1
ccin1492
Member
 
Registered: Feb 2004
Location: SoCal
Distribution: openSUSE 10.3
Posts: 139

Rep: Reputation: 15
HPLIP and HPOJ


I'm tying to setup the HP Device Manager, but am having a little trouble. The installation of HPLIB went fine, but when I type "hp-check" at the command line I get this:

Code:
HPOJ running?
 error: Yes, HPOJ is running. HPLIP is not compatible with HPOJ. To run HPLIP, please remove HPOJ.
So, the question is how do I shut down HPOJ? I tried stopping the ptal deamons, but that didn't seem to work. Any ideas or thoughts will be appreciated.

Thanks!
 
Old 09-29-2006, 02:38 PM   #2
Brian1
LQ Guru
 
Registered: Jan 2003
Location: Seymour, Indiana
Distribution: Distribution: RHEL 5 with Pieces of this and that. Kernel 2.6.23.1, KDE 3.5.8 and KDE 4.0 beta, Plu
Posts: 5,700

Rep: Reputation: 65
You need to goto your /etc/rc3.d - rc5.d and change all S**hpoj to K**hpoj. Then kill the service. In suse I am not sure of an easy way to do this. Maybe there is a config feature for services under Yast utility.

Brian1
 
Old 09-29-2006, 04:45 PM   #3
ccin1492
Member
 
Registered: Feb 2004
Location: SoCal
Distribution: openSUSE 10.3
Posts: 139

Original Poster
Rep: Reputation: 15
Thanks. I'll try that tonight when I get home.
 
Old 09-30-2006, 11:38 AM   #4
ccin1492
Member
 
Registered: Feb 2004
Location: SoCal
Distribution: openSUSE 10.3
Posts: 139

Original Poster
Rep: Reputation: 15
Ok, I looked in /etc/rc.d/rc[3-5].d/ and there's no S*hpoj. There is a S*ptal though. Anyway, what is the signifacance of the S and the K. I just need to shutdown hpoj!

So here's more info:

I removed my printer from ptal setup:
Code:
%rcptal status
Checking for ptal-mlcd:                                               missing
Checking for ptal-printd:                                             missing
Checking for ptal:                                                    running
Let's run hp-check again:
Code:
%hp-check

HPLIP running?
 --> Yes, HPLIP is running (OK).

HPOJ running?
 error: Yes, HPOJ is running. HPLIP is not compatible with HPOJ. To run HPLIP, please remove HPOJ.
I says hpoj is still running, what gives. I how do I get rid of this hpoj crap?

I want to check to make sure hplip is fine:
Code:
%/etc/init.d/hplip status
hpiod (pid 7014) is running...
hpssd (pid 7018) is running...
It appears to be running. So I try hp-setup:
Code:
%hp-setup

HP Linux Imaging and Printing System (ver. 1.6.9)
Printer/Fax Setup Utility ver. 2.2

Copyright (c) 2003-6 Hewlett-Packard Development Company, LP
This software comes with ABSOLUTELY NO WARRANTY.
This is free software, and you are welcome to distribute it
under certain conditions. See COPYING file for more details.

Traceback (most recent call last):
  File "/usr/local/bin/hp-setup", line 205, in ?
    device_uri = device.getInteractiveDeviceURI(bus)
  File "/usr/local/share/hplip/base/device.py", line 177, in getInteractiveDeviceURI
    cups_printers = cups.getPrinters()
  File "/usr/local/share/hplip/prnt/cups.py", line 151, in getPrinters
    return cupsext.getPrinters()
NameError: global name 'cupsext' is not defined
Ok, so somethings wrong. I check the status of hplip again:
Code:
%/etc/init.d/hplip status
hpiod (pid 7014) is running...
hpssd is stopped
Lo and behold, hpssd is shutdown. This happens everytime. So now I not sure where to go from here. At this point any advice would be greatly appreciated. Oh, I'm running SuSE 9.2 by the way, but that shouldn't make to much difference
 
Old 09-30-2006, 01:11 PM   #5
Brian1
LQ Guru
 
Registered: Jan 2003
Location: Seymour, Indiana
Distribution: Distribution: RHEL 5 with Pieces of this and that. Kernel 2.6.23.1, KDE 3.5.8 and KDE 4.0 beta, Plu
Posts: 5,700

Rep: Reputation: 65
S means to start the service and K is to kill the service. Now rc0.9 - rc5.d are runlevels. I am basing this info on Redhat and clones of Redhat. rc1.d is single user no networking or gui. rc3.d is multi-user, networking, but no gui. rc5.d is multiuser, networking, and gui. Now when a system is booted it will goto the runlevels based on config files. So when rc3.d is called it runs all the S files starting with 00 first to 99 last. If there were any services running from runlevel 1 and you switch to run level 3 then it kill the service if it starts with a k. Now not all say rc5.d is what I mentioned above. Some distros use rc4.d and is considered the same as rc5.d.

There should be one called hpoj in /etc/init.d. Is there one there?
I only say this because it is the way it works under Redhat and clones of Redhat.
Should be able to stop the service like this ' /etc/init.d/hpoj stop '
Then restart hplip ' /etc/init.d/hplip restart '
Only way I know under non Redhat distros to disable on reboot is change S to K in the varies runlevels. Check all runlevels and make sure all are K for hpoj service. I Redhat there is a tool called chkconfig that can modify multiple runlevels at the same time.

If not there then I have no other ideas at this time. Check on the suse forum. There might be help there.
 
Old 10-01-2006, 12:10 PM   #6
ccin1492
Member
 
Registered: Feb 2004
Location: SoCal
Distribution: openSUSE 10.3
Posts: 139

Original Poster
Rep: Reputation: 15
Thanks. I'll post on SuSE.

I also posted on the HPLIP forum, but I haven't got any responses yet. I searched the internet as well and the info is very sparse on this issue. I'm kind of suprised at that; I would have thought more people would have had this issue.
 
Old 01-02-2007, 08:27 AM   #7
rogerkwells
LQ Newbie
 
Registered: Oct 2006
Posts: 2

Rep: Reputation: 0
Has there been any resolution to this. I am getting the same message about global name "cupsext" when I run hp-setup. The printers on the network are listed. When the desired one is highlighted and accepted a choice of PDD files is offered. When any one of these is selected the following appears:

[wellsr@rwells-rh ~]$ sudo hp-setup
Password:

HP Linux Imaging and Printing System (ver. 1.6.10)
Printer/Fax Setup Utility ver. 3.1

Copyright (c) 2003-6 Hewlett-Packard Development Company, LP
This software comes with ABSOLUTELY NO WARRANTY.
This is free software, and you are welcome to distribute it
under certain conditions. See COPYING file for more details.

0
Traceback (most recent call last):
File "/usr/local/share/hplip/ui/setupform.py", line 179, in showPage
self.setDefaultPrinterName()
File "/usr/local/share/hplip/ui/setupform.py", line 519, in setDefaultPrinterName
installed_print_devices = device.getSupportedCUPSDevices(['hp'])
File "/usr/local/share/hplip/base/device.py", line 294, in getSupportedCUPSDevices
printers = cups.getPrinters()
File "/usr/local/share/hplip/prnt/cups.py", line 94, in getPrinters
return cupsext.getPrinters()
NameError: global name 'cupsext' is not defined
 
Old 01-02-2007, 12:00 PM   #8
ccin1492
Member
 
Registered: Feb 2004
Location: SoCal
Distribution: openSUSE 10.3
Posts: 139

Original Poster
Rep: Reputation: 15
Yeah, I had to go into the prnt/cupsext directory (where ever you untarred the package) and then run the following:

python setup.py build
sudo python setup.py install

Then run in the following order:

1. /etc/init.d/hplip restart (just in case hpiod or hpssd are stopped)
2. hp-setup 001:002 (run lsusb and get the device and bus number)

This worked for me.

For more information or help, go to https://lists.sourceforge.net/lists/listinfo/hplip-help

Let me know if you need more detail help and might be able to provide it.

Best Regards... and Happy New Year!
 
  


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
Problem installing HPOJ mngmd Linux - Hardware 1 04-28-2005 04:10 AM
installed hpoj. now cannot start X server rekurzion Linux - Software 1 12-08-2004 02:48 AM
hpoj and libusb compiling problems jonman364 Linux - Software 1 11-09-2004 04:38 PM
The HPOJ-driver HULLU Linux - Hardware 0 03-26-2004 06:41 PM
CUPS and hpoj running at the same time? geezjan Linux - Newbie 1 08-16-2003 02:46 PM

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

All times are GMT -5. The time now is 02:27 AM.

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