Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How do I install PyGTK / PyGobject on Windows with Python 2.6?

I have an application which depends on PyGTK, PyGobject, and PyCairo that I built to work on Linux. I want to port it over to windows, but when I execute import gobject I get this:

Traceback (most recent call last):
    import gobject
  File "C:\Python26\lib\site-packages\gtk-2.0\gobject\__init__.py", line 30, in <module>
    from gobject.constants import *
  File "C:\Python26\lib\site-packages\gtk-2.0\gobject\constants.py", line 22, in <module>
    from _gobject import type_from_name
ImportError: DLL load failed: The specified procedure could not be found.

This appears to be caused by the switch from building using MinGW to Microsoft Visual Studio, as documented Python Bug 3308 (closed: wontfix).

Is there any way to install PyGTK/PyGObject in a way that will work with Python 2.6 on Windows, without having to recompile one or the other from source?

like image 625
lfaraone Avatar asked Aug 18 '09 14:08

lfaraone


1 Answers

u should have pygtk,pycairo,pygboject and the gtk+ runtime...

see this for an all in one installer http://aruiz.typepad.com/siliconisland/2006/12/allinone_win32_.html

like image 147
appusajeev Avatar answered Sep 18 '22 12:09

appusajeev