Roberto Cavada wrote:
>Hi,
> I'm sorry to disturb you all with another problem - I tried to
>resolve by myself with no results.
>Problem is libglade for python, which appears to be not included in
>the source distribution of pygtk-1.99.10.
>Well, actually libglade-2.0.so is linked to glademodule.so, which is
>generated by the pygtk's make process.
>Take into account that the pygtk's make made the objects
>glademodule_la-libglademodule.o and glademodule_la-libglade.o
>instead of libglademodule.o - as I aspected.
>
>If I try to import the glade module I obtain the following error
>message into the python interpreter (also notice the directory which
>I import from):
>
>--
>extreme:gtk 142%pwd
>/hardmnt/extreme0/sra/cavada/usr/local/lib/python2.2/site-packages/gtk
>
>extreme:gtk 143%ls
>glademodule.la _gtkmodule.la __init__.py __init__.pyo keysyms.pyc
>glademodule.so _gtkmodule.so __init__.pyc keysyms.pykeysyms.pyo
>
>extreme:gtk 144%python
>Python 2.2.1 (#1, Jul 1 2002, 11:00:29)
>[GCC 2.96 2731 (Red Hat Linux 7.1 2.96-85)] on linux2
>Type "help", "copyright", "credits" or "license" for more information.
>
>
import glade
>Traceback (most recent call last):
> File "", line 1, in ?
>SystemError: _PyImport_FixupExtension: module glade not loaded
>--
>
>I'm sadly sure I'm missing something, but what remains for me a
>mistery.
>
>
The libglade module is in the gtk package. So after installation, the
following should work:
>>> import gtk.glade
James.
--
Email: [EMAIL PROTECTED] | Linux.conf.au 2003 Call for Papers out
WWW: http://www.daa.com.au/~james/ | http://conf.linux.org.au/cfp.html
___
pygtk mailing list [EMAIL PROTECTED]
http://www.daa.com.au/mailman/listinfo/pygtk
Read the PyGTK FAQ: http://www.async.com.br/faq/pygtk/