472,125 Members | 1,422 Online
Bytes | Software Development & Data Engineering Community
Post +

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 472,125 software developers and data experts.

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 1376
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 leo001 | last post: by

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.