huroliu
huroliu

Reputation: 43

How to install PyGI (Python Gobject Introspection) on Windows?

Installing the python interpreter: http://python.org/ftp/python/2.7.2/python-2.7.2.msi and: http://ftp.gnome.org/pub/GNOME/binaries/win32/pygtk/2.24/pygtk-all-in-one-2.24.0.win32-py2.7.msi run: python import gtk ...works

Is there a PyGI all in one installer? run: python import gi Error: Unable to import module gi ...how to make it work on Windows? On Ubuntu 11.04 runs without installing anything.

Upvotes: 4

Views: 9715

Answers (4)

Ben Butterworth
Ben Butterworth

Reputation: 28948

You can download and install GTK (and it's dependencies, including pygobject, pycairo and gobject-introspection) natively on windows using the gvsbuild repo.

You can choose between downloading precompiled (recommended for development) or building everything from scratch.

See gvsbuild for more information.

Upvotes: 0

Dysmas
Dysmas

Reputation: 151

2016 : There is now an all in one installer :

https://sourceforge.net/projects/pygobjectwin32/files/?source=navbar

I have installed Python 3.4.3, then pygi-aio-3.18.2_rev10. Works fine in Windows 7.

Upvotes: 2

tomnotcat
tomnotcat

Reputation: 231

I have do some work to port the gobject introspection system to windows: https://github.com/tomnotcat/glib-win32

Upvotes: 0

user626998
user626998

Reputation:

I think you run into two problems here. First of all, I'm not sure that the PyGObject versions featuring introspection are available for Windows. More importantly, only the GTK 2 libraries are available for Windows, but unfortunately support for introspection with GTK 2 is incomplete.

Upvotes: 1

Related Questions