[PythonCAD] No module named gobject
Rafael Villar Burke
pachi at rvburke.com
Fri Mar 9 18:55:44 CET 2007
Vrijkotte Johannes wrote:
> hello,
> I've installed pygtk 2.6.3 with notably glib-2.8.1 and gtk-2.6.10 but
> I can't get it to work.
> The gtk-demo application works OK but the pygtk-demo gives :
> --------
> Traceback (most recent call last):
> File "/home/st12675/tools//PYGTK/2.6.3/solaris2.8/bin/pygtk-demo",
> line 7, in ?
> execfile(os.path.join(pygtklibdir, "pygtk-demo.py"))
> File
> "/home/st12675/tools//PYGTK/2.6.3/solaris2.8/lib/pygtk/2.0/pygtk-demo.py",
> line 18, in ?
> import gobject
> ImportError: No module named gobject
> --------
You need to install the pygobject bindings [1] to be able to use gobject
from python.
http://ftp.gnome.org/pub/GNOME/binaries/win32/pygobject/
There's now an all-in-one installer for win32 users that conveniently
bundles python 2.5 and gtk+ 2.12 with its python bindings (pycairo,
pygobject and pygtk). You can get here:
http://osl.ulpgc.es/~arc/gnome/pygtk-setup.exe
Further updates to the all-in-one installer will be anounced in pygtk.org.
Regards,
Rafael Villar Burke
pygtk.org team
More information about the PythonCAD
mailing list