468,117 Members | 2,204 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 468,117 developers. It's quick & easy.

problem with GTK on Windows


When importing (parts of) gtk, here's what I get:
import gobject

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- in C:\Program Files\Common Files\Gtk
pygtk-1.99.16.win32-py2.2.exe in C:\Program

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

C:\Program Files\Python\Lib\site-packages\gtk-2.0\gtk
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
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,


Jul 18 '05 #1
0 2170

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

2 posts views Thread by Joseph Geretz | last post: by
4 posts views Thread by pepcag | last post: by
4 posts views Thread by Rod Gill | last post: by
30 posts views Thread by dbuchanan | last post: by
3 posts views Thread by Gerrit | last post: by
7 posts views Thread by didacticone | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.