LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 08-07-2006, 10:02 AM   #1
xhliu
LQ Newbie
 
Registered: Jul 2004
Posts: 19

Rep: Reputation: 0
all redhat-config won't run


Dear all:
My redhat-config-* recently won't run. When I run them in a terminal, it constantly reports some 'import error', saying this or that module not found. Since I know little about python, I can not figure out what the problem is. Whether there is something telling python where to find these modules? If this is the case, how to RESETUP these parameters? Any suggestion will be appreciated.
I am using RHWS3.
 
Old 08-07-2006, 11:22 AM   #2
twoHats
Member
 
Registered: Apr 2006
Location: New Hampshire, USA
Distribution: Mandriva - Kubuntu - FC4 - Mepis
Posts: 35

Rep: Reputation: 15
I'll take a guess ...

Hi xhliu ...Is this a problem with a configuration program? Are you trying to run python? If you can tell us what you are trying to do (as opposed to which program is having problems) it might help.

This sounds like missing libraries or insufficient permissions or something but we need more of that magical elixer - information!

If you have an error message - post it! (copy/paste)

Have fun
 
Old 08-07-2006, 10:47 PM   #3
xhliu
LQ Newbie
 
Registered: Jul 2004
Posts: 19

Original Poster
Rep: Reputation: 0
The following messages are what I get(login as root):
When doing the redhat-config-network:
Code:
Traceback (most recent call last):
  File "/usr/sbin/redhat-config-network-gui", line 29, in ?
    from rhpl.log import log
ImportError: No module named rhpl.log
When doing the redhat-config-package:
Code:
Unable to import gtk module.  This may be due to running without 
$DISPLAY set.  Exception was:
No module named gtk
Traceback (most recent call last):
  File "/usr/share/redhat-config-packages/MainWindow.py", line 11, in ?
    sys.exit(0)
NameError: name 'sys' is not defined
When doing the redhat-config-nfs:
Code:
Traceback (most recent call last):
  File "/usr/share/redhat-config-nfs/redhat-config-nfs.py", line 27, in ?
    from rhpl.translate import _, N_
ImportError: No module named rhpl.translate
When doing the redhat-config-services:
Code:
Traceback (most recent call last):
  File "/usr/share/redhat-config-services/serviceconf.py", line 26, in ?
    import gtk
ImportError: No module named gtk
When doing the redhat-config-users:
Code:
Traceback (most recent call last):
  File "/usr/share/redhat-config-users/redhat-config-users.py", line 25, in ?
    import libuser
ImportError: No module named libuser
And so on......

Last edited by xhliu; 08-07-2006 at 10:56 PM.
 
Old 08-09-2006, 03:46 AM   #4
twoHats
Member
 
Registered: Apr 2006
Location: New Hampshire, USA
Distribution: Mandriva - Kubuntu - FC4 - Mepis
Posts: 35

Rep: Reputation: 15
errors ...

This does look like either a permission issue or a pathing issue. The python sys.exit(0) is a standard call (assuming sys has been imported. Somthing failed in that process.

try from the cl:

Code:
#python
>>>import sys
>>>sys.exit(0)
should leave you at the command line ...
 
Old 08-09-2006, 04:36 AM   #5
xhliu
LQ Newbie
 
Registered: Jul 2004
Posts: 19

Original Poster
Rep: Reputation: 0
I tried what you said, and it just exit the python env and left me at the cmd line.
If it do be a pathing problem, how to solve it? Thanks a lot.
 
Old 08-09-2006, 06:51 AM   #6
xhliu
LQ Newbie
 
Registered: Jul 2004
Posts: 19

Original Poster
Rep: Reputation: 0
Solved! I copied the /usr/lib/python2.2/site-packages directory in another PC with the same OS version to my PC. And it worked! Anyway,thank you twohats.
 
  


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
REDHAT 6.2 config / modules : usb storage, wired network, x config audan Linux - Hardware 2 02-18-2006 06:23 PM
Can't Run Redhat Config Programs tclevela Red Hat 1 08-07-2004 02:12 AM
firstboot, redhat-config-soundcard won't run Aeiri Linux - Software 2 02-28-2004 02:27 PM
redhat-config-packages error (thinks it is redhat and not fedora) qwijibow Fedora 3 12-17-2003 09:59 PM
what's the best config to run rdesktop bhcurtiss Linux - Software 2 11-19-2003 06:05 PM


All times are GMT -5. The time now is 03:18 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration