gi.repository Windows

Yerko Antonio picture Yerko Antonio · Oct 19, 2012 · Viewed 26k times · Source

I'm developing an app which has to be 100% compatible on windows and on linux. On linux I have no problems, but on windows I came up with this message: from gi.repository import Gtk ImportError: No module named gi

I installed pygobject, pygtkallinone, gtk.. what am I missing?

Answer

gianmt picture gianmt · Jan 6, 2014

Most of Havok answer is correct, except that documentation has been improved a lot lately, with a Tutorial:

Including a PDF version for offline reading:

And a complete API reference manual, not only of Gtk but also many other libraries that you can use with introspection:

on windows the support is great, a lot of effort has been put in creating all the windows executables and libraries, the last release of pygi-aio is 3.10.6:

I've also put instructions on the Gnome wiki on how to build on win32 with pygobject introspection, it's not that hard, I've also uploaded a setup.py that actually works:

So the answer is, don't go with PyGTK