I am trying to open a JPG file with pycairo using the code I found at 
http://zetcode.com/gfx/pycairo/images/. The code imports modules from the 
gobject library: 

from gi.repository import Gtk, Gdk, GdkPixbuf 

I get the error: 

ImportError: No module named gi.repository 

I am using Python 2.7.3 on Windows XP. I installed 
gtk+-bundle_2.24.10-20120208_win32, pygtk-all-in-one-2.24.2.win32-py2.7, 
pycairo-1.8.10.win32-py2.7, and pygobject-2.28.3.win32-py2.7. 

GTK+ has gobject-2.0.lib and supporting files, 
C:\Python2.7\Lib\site-packages\gtk-2.0\gobject has .py files, 
C:\Python2.7\Lib\site-packages\gtk-2.0\runtime\bin\ has libgobject-2.0-0.dll 
and various supporting files. 

So what do I have to do to get python to import this? 

_______________________________________________
python-hackers-list mailing list
[email protected]
https://mail.gnome.org/mailman/listinfo/python-hackers-list

Reply via email to