Dear Linh, It seems the python-gobject was not proper installed. I guess python-gtk "family of libraries" never had a good repository of binaries/installers for Windows. Last time I tried my own python-gtk/osgswig applications on Windows, I used an all-in-one PyGTK installer from the following link : http://osl.ulpgc.es/~arc/gnome/pygtk-setup.exe
If you're using the provided osgSWIG/Py 0.9.1 binaries, it might be necessary to use python 2.6 based PyGTK. A quick google search led me to the following post that contains links to the latest and greatest of PyGTK: http://www.mail-archive.com/[email protected]/msg17035.html Beware if you run GUI apps from IDLE, one of the GUI loops (e.g. IDLE's TkInter interface) might freeze. Have fun playing with osg / osgswig, Gerwin On Wed, Jan 14, 2009 at 9:25 PM, Phan, Linh H <[email protected]> wrote: > Hi, > > I'm trying to run the gtkoswidget.py example in python IDLE 1.2.1 and I got > stuck at gtk: > >>>> import sys >>>> import pygtk >>>> pygtk.require('2.0') >>>> import gtk > > Traceback (most recent call last): > File "<pyshell#3>", line 1, in <module> > import gtk > File "C:\Python25\lib\site-packages\gtk-2.0\gtk\__init__.py", line 38, in > <module> > import gobject as _gobject > File "C:\Python25\lib\site-packages\gtk-2.0\gobject\__init__.py", line 30, > in <module> > from _gobject import * > ImportError: DLL load failed: The specified module could not be found. > > Can someone tell me how I can fix this or where I can get a working gtk > version? > > Thank you, > > Linh > > -----Original Message----- > Dear OSG Community, > > first of all a late Happy New Year! The osgSWIG team is happy to announce > osgSWIG/Py 0.9.1 for Python 2.6 which corresponds to the OpenSceneGraph 2.6.1 > version. There is an installer for Win32/Python 2.6 or if you feel funky you > can try to compile osgSWIG/Py straight from the source. > > Please note that on Windows we can only support you with Python 2.6 - hence > build with Visual Studio 2008. And another note, we decided to only support > stable releases, like 2.6.x or the upcoming 2.8.x releases as the maintenance > of the interface files becomes more problematic. Be assured we are looking > into some alternative ways to generate them :) > > For those users looking for an update of the version including osgART > (http://www.osgart.org) - please be patient, we are working on the release of > osgART 2.x and would like to keep things in sync - there will be an update > but not right now. > > Please give the installer a spin - let us know of your problems in the issue > tracker. > > Now, head over to http://code.google.com/p/osgswig/ > > Cheers, > > _______________________________________________ > osg-users mailing list > [email protected] > http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org > _______________________________________________ osg-users mailing list [email protected] http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

