On 2009-05-29 12:44, Paul Northug wrote:
> I am trying to a wrap a C double array as a numpy array to pass to a
> python function. I am using PyArray_SimpleNewFromData but I am getting
> a bus error.
>
> A contrived example (at bottom) reproduces the error. What am I doing
> wrong? I tried to follow the example given in an earlier post by Dag
> and Marcin.

You must call import_array() before using any PyArray_* functions.

-- 
Robert Kern

"I have come to believe that the whole world is an enigma, a harmless enigma
  that is made terrible by our own mad attempt to interpret it as though it had
  an underlying truth."
   -- Umberto Eco

_______________________________________________
Cython-dev mailing list
[email protected]
http://codespeak.net/mailman/listinfo/cython-dev

Reply via email to