You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If I build with the current files, there are a lot of incompatible warnings as:
warning: passing argument 1 of ‘PyArray_DATA’ from incompatible pointer type [enabled by default]
arg2 = (double*)PyArray_DATA(obj1);
numpy/core/include/numpy/ndarraytypes.h:1460:1: note: expected ‘struct PyArrayObject *’ but argument is of type ‘struct PyObject *’
PyArray_DATA(PyArrayObject *arr)
If I comment out '#defining NPY_NO_DEPRECATED_API NPY_1_7_API_VERSION', those incompatible warnings disappears, but a single new warning presents as:
warning: #warning "Using deprecated NumPy API, disable it by " "#defining NPY_NO_DEPRECATED_API NPY_1_7_API_VERSION" [-Wcpp]
#warning "Using deprecated NumPy API, disable it by ".
From the manual, the numpy scalar array type issue should be addressed by putting pyfragments.swg in the source folder. However, it does not work for me. The numpy array scalars still cannot be passed to C. It works previously when I was using numpy1.6. After I updated the new version, all these issues come along.
What I was wrong of using these files? Is there a proper way to solve these issues?
The text was updated successfully, but these errors were encountered:
Currently I am using numpy_version 1.9.2.
If I build with the current files, there are a lot of incompatible warnings as:
warning: passing argument 1 of ‘PyArray_DATA’ from incompatible pointer type [enabled by default]
arg2 = (double*)PyArray_DATA(obj1);
numpy/core/include/numpy/ndarraytypes.h:1460:1: note: expected ‘struct PyArrayObject *’ but argument is of type ‘struct PyObject *’
PyArray_DATA(PyArrayObject *arr)
If I comment out '#defining NPY_NO_DEPRECATED_API NPY_1_7_API_VERSION', those incompatible warnings disappears, but a single new warning presents as:
warning: #warning "Using deprecated NumPy API, disable it by " "#defining NPY_NO_DEPRECATED_API NPY_1_7_API_VERSION" [-Wcpp]
#warning "Using deprecated NumPy API, disable it by ".
From the manual, the numpy scalar array type issue should be addressed by putting pyfragments.swg in the source folder. However, it does not work for me. The numpy array scalars still cannot be passed to C. It works previously when I was using numpy1.6. After I updated the new version, all these issues come along.
What I was wrong of using these files? Is there a proper way to solve these issues?
The text was updated successfully, but these errors were encountered: