Further I have tried another tack:
- uninstall it all and reinstall python 2.6.5
- follow the instructions on the main page here: http://www.pygtk.org/downloads.html
- get the bundle = gtk+-bundle_2.20.0-20100401_win32.zip
- extract and place under C:\gtk and update the path to point to C:\gtk\bin
  (checked gtk-demo.exe from CLI and it's working)
- get pycairo, pygobject, pygtk as described:
     = pycairo-1.8.6.win32-py2.6.exe
     = pygobject-2.20.0.win32-py2.6.exe
     = pygtk-2.16.0+glade.win32-py2.6.exe
     and install them.
- run the test app the first 4 lines of which are:
#!/usr/bin/env python
import pygtk
pygtk.require('2.0')
import gtk

and still get the same problem :-(
IDLE 2.6.5      ==== No Subprocess ====
>>>
Traceback (most recent call last):
  File "C:\Documents and Settings\User\My Documents\CTW\Terragen etc\programs\Batch_TG2_v5_GTK+\sample-1.py", line 4, in <module>
    import gtk
  File "C:\Python26\lib\site-packages\gtk-2.0\gtk\__init__.py", line 40, in <module>
    from gtk import _gtk
ImportError: DLL load failed: The specified procedure could not be found.

:-(

MarkS wrote:
I too am having tremendous trouble getting pygtk etc to work. I am anxious to use Glade :-)
I am however using winXP SP3

I have installed and have working python 2.6.5
I have installed GTK+Runtime installer from here: http://gtk-win.sourceforge.net/home/index.php/en/Home
I have installed pygtk-2.16.0+glade.win32-py2.6.exe

and I have the same error as Mosh:
>>> import gtk
Traceback (most recent call last):
  File "<pyshell#0>", line 1, in <module>
    import gtk
  File "C:\Python26\lib\site-packages\gtk-2.0\gtk\__init__.py", line 40, in <module>
    from gtk import _gtk
ImportError: DLL load failed: The specified procedure could not be found.

  
I have tried installing vcredist_x86.exe the 2008 C++ redistributable as Steve suggetss but this doe snot fix the problem for me.
I have manually added the runtime's install bin directory to my PATH variable
C:\Program Files\GTK2-Runtime\bin


I do have pidgin installed on my system already. Other than that no other GTK apps.

Does anyone have an idea about why GTK can't be found...?
Thanks, MarkS...

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

Reply via email to