Pygtk but no gtk?

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

chengiz at 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 file in the python library
> directories.
> Thank you.
> Khan

my pygtk provides 
/usr/lib/python2.4/site-packages/gtk-2.0/gtk/, which contains 
the gtk module. You should ensure that you have that file, and if not, 
find out where to get it.


More information about the Python-list mailing list