By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
440,235 Members | 1,057 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 440,235 IT Pros & Developers. It's quick & easy.

Error calling module

P: n/a

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
Share this Question
Share on Google+
1 Reply


P: n/a
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.