[SciPy-user] segfault when calling PyArray_DescrFromType
martin.wiechert at gmx.de
Thu Feb 9 08:52:11 CST 2006
Found it (in the "old" docs).
Must #define PY_ARRAY_UNIQUE_SYMBOL and call import_array ().
Sorry to bother.
On Thursday 09 February 2006 11:41, Martin Wiechert wrote:
> Hi list,
> I'm trying to build an C extension, which uses arrays. It builds, and I can
> import it from python, but the very first call to a numpy function
> ea = (PyObject *) PyArray_DescrFromType (PyArray_INT);
> gives me a segfault.
> I have absolutely no clue, but
> nm -l mymodule.so | grep rray
> 000026a0 b
> and this line reads
> static void **PyArray_API=NULL;
> which looks suspicious to me. Something wrong with my setup.py?
> Any suggestions?
> Regards, Martin.
> SciPy-user mailing list
> SciPy-user at scipy.net
More information about the SciPy-user