Hi all,

I've just started experimenting with pygtk+gnome libs after some time
away from the scene.

I've built the gnome-python-1.0.4 modules against

                imlib-1.9.5-1
                gnome-libs-1.0.8-2rh
                gtk+-1.2.1-7

All the examples in

              gnome-python-1.0.4/pygtk/examples

but all the example in

                 gnome-python-1.0.4/pygnome/examples

result in a segmentation fault before displaing anything. The gdb
traceback is below,
and suggests that there is some problems with the dynamic linking of the
gtk module
from within the gnomeui module. Any suggestions or pointers?

Thanks,


Tim


[timd@flotsam examples]$ gdb python
GNU gdb 4.17.0.4 with Linux/x86 hardware watchpoint and FPU support
Copyright 1998 Free Software Foundation, Inc.
GDB is free software, covered by the GNU General Public License, and you
are
welcome to change it and/or distribute copies of it under certain
conditions.
Type "show copying" to see the conditions.
There is absolutely no warranty for GDB.  Type "show warranty" for
details.
This GDB was configured as "i386-redhat-linux"...
(gdb) run
Starting program: /usr/local/bin/python
Python 1.5.2 (#2, May 20 1999, 00:24:33)  [GCC 2.7.2.3] on linux2
Copyright 1991-1995 Stichting Mathematisch Centrum, Amsterdam
>>> import _gnomeui

Program received signal SIGSEGV, Segmentation fault.
0x400fb9a4 in init_gnomeui () at gnomeuimodule.c:1586
1586     init_pygtk();
(gdb) where
#0  0x400fb9a4 in init_gnomeui () at gnomeuimodule.c:1586
#1  0x805cc32 in _PyImport_LoadDynamicModule (name=0xbffff5a4
"_gnomeui",
    pathname=0xbffff140
"/usr/local/lib/python1.5/site-packages/_gnomeuimodule.so",
fp=0x80bb110)
    at ./importdl.c:851
#2  0x805b380 in load_module (name=0xbffff5a4 "_gnomeui", fp=0x80bb110,
    buf=0xbffff140
"/usr/local/lib/python1.5/site-packages/_gnomeuimodule.so", type=3) at
import.c:1210
#3  0x805be54 in import_submodule (mod=0x8092290, subname=0xbffff5a4
"_gnomeui",
    fullname=0xbffff5a4 "_gnomeui") at import.c:1755
#4  0x805ba79 in load_next (mod=0x8092290, altmod=0x8092290,
p_name=0xbffff9b0,
    buf=0xbffff5a4 "_gnomeui", p_buflen=0xbffff5a0) at import.c:1603
#5  0x805b74c in import_module_ex (name=0x0, globals=0x809ef38,
locals=0x809ef38, fromlist=0x8092290)
    at import.c:1445
#6  0x805b883 in PyImport_ImportModuleEx (name=0x80b80ac "_gnomeui",
globals=0x809ef38,
    locals=0x809ef38, fromlist=0x8092290) at import.c:1489
#7  0x807551c in builtin___import__ (self=0x0, args=0x80a21b8) at
bltinmodule.c:65
#8  0x80541bd in call_builtin (func=0x809ce58, arg=0x80a21b8, kw=0x0) at
ceval.c:2359
#9  0x80540d4 in PyEval_CallObjectWithKeywords (func=0x809ce58,
arg=0x80a21b8, kw=0x0) at ceval.c:2324
#10 0x8052c19 in eval_code2 (co=0x80bb0d0, globals=0x809ef38,
locals=0x809ef38, args=0x0, argcount=0,
    kws=0x0, kwcount=0, defs=0x0, defcount=0, owner=0x0) at ceval.c:1445

#11 0x8050e5f in PyEval_EvalCode (co=0x80bb0d0, globals=0x809ef38,
locals=0x809ef38) at ceval.c:324
#12 0x80606f0 in run_node (n=0x80b7840, filename=0x8087163 "<stdin>",
globals=0x809ef38,
    locals=0x809ef38) at pythonrun.c:887
#13 0x805fd29 in PyRun_InteractiveOne (fp=0x809a9b0, filename=0x8087163
"<stdin>") at pythonrun.c:528
#14 0x805fbcb in PyRun_InteractiveLoop (fp=0x809a9b0, filename=0x8087163
"<stdin>") at pythonrun.c:472
#15 0x805fb1b in PyRun_AnyFile (fp=0x809a9b0, filename=0x8087163
"<stdin>") at pythonrun.c:449
#16 0x804f711 in Py_Main (argc=1, argv=0xbffffcec) at main.c:287
#17 0x804f1b2 in main (argc=1, argv=0xbffffcec) at python.c:12
(gdb)


To unsubscribe: echo "unsubscribe" | mail [EMAIL PROTECTED]

Reply via email to