469,588 Members | 2,734 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 469,588 developers. It's quick & easy.

Error calling module


When I try to call gtk like so:
import gtk

I get the error:

ImportError: No module named gtk
I installed a new Python and a new pygtk.
Is the gtk module not a part of pygtk???

I have PYTHONPATH=/usr/local/lib/python2.5/site-packages
set. So what am I doing wrong?

Thanks

--
Take summa dis punk!
Aug 10 '07 #1
1 1299
In message <pa****************************@fartknuckle.com> , fartknuckle
wrote:
When I try to call gtk like so:
import gtk

I get the error:

ImportError: No module named gtk
I installed a new Python and a new pygtk.
Is the gtk module not a part of pygtk???

I have PYTHONPATH=/usr/local/lib/python2.5/site-packages
set. So what am I doing wrong?
First question: where is the gtk module located?

Second question: start up python interactively, type

import sys
sys.path

Does the resulting list include the directory that is the answer to the
first question?
Aug 13 '07 #2

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

1 post views Thread by Wayno | last post: by
17 posts views Thread by Steve Jorgensen | last post: by
1 post views Thread by pob | last post: by
reply views Thread by suresh191 | last post: by
4 posts views Thread by guiromero | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.