Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > Python > problem with GTK on Windows

Reply
Thread Tools

problem with GTK on Windows

 
 
Wil Koenen
Guest
Posts: n/a
 
      07-06-2003
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



 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Ruby GTK Fortune Cookies (gtk-fortune-0.1.1) Alex Shulgin Ruby 1 11-21-2007 01:05 AM
GTK+, segmentation fault in gtK-editable_get_chars zombek@gmail.com C Programming 2 05-29-2007 03:27 PM
GTK Libraries in WIndows richardcarranza@gmail.com C Programming 15 05-23-2006 10:26 PM
GTK for windows and Linux Ask Python 9 11-18-2005 03:12 PM
compiling ruby under windows (+ gtk stuff, is the gtk list dead?) Gergely Kontra Ruby 2 06-18-2004 10:20 PM



Advertisments