[Numpy-discussion] Multiarray API size mismatch 301 302?

Sebastian Berg sebastian at sipsolutions.net
Thu Aug 13 16:13:26 EDT 2015


So as Julian helped me, it was the wrong style of the function, the
curly bracket has to go on the next line for the API generation to pick
it up.

- Sebastian

On Do, 2015-08-13 at 20:42 +0200, Sebastian Berg wrote:
> On Do, 2015-08-13 at 14:36 -0400, Benjamin Root wrote:
> > Did you do a "git clean -fxd" before re-installing?
> > 
> 
> Yup.
> 
> > 
> > On Thu, Aug 13, 2015 at 2:34 PM, Sebastian Berg
> > <sebastian at sipsolutions.net> wrote:
> >         Hey,
> >         
> >         just for hacking/testing, I tried to add to shape.c:
> >         
> >         
> >         /*NUMPY_API
> >          *
> >          * Checks if memory overlap exists
> >          */
> >         NPY_NO_EXPORT int
> >         PyArray_ArraysShareMemory(PyArrayObject *arr1, PyArrayObject
> >         *arr2, int
> >         work) {
> >             return solve_may_share_memory(arr1, arr2, work);
> >         }
> >         
> >         
> >         
> >         and to numpy_api.py:
> >         
> >             # End 1.10 API
> >             'PyArray_ArraysShareMemory':            (301,),
> >         
> >         
> >         But I am getting the error:
> >         
> >           File "numpy/core/code_generators/generate_numpy_api.py",
> >         line 230, in
> >         do_generate_api
> >             (len(multiarray_api_dict), len(multiarray_api_index)))
> >         AssertionError: Multiarray API size mismatch 301 302
> >         
> >         It is puzzling me, so anyone got a quick idea?
> >         
> >         - Sebastian
> >         
> >         _______________________________________________
> >         NumPy-Discussion mailing list
> >         NumPy-Discussion at scipy.org
> >         http://mail.scipy.org/mailman/listinfo/numpy-discussion
> >         
> > 
> > 
> > _______________________________________________
> > NumPy-Discussion mailing list
> > NumPy-Discussion at scipy.org
> > http://mail.scipy.org/mailman/listinfo/numpy-discussion
> 
> _______________________________________________
> NumPy-Discussion mailing list
> NumPy-Discussion at scipy.org
> http://mail.scipy.org/mailman/listinfo/numpy-discussion

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 819 bytes
Desc: This is a digitally signed message part
URL: <http://mail.python.org/pipermail/numpy-discussion/attachments/20150813/fce7d98e/attachment.sig>


More information about the NumPy-Discussion mailing list