[Cython] Memory views not working on Python 2.6.6, NumPy 1.3.0, doing smth wrong?

Sturla Molden sturla at molden.no
Mon Jun 3 17:50:31 CEST 2013



Den 3. juni 2013 kl. 14:24 skrev "Yury V. Zaytsev" <yury at shurup.com>:

> 
> When I cythonize the following code in my bt.pyx file and run the test
> below with Python 2.7.1 and NumPy 1.7.1 everything works fine, but when
> I try Python 2.6.6 and NumPy 1.3.0 I get the following exception:
> 
> 
> Is there a minimum version of Python and/or NumPy that should be
> installed for this feature to work? If yes, would it be possible to
> include a compile-time check for that?
> 

You need at least NumPy 1.5 for PEP 3118 buffers to work.

Sturla








More information about the cython-devel mailing list