On 10 April 2012 22:53, Dag Sverre Seljebotn <[email protected]> wrote: > On 04/10/2012 09:52 PM, Dag Sverre Seljebotn wrote: >> >> On 04/10/2012 08:32 PM, Lisandro Dalcin wrote: >>> >>> Is there any way to disable special-casing of numpy arrays? IMHO, if >>> I'm not using Cython's numpy.pxd file, Cython should let me decide how >>> to manage the beast. >>> >>> >>> Error compiling Cython file: >>> ------------------------------------------------------------ >>> ... >>> if ((nm != PyArray_DIM(aj, 0)) or >>> (nm != PyArray_DIM(av, 0)) or >>> (si*bs * sj*bs != sv)): raise ValueError( >>> ("input arrays have incompatible shapes: " >>> "rows.shape=%s, cols.shape=%s, vals.shape=%s") % >>> (ai.shape, aj.shape, av.shape)) >>> ^ >>> ------------------------------------------------------------ >>> >>> PETSc/petscmat.pxi:683:11: Cannot convert 'npy_intp *' to Python object >>> >> >> Whoops, sorry about that. I patched on yet another hack here: >> >> >> https://github.com/dagss/cython/commit/6f2271d2b3390d869a53d15b2b70769df029b218 > > > BTW, that's the _numpy branch. >
The fix worked for me. -- Lisandro Dalcin --------------- CIMEC (INTEC/CONICET-UNL) Predio CONICET-Santa Fe Colectora RN 168 Km 472, Paraje El Pozo 3000 Santa Fe, Argentina Tel: +54-342-4511594 (ext 1011) Tel/Fax: +54-342-4511169 _______________________________________________ cython-devel mailing list [email protected] http://mail.python.org/mailman/listinfo/cython-devel
