problem with GTK on Windows

Discussion in 'Python' started by Wil Koenen, Jul 6, 2003.

  1. Wil Koenen

    Wil Koenen Guest

    Hi,

    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-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
     
    Wil Koenen, Jul 6, 2003
    #1
    1. Advertising

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

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Ask

    GTK for windows and Linux

    Ask, Nov 17, 2005, in forum: Python
    Replies:
    9
    Views:
    458
    Daniel Crespo
    Nov 18, 2005
  2. GTK Libraries in WIndows

    , May 23, 2006, in forum: C Programming
    Replies:
    15
    Views:
    2,310
    Clever Monkey
    May 23, 2006
  3. Replies:
    2
    Views:
    530
  4. Gergely Kontra
    Replies:
    2
    Views:
    254
    Joao Pedrosa
    Jun 18, 2004
  5. Alex Shulgin
    Replies:
    1
    Views:
    181
    thefed
    Nov 21, 2007
Loading...

Share This Page