LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   ImportError: No module named gconf (https://www.linuxquestions.org/questions/linux-software-2/importerror-no-module-named-gconf-141124/)

linorg 02-01-2004 04:34 PM

ImportError: No module named gconf
 
hi
i just installed a software called gretools that helps in vocabulary building
link http://theory.cs.iitm.ernet.in/~arvindn/gretools/

i installed the sw from the tarball provided

now when i tried to run the prg from cmd linr by typing gretools
i get the following error message

[root@cyborg gretools-1.2.3]# gretools
Traceback (most recent call last):
File "/usr/local/bin/gretools", line 8, in ?
import gretools
File "/usr/local/lib/python2.2/site-packages/gretools/gretools.py", line 3, in ?
import gobject, gtk, gtk.glade, pango, gnome, gnome.ui, gconf, sys, string,
random, time, re, gettext
ImportError: No module named gconf

could somebody please help me out in getting rid of this prob..
:newbie:
linorg

Scruff 02-01-2004 04:51 PM

Looks like you need to have gconf installed (should be already...). First, try 'locate gconf' and see if its there. If it is, you might try editing gretools.py to look in the proper spot.

Otherwise, here is a link to the Gconf package http://linux.tucows.com/preview/31474.html

linorg 02-01-2004 05:07 PM

hi Scruff
i did a search on gconf
folder gconf is prsent in /etc
/usr/share
/usr/include/gconf1
/usr/include/gconf2

culd u please tell hoe to modify the gretools.py file

thanks
linorg

Scruff 02-01-2004 05:53 PM

I am going to download it now to take a look at it.

In the meantime, do 'ps aux | grep gconf' to see if you have any gconf processes running. I have this one:
scruff 14446 0.0 0.4 5644 2220 ? S 12:02 0:00 /usr/libexec/gconfd-2 22

Scruff 02-01-2004 06:00 PM

Wow... The site hosting this app is s-l-o-w.....
Took 5 minutes to load the page, and I am now waiting 5+ for the download to start.
What distro are you running?

Scruff 02-01-2004 06:16 PM

I got it, and it wont even untar properly:
scruff@dabasement:~/source$ tar zxvf gretools-1.2.3.tar.gz
gretools-1.2.3/
gretools-1.2.3/po/
gretools-1.2.3/po/ChangeLog
gretools-1.2.3/po/Makefile.in.in
gretools-1.2.3/po/POTFILES.in
gretools-1.2.3/po/gretools.pot
gretools-1.2.3/README
gretools-1.2.3/gretools.py

gzip: stdin: unexpected end of file
tar: Unexpected EOF in archive
tar: Unexpected EOF in archive
tar: Error is not recoverable: exiting now

I was able to read gretools.py though. I don't know Python but the line in question is pretty straightforward:
Code:

import gobject, gtk, gtk.glade, pango, gnome, gnome.ui, gconf, sys, string, random, time, re, gettext
For me, the script stalled on 'import gobject' and I have no idea why. I have the full gobject file.

Hopefully someone more knowledgable will come along with the answer. The fact that it didn't untar properly for me at least, could very well be a problem. The site said it was tested on Redhat and since I am on Slack that could also be a problem. Shouldn't be, but...

linorg 02-02-2004 11:12 AM

hi
schruff
my distro is redhat 8

thanks for the effort
linorg

linorg 02-02-2004 01:56 PM

problem solved!!!
 
the error was basically because
gconf python was not installed

Scruff 02-02-2004 04:37 PM

Right on!


All times are GMT -5. The time now is 08:32 AM.