problem with GTK on Windows

W

Wil Koenen

Hi,

When importing (parts of) gtk, here's what I get:
Traceback (most recent call last):
File "<pyshell#13>", line 1, in ?
import gobject
ImportError: DLL load failed: One of the library files needed to run this
application cannot be found.

(similar messages for other modules, including gtk, atk , _gtk). This
message tells me something, but not all.
Is the gobject.pyd which is not found? Or is a 'real' .dll from the GTK
package that cannot be found.

I've installed (Windows '95):

Python-2_2_1.exe in C:\Program Files\Python.
GTK+-Runtime-Environment-2.2.0.1.exe in C:\Program Files\Common Files\Gtk
pygtk-1.99.16.win32-py2.2.exe in C:\Program
Files\Python\Lib\site-packages\gtk-2.0

and added some .pth files in the site-packages directory. The sys.path
includes the following:

C:\PROGRA~1\PYTHON\Tools\idle
C:\Program Files\Python\Lib\site-packages\gtk-2.0\gtk
C:\PROGRAM FILES\PYTHON\DLLs
C:\PROGRAM FILES\PYTHON\lib
C:\PROGRAM FILES\PYTHON\lib\lib-tk
C:\PROGRAM FILES\PYTHON
C:\PROGRAM FILES\PYTHON\lib\site-packages
C:\Program Files\Common Files\GTK\2.0\lib
C:\Program Files\Common Files\GTK\2.0\lib\gtk-2.0\2.2.0\engines
C:\Program Files\Common Files\GTK\2.0\lib\gtk-2.0\2.2.0\immodules
C:\Program Files\Common Files\GTK\2.0\lib\gtk-2.0\2.2.0\loaders
C:\Program Files\Common Files\GTK\2.0\lib\pango\1.0.0\modules
C:\PROGRAM FILES\PYTHON\lib\site-packages
C:\PROGRAM FILES\PYTHON\lib\site-packages\gtk-2.0

(1) When I use the explorer, I find a file gobject.pyd in

C:\Program Files\Python\Lib\site-packages\gtk-2.0

but it doesn't have python icon. Would it be possible that this
file is not recognized (by Python) as a module?

(2) Before trying to import gtk, I imported pygtk , which looks like a
setup-script.
May this have ruined my setup.

(3) Does the sys.path have any relation at all to the search path for .dll's
?

Thanks in advance for any help,

Wil
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,769
Messages
2,569,579
Members
45,053
Latest member
BrodieSola

Latest Threads

Top