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

3

4

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.

Triphthong answered 1/9, 2011 at 19:17 Comment(0)
G
1

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.

Gilliette answered 2/9, 2011 at 12:28 Comment(3)
This might be inaccurate but I'm having trouble loading live.gnome.org/PyGObject to confirm it.Gilliette
Thank you Brandon for clarifications. PyGObject 2.28 works with GTK+ 2 on Linux, and I thought someone has managed to compile an all in in one installer for Windows. Looks like we have to wait for GTK+ 3 for Windows.Triphthong
Hi all, can't find anything on the web. Has the status of the issue chan ged ? Can we use gi.repository in windows now ?Peag
S
2

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.

Saluki answered 3/11, 2016 at 19:8 Comment(0)
G
1

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.

Gilliette answered 2/9, 2011 at 12:28 Comment(3)
This might be inaccurate but I'm having trouble loading live.gnome.org/PyGObject to confirm it.Gilliette
Thank you Brandon for clarifications. PyGObject 2.28 works with GTK+ 2 on Linux, and I thought someone has managed to compile an all in in one installer for Windows. Looks like we have to wait for GTK+ 3 for Windows.Triphthong
Hi all, can't find anything on the web. Has the status of the issue chan ged ? Can we use gi.repository in windows now ?Peag
C
0

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

Cathiecathleen answered 28/1, 2013 at 3:40 Comment(1)
Hey, can you tell me how I can use it? I think, it'd be best if you updated the README file with the instructions. Thanks.Sumner

© 2022 - 2024 — McMap. All rights reserved.