problem with GTK on Windows

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Wil Koenen

    problem with GTK on Windows

    Hi,

    When importing (parts of) gtk, here's what I get:
    [color=blue][color=green][color=darkred]
    >>> import gobject[/color][/color][/color]
    Traceback (most recent call last):
    File "<pyshell#1 3>", 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\Li b\site-packages\gtk-2.0

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

    C:\PROGRA~1\PYT HON\Tools\idle
    C:\Program Files\Python\Li b\site-packages\gtk-2.0\gtk
    C:\PROGRAM FILES\PYTHON\DL Ls
    C:\PROGRAM FILES\PYTHON\li b
    C:\PROGRAM FILES\PYTHON\li b\lib-tk
    C:\PROGRAM FILES\PYTHON
    C:\PROGRAM FILES\PYTHON\li b\site-packages
    C:\Program Files\Common Files\GTK\2.0\l ib
    C:\Program Files\Common Files\GTK\2.0\l ib\gtk-2.0\2.2.0\engin es
    C:\Program Files\Common Files\GTK\2.0\l ib\gtk-2.0\2.2.0\immod ules
    C:\Program Files\Common Files\GTK\2.0\l ib\gtk-2.0\2.2.0\loade rs
    C:\Program Files\Common Files\GTK\2.0\l ib\pango\1.0.0\ modules
    C:\PROGRAM FILES\PYTHON\li b\site-packages
    C:\PROGRAM FILES\PYTHON\li b\site-packages\gtk-2.0

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

    C:\Program Files\Python\Li b\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



Working...