[pygtk] pygtk DLL load failed

Firat Ozgul ozgulfirat at gmail.com
Thu Jan 7 21:41:38 WST 2010


Hello,

A few minutes ago, I made a fresh install of PyGTK on my system just to
check if the links are fine:

1. I downloaded Python 2.6.4 from
http://www.python.org/ftp/python/2.6.4/python-2.6.4.msi. Then I added
"C:\Python26" and "C:\Python26\Scripts" to PATH.

2. I downloaded the "GTK-Bundle" from
http://ftp.acc.umu.se/pub/gnome/binaries/win32/gtk+/2.18/gtk+-bundle_2.18.5-20091215_win32.zipand
unzipped it into C:\GTK folder. Then I added "C:\GTK\bin" to PATH.

3. I downloaded:

Pycairo from:
http://ftp.acc.umu.se/pub/GNOME/binaries/win32/pycairo/1.4/pycairo-1.4.12-2.win32-py2.6.exe

Pygobject from:
http://ftp.acc.umu.se/pub/GNOME/binaries/win32/pygobject/2.14/pygobject-2.14.2-2.win32-py2.6.exe

PyGtk from:
http://ftp.acc.umu.se/pub/GNOME/binaries/win32/pygtk/2.12/pygtk-2.12.1-3.win32-py2.6.exe

After installation of these executables, everything works fine... You might
need to uninstall any remaining PyGTK installation and remove any remaining
Pygtk folder before the fresh install.



2010/1/7 YAN KONG <pother at msn.com>

>  Thanks, I just double checked. I did use
> pycairo-1.4.12-2.win32-py2.6.exe. It was a typo in previous email.
> And GTK\bin was also added in my system path already.
>
> Any other possible reasons?
>
>
> Thanks
>
> ------------------------------
> Date: Thu, 7 Jan 2010 10:39:26 +0200
> Subject: Re: [pygtk] pygtk DLL load failed
> From: ozgulfirat at gmail.com
> To: pother at msn.com
> CC: pygtk at daa.com.au
>
>
> Maybe it is because your pycairo version does not match the version of the
> Python you use... (pycairo is 2.5, python is 2.6...). Also make sure that
> C:\GTK\bin is in your PATH.
>
> 2010/1/7 YAN KONG <pother at msn.com>
>
> Hi guys:
>
> Newbie here. I try to install pygtk following the steps. However after
> everything is finished, when I try to import gtk. I got an "ImportError: DLL
> load failed: A dynamic link library (DLL) initialization routine failed."
> The error are thrown within
>
> C:\Python26\Lib\site-packages\gtk-2.0\gtk\__init__.py
> line 48:  from gtk import _gtk
>
> I use python2.6
> gtk2-runtime-2.16.6.
> pycairo-1.4.12-2.win32-py2.5.exe
> pygobject-2.14.2-2.win32-py2.6.exe
> pygtk-2.12.1-3.win32-py2.6.exe
>
> after I almost completely give up on it. I found out, everytime after I
> import tables, I can import gtk successfully. The two modules seems
> completely irrelavant.
>
>
> Thanks
>
> Yan
>
>
>
> ------------------------------
> Hotmail: Free, trusted and rich email service. Get it now.<http://clk.atdmt.com/GBL/go/196390708/direct/01/>
>
> _______________________________________________
> pygtk mailing list   pygtk at daa.com.au
> http://www.daa.com.au/mailman/listinfo/pygtk
> Read the PyGTK FAQ: http://faq.pygtk.org/
>
>
>
> ------------------------------
> Hotmail: Trusted email with Microsoft’s powerful SPAM protection. Sign up
> now. <http://clk.atdmt.com/GBL/go/196390706/direct/01/>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.daa.com.au/pipermail/pygtk/attachments/20100107/95abfa44/attachment.htm 


More information about the pygtk mailing list