Thanks for the pointer, Kani. I still get the same error though. From re-reading through posts about similar issues, I think I'll re-install everything in the morning.

Or I'll re-install it now. I was running GTK 2.4 and I just installed 2.10. And now things work just fine. I also switched my pygtk from 2.10.6 to 2.10.1 and pygobject from 2.12.3 to 2.12.1, but I doubt that was it. I'll switch them back in the morning just for cod.

Now if I can just figure out how to write my PHP in Python....

Cheers.

kani . wrote:
Hi,

If, you are running your script on Windows, It is not necessary to
write "pygtk.require(''2.0").

I the case of me, I write the script following:

import sys
import pygtk
if sys.platform !='win32':
    pygtk.require('2.0')
import gtk

best regards.

    Traceback (most recent call last):
      File "<pyshell#2>", line 1, in <module>
    import gtk
      File "C:\Python25\Lib\site-packages\gtk-2.0\gtk\__init__.py", line
 38, in <module>
        import gobject as _gobject
      File "C:\Python25\Lib\site-packages\gtk-2.0\gobject\__init__.py",
 line 30, in <module>
        from _gobject import *
    ImportError: DLL load failed: The specified procedure could not be
 found.
    >>>

 I'm running the official python.org 2.5 build on Windows XP, in
 C:\Python25. GTK is in C:\gtk. I also have PHP-GTK in C:\php-gtk2, but
 this directory shows up nowhere in my Paths.

 Incidentally, I've also combed through WINDOWS/system32 for errant DLLs.
 I've done fresh installs for Python, GTK, Glade, pygtk, pygobject, and
 pycairo.

 Also, my Paths seem to be fine: they include C:\gtk\bin; C:\gtk\lib;
 C:\Python25; C:\php; C:\php\pear in that order.

 I'm sure I'm missing something very simple, but it's ruined my whole day
 so far. Thanks for any help.

 Cheers,
 Nate
 _______________________________________________
 pygtk mailing list   [email protected]
 http://www.daa.com.au/mailman/listinfo/pygtk
 Read the PyGTK FAQ: http://www.async.com.br/faq/pygtk/


__________ Information from ESET NOD32 Antivirus, version of virus signature 
database 2939 (20080312) __________

The message was checked by ESET NOD32 Antivirus.

http://www.eset.com



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

Reply via email to