problems on installing PyGTK in Windows XP

View: New views
2 Messages — Rating Filter:   Alert me  

problems on installing PyGTK in Windows XP

by Yang Yang-9 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Python 2.6.3 is installed on my Windows XP throught the binary file
provided by Python.org. Then I followed the steps described here:

http://faq.pygtk.org/index.py?req=show&file=faq21.001.htp

to install PyGTK. However, I still get the following error:

>>> import pygtk
>>> pygtk.require('2.0')
>>> import gtk

Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "C:\Python26\lib\site-packages\gtk-2.0\gtk\__init__.py", line
48, in <mod
ule>
    from gtk import _gtk
ImportError: DLL load failed: The specified module could not be found.

I googled this problem and noticed that there are quite a few people
having the same problem. But I am unable to find anything which helps
me solve this problem.

Could you please give me some suggestions?

Thanks!
_______________________________________________
pygtk mailing list   pygtk@...
http://www.daa.com.au/mailman/listinfo/pygtk
Read the PyGTK FAQ: http://faq.pygtk.org/

Re: problems on installing PyGTK in Windows XP

by Firat Ozgul :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hello,

I think there is an incompatibility between the latest packages. I had the same problem, and this is how I solved it:

1. Uninstall GTK and Pygtk.

2. Then download these packages:

-- http://ftp.gnome.org/pub/gnome/binaries/win32/gtk+/2.16/gtk+-bundle_2.16.6-20090911_win32.zip

-- http://ftp.gnome.org/pub/GNOME/binaries/win32/pycairo/1.4/pycairo-1.4.12-2.win32-py2.6.exe

-- http://ftp.gnome.org/pub/GNOME/binaries/win32/pygobject/2.14/pygobject-2.14.2-2.win32-py2.6.exe

-- http://ftp.gnome.org/pub/GNOME/binaries/win32/pygtk/2.12/pygtk-2.12.1-3.win32-py2.6.exe

3. All packages have their own installers, except for the first one. You can double-click on the installers to install the packages.

4. As for the first bundle... Extract its contents into a folder named "GTK" in the C drive. Then add "C:\GTK\bin" folder to your PATH variable.

Regards,
Firat

2009/10/22 Yang Yang <yyangbian@...>
Python 2.6.3 is installed on my Windows XP throught the binary file
provided by Python.org. Then I followed the steps described here:

http://faq.pygtk.org/index.py?req=show&file=faq21.001.htp

to install PyGTK. However, I still get the following error:

>>> import pygtk
>>> pygtk.require('2.0')
>>> import gtk

Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "C:\Python26\lib\site-packages\gtk-2.0\gtk\__init__.py", line
48, in <mod
ule>
    from gtk import _gtk
ImportError: DLL load failed: The specified module could not be found.

I googled this problem and noticed that there are quite a few people
having the same problem. But I am unable to find anything which helps
me solve this problem.

Could you please give me some suggestions?

Thanks!
_______________________________________________
pygtk mailing list   pygtk@...
http://www.daa.com.au/mailman/listinfo/pygtk
Read the PyGTK FAQ: http://faq.pygtk.org/


_______________________________________________
pygtk mailing list   pygtk@...
http://www.daa.com.au/mailman/listinfo/pygtk
Read the PyGTK FAQ: http://faq.pygtk.org/