I forgot to add that i'm running ubuntu with python 2.4, and the imports are: import os import pygtk pygtk.require('2.0') import gtk import gtk.glade