[pygtk] Problem importing gtk

bob gailer bgailer at gmail.com
Tue Jul 28 19:49:06 WST 2009

I followed the instructions to get PyGTK running on MS Windows.

"We recommend to install the GTK+ runtime using the official GTK+ bundle 
<http://ftp.gnome.org/pub/GNOME/binaries/win32/gtk+/> (gtk+-bundle*.zip 
files). To fully install this bundle you need to uncompress its contents 
in a folder and manually add the /bin/ subfolder to the system path."

I put it in H:\Python25\glade\gtk+-bundle_2.14.7-20090119_win32

What is "system path"? I added it to the Windows Path; that did not help.
Then I added it to the Python path. Now I get:

import gtk
Traceback (most recent call last):
 File "<interactive input>", line 1, in <module>
 File "H:\Python25\Lib\site-packages\gtk-2.0\gtk\__init__.py", line 38, 
in <module>
   import gobject as _gobject
 File "H:\Python25\Lib\site-packages\gtk-2.0\gobject\__init__.py", line 
30, in <module>
   from gobject.constants import *
 File "H:\Python25\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 module could not be found.

What do I do to fix that?

Bob Gailer
Chapel Hill NC

More information about the pygtk mailing list