Error importing Windows XP GTK operating system

I am trying to run a GTK application on Windows XP and am having problems importing. If necessary, I installed the following:

python-2.6.msi gtk2-runtime.2-16.6.exe pycairo-1.8.6.exe pygobject-2.20.0 pygtk-2.16.0.exe pyserial-2.5.exe 

However, when running my script:

The following error occurs:
 Traceback (most recent call last): File "C:\python26\app\src\start.py", line 22, in <module> import gtk File "C:\Python26\Lib\site-packages\gtk-2.0\gtk\__init__.py", line 30, in <mod ule> import gobject as _gobject File "C:\Python26\Lib\site-packages\gtk-2.0\gobject\__init__.py", line 26, in <module> from glib import spawn_async, idle_add, timeout_add, timeout_add_seconds, \ File "C:\Python26\Lib\site-packages\gtk-2.0\glib\__init__.py", line 22, in <mo dule> from glib._glib import * ImportError: DLL load failed: The specified module could not be found. 

GTK installs in C: \ gtk \ bin and installs in my system PATH.

Did I miss something obvious here?

Any help would be appreciated.

Thank you.

Andy

+4
source share
2 answers

I was getting the same problem - I'm not sure why, but I suspect this has something to do with some installation / search paths. I tried to add all kinds of things to my site, but nothing worked.

What I did to fix this is to remove python et. et al and reinstall using the Python Package (x, y) . This is a fairly large download, but it has many tools, including several (matplotlib, numpy, scipy, IPython, etc.) that I need / need.

+3
source

You can install the pygtk package found on this page:

http://ftp.gnome.org/pub/GNOME/binaries/win32/pygtk/2.22/

where you should find an all-in-one installer suitable for your version.

He solved the problem for me without installing Py (x, y), which seems like a very useful scientific environment for Windows (I use linux and install all these packages from the script).

0
source

All Articles