Error calling module

F

fartknuckle

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
 
L

Lawrence D'Oliveiro

fartknuckle said:
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?
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,780
Messages
2,569,608
Members
45,241
Latest member
Lisa1997

Latest Threads

Top