![](https://secure.gravatar.com/avatar/5c708d3d225e9b906a4f059d134ee880.jpg?s=120&d=mm&r=g)
13 Jun
2021
13 Jun
'21
7:30 a.m.
After reading the docs, it turns out that `np.PyArray_FROM_OTF(a, np.NPY_LONG, np.NPY_ARRAY_FORCECAST) != np.PyArray_FROM_O(a)` prevents the error from occurring. -- Sent from: http://numpy-discussion.10968.n7.nabble.com/