[pygtk] Problem importing gtk

Luis A. Bastiao Silva luis.kop at gmail.com
Tue Jul 28 22:38:49 WST 2009


Hello,
Did you add the path below to PATH variable environment?

H:\Python25\glade\gtk+-bundle_2.14.7-20090119_win32

Is there  bin/ lib/ share/ etc in this directory?


On Tue, Jul 28, 2009 at 12:49 PM, bob gailer <bgailer at gmail.com> wrote:

> 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
> 919-636-4239
>
> _______________________________________________
> pygtk mailing list   pygtk at daa.com.au
> http://www.daa.com.au/mailman/listinfo/pygtk
> Read the PyGTK FAQ: http://faq.pygtk.org/
>


Best Regards,
-- 
Luís A. Bastião Silva
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.daa.com.au/pipermail/pygtk/attachments/20090728/2bb40415/attachment.htm 


More information about the pygtk mailing list