[prev in list] [next in list] [prev in thread] [next in thread]
List: koffice
Subject: Re: (kspread startup) Trying to run python scripts...
From: David Faure <David.Faure () insa-lyon ! fr>
Date: 1999-02-18 10:29:52
[Download RAW message or body]
Forget this.
Damned redhat packages compiled with the wrong egcs or ld.so or I don't
know what. Recompiling python will solve this. Hopefully.
On Tue, Feb 16, 1999 at 08:58:53PM +0100, David Faure wrote:
> I have problems using kspread - the python stuff even breaks opening a
> simple .ksp file.
>
> It seems there is a problem with the math module.
> On startup, kspread says
>
> Executing /opt/kde/share/apps/kspread/scripts/xcllib.py
> Traceback (innermost last):
> File "<string>", line 1, in ?
> ImportError: /usr/lib/python1.5/lib-dynload/mathmodule.so: undefined symbol: \
> PyExc_OverflowError Done result=-1
>
> However the other two scripts (classes.py and kspread_lib.py) run
> fine. Which is why I suspect this math module.
>
> The problem doesn't happen when the above error message is printed, but
> later, when opening a file :
> (I had to fix the mimetype stuff, now it works fine (e.g. returns x-kspread
> for a kspread file), but there is another problem, as you can see :
>
> Program received signal SIGSEGV, Segmentation fault.
> 0xa02 in ?? ()
> (gdb) bt
> #0 0xa02 in ?? ()
> #1 0x80ce862 in _PyImport_LoadDynamicModule (name=0xbfffdbb0 "math",
> pathname=0xbfffd74c "/usr/lib/python1.5/lib-dynload/mathmodule.so", fp=0x8254eb0) \
> at ./importdl.c:586 #2 0x80cd120 in load_module (name=0xbfffdbb0 "math", \
> fp=0x8254eb0, buf=0xbfffd74c "/usr/lib/python1.5/lib-dynload/mathmodule.so", \
> type=3) at import.c:1146 #3 0x80cdbbe in import_submodule (mod=0x8112cc4, \
> subname=0xbfffdbb0 "math", fullname=0xbfffdbb0 "math") at import.c:1681
> #4 0x80cd80d in load_next (mod=0x8112cc4, altmod=0x8112cc4, p_name=0xbfffdfbc, \
> buf=0xbfffdbb0 "math", p_buflen=0xbfffdbac) at import.c:1536
> #5 0x80cd4f8 in import_module_ex (name=0x0, globals=0x81679d0, locals=0x81679d0, \
> fromlist=0x82939a0) at import.c:1378
> #6 0x80cd624 in PyImport_ImportModuleEx (name=0x84b6dac "math", globals=0x81679d0, \
> locals=0x81679d0, fromlist=0x82939a0) at import.c:1422
> #7 0x80bea38 in builtin___import__ (self=0x0, args=0x829ca78) at bltinmodule.c:68
> #8 0x80c4d79 in call_builtin (func=0x8178b08, arg=0x829ca78, kw=0x0) at \
> ceval.c:2354 #9 0x80c4ca4 in PyEval_CallObjectWithKeywords (func=0x8178b08, \
> arg=0x829ca78, kw=0x0) at ceval.c:2319 #10 0x80c37fb in eval_code2 (co=0x82e3290, \
> globals=0x81679d0, locals=0x81679d0, args=0x0, argcount=0, kws=0x0, kwcount=0, \
> defs=0x0, defcount=0, owner=0x0) at ceval.c:1441 #11 0x80c1aab in PyEval_EvalCode \
> (co=0x82e3290, globals=0x81679d0, locals=0x81679d0) at ceval.c:323 #12 0x80d2208 in \
> run_node (n=0x84b35d0, filename=0x810dc29 "<string>", globals=0x81679d0, \
> locals=0x81679d0) at pythonrun.c:882
> #13 0x80d21d1 in run_err_node (n=0x84b35d0, filename=0x810dc29 "<string>", \
> globals=0x81679d0, locals=0x81679d0) at pythonrun.c:867
> #14 0x80d2192 in PyRun_String (
> ---Type <return> to continue, or q <return> to quit---
> str=0x8290550 "from math import *\n\nprint \"Library started\"\n\ndef weis( x \
> ):\n\treturn 105.9\n\ndef Te stMe():\n\treturn 100.2\n\ndef xclCellTest( table, \
> column, row):\n\tprint \"xclCell\"\n\treturn 100\n\ndef Sum ( rect ):\n\tv = \
> 0.0\n\tt"..., start=257, globals=0x81679d0, locals=0x81679d0) at pythonrun.c:844 \
> #15 0x808d1c8 in KPythonModule::runCodeStr ()
> ...
>
> I tried to upgrade python, but to no avail. (same result).
> Note that the above shows that it segfault on the "import math"...
> How can I test this ? - the test_dl.py in python files doesn't work because
> it looks for a libc5 lib for testing ... :(
>
> Any hint ?
>
> Does it work for you ?
>
> Thanks.
>
> --
> ____________________________________________________________________
> > >
> > David FAURE |
> > E-mail : David.Faure@insa-lyon.fr, faure@kde.org |
> > http://www.insa-lyon.fr/People/AEDI/dfaure/index.html |
> > ____________________________________________________________________|
--
____________________________________________________________________
> >
> David FAURE |
> E-mail : David.Faure@insa-lyon.fr, faure@kde.org |
> http://www.insa-lyon.fr/People/AEDI/dfaure/index.html |
> ____________________________________________________________________|
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic