Error calling module
Lawrence D'Oliveiro
ldo at geek-central.gen.new_zealand
Sun Aug 12 23:37:28 EDT 2007
In message <pan.2007.08.10.23.23.11.116698 at 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?
More information about the Python-list
mailing list