[SciPy-user] Python embedded in C : import scipy fails

Bill Baxter wbaxter at gmail.com
Fri Mar 9 13:20:01 EST 2007


Don't know if this is the problem, but in my app, I call
"import_array1(false);" right after calling Py_Initialize().

--bb

On 3/9/07, Elisabeth Maschke-Dutz <maschke at molgen.mpg.de> wrote:
>
> Hallo,
>
> I want to use some programs that uses scipy
> in an in C embedded python program.
> import sys
> import os
> from string import join
> ..........
> all those comands work fine.
> The sys.path is found, it looks as if the whole environment
> is the same as it is when I start python in a shell.
> The directory .../python2.4/site-packages/scipy is also set
> in sys.path.
>
> But it is impossible to import scipy,
> the program terminates with a segmentation fault or the function is not
> found.
> The same problem occurs if I try to import numpy.
> ...
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.scipy.org/pipermail/scipy-user/attachments/20070310/2b7883e0/attachment.html>


More information about the SciPy-User mailing list