Pygtk but no gtk?

Jonathan Smith smithj at rpath.com
Fri Oct 20 21:01:41 CEST 2006


chengiz at my-deja.com wrote:
> I am trying to build an app that requires pygtk so I installed the
> latter. The app does the following:
> import pygtk
> ...
> import gtk
> 
> This crashes with
> ImportError: No module named gtk.
> 
> I dont know where to get this gtk module from. I assumed pygtk would be
> it coz the app doesnt mention any dependency on gtk, also googling
> didnt find anything but pygtk. Did I screw up the installation or
> something? I dont find any gtk.py file in the python library
> directories.
> 
> Thank you.
> Khan
> 

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.

-smithj



More information about the Python-list mailing list