On Thu, Oct 8, 2009 at 17:28, David Warde-Farley <d...@cs.toronto.edu> wrote:
> I'm trying to use PyArray_FROM_OF from Cython and the generated C code
> keeps crashing.  Dag said on the Cython list that he wasn't sure what
> was going on, so maybe someone here will have an idea.

You must call import_array() at the top level before you can use any
numpy C API functions.

http://wiki.cython.org/tutorials/numpy#UsingtheNumpyCAPI

-- 
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
_______________________________________________
NumPy-Discussion mailing list
NumPy-Discussion@scipy.org
http://mail.scipy.org/mailman/listinfo/numpy-discussion

Reply via email to