Pygtk but no gtk?
chengiz at my-deja.com
chengiz at my-deja.com
Fri Oct 20 20:36:43 EDT 2006
> my pygtk provides
> /usr/lib/python2.4/site-packages/gtk-2.0/gtk/__init__.py, which contains
> the gtk module. You should ensure that you have that file, and if not,
> find out where to get it.
I had the files stored in my local space and my PYTHONPATH was wrong.
It seems PYTHONPATH should contain both ...lib/python2.x and
...lib/python2.x/site-packages while mine was simply ...lib (one'd
expect them to actually mention this in the documentation). Once I
fixed PYTHONPATH, it ran fine, although I still cant figure out why it
got pygtk in the first place coz it wasnt in PYTHONPATH the first time.
Khan
More information about the Python-list
mailing list