[Numpy-discussion] Compilation problems - bizzare
Charles R Harris
Mon May 5 18:50:39 CDT 2008
On Mon, May 5, 2008 at 5:33 PM, Thomas Hrabe <firstname.lastname@example.org> wrote:
> Hi all,
> currently, I am writing a box of modular functions for exchanging python &
> matlab objects (nd arrays in particular).
> I am facing an odd problem which I can not explain to myself:
> I use
> PyArg_ParseTuple(args, "O!s",&PyArray_Type, &array,&na)
> for parsing the array and a string.
> This function call works perfectly well when called from a static function
> used for extending python.
> However, using the call above in another function encapsulating the call
> above yields a segmentation fault -> python crash -> anger , irritation ...
> : )
> Same with
> PyArray_FromDimsAndData(dimensions,size,(const char)p.first,(char*)value)
> Did somebody ever encounter this?
> By the way, I get a compilation warning
> warning: 'int _import_array()' defined but not used
> Thank you in advance for your help,
Could you attach a code snippet that reproduces the problem? What version of
numpy are you using?
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the Numpy-discussion