LinuxQuestions.org
View the Most Wanted LQ Wiki articles.
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 02-01-2004, 04:34 PM   #1
linorg
Member
 
Registered: Nov 2003
Location: delhi
Distribution: redhat 8.0 ,fedora
Posts: 32

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

linorg
 
Old 02-01-2004, 04:51 PM   #2
Scruff
Member
 
Registered: Oct 2002
Location: Stoughton, MA
Distribution: Gentoo x86_64 & PPC
Posts: 949

Rep: Reputation: 30
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
 
Old 02-01-2004, 05:07 PM   #3
linorg
Member
 
Registered: Nov 2003
Location: delhi
Distribution: redhat 8.0 ,fedora
Posts: 32

Original Poster
Rep: Reputation: 15
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
 
Old 02-01-2004, 05:53 PM   #4
Scruff
Member
 
Registered: Oct 2002
Location: Stoughton, MA
Distribution: Gentoo x86_64 & PPC
Posts: 949

Rep: Reputation: 30
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
 
Old 02-01-2004, 06:00 PM   #5
Scruff
Member
 
Registered: Oct 2002
Location: Stoughton, MA
Distribution: Gentoo x86_64 & PPC
Posts: 949

Rep: Reputation: 30
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?
 
Old 02-01-2004, 06:16 PM   #6
Scruff
Member
 
Registered: Oct 2002
Location: Stoughton, MA
Distribution: Gentoo x86_64 & PPC
Posts: 949

Rep: Reputation: 30
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...
 
Old 02-02-2004, 11:12 AM   #7
linorg
Member
 
Registered: Nov 2003
Location: delhi
Distribution: redhat 8.0 ,fedora
Posts: 32

Original Poster
Rep: Reputation: 15
hi
schruff
my distro is redhat 8

thanks for the effort
linorg
 
Old 02-02-2004, 01:56 PM   #8
linorg
Member
 
Registered: Nov 2003
Location: delhi
Distribution: redhat 8.0 ,fedora
Posts: 32

Original Poster
Rep: Reputation: 15
Cool problem solved!!!

the error was basically because
gconf python was not installed
 
Old 02-02-2004, 04:37 PM   #9
Scruff
Member
 
Registered: Oct 2002
Location: Stoughton, MA
Distribution: Gentoo x86_64 & PPC
Posts: 949

Rep: Reputation: 30
Right on!
 
  


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
freevo crash ImportError: No module named web.microdom netsurf Linux - Software 0 10-23-2005 05:30 AM
gDesklets - ImportError: No module named gnome.ui raffi Linux - Software 9 10-20-2005 12:48 PM
Bittorrent. "ImportError: No module named __future__" BashTin Linux - Software 4 09-12-2005 03:07 AM
iPodder: ImportError: No module named wx dr_zayus69 Linux - Software 6 07-06-2005 01:55 AM
ImportError: No module named libglade Kanaflloric Programming 0 08-16-2004 09:58 PM


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