-
Notifications
You must be signed in to change notification settings - Fork 20
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
When make PyArray_SHAPE error #1
Comments
Hi Pierre, maybe you have to change the NUMPY_INCLUDE = /usr/local/lib/python$(PYTHON_VERSION)/dist-packages/numpy/core/include variable in the makefile. I have set the default dir for Ubuntu 14.04. WHat is the numpy include dir for your machine? |
Thank you for your reply. But i find that there isn't any problem with the numpy path in my machine. |
It looks clearly a problem with the inclusion of the .hpp numpy header. It may be due to numpy version, even though I think it is unlikely, otherwise it may be due to the wrong path in the include. |
/usr/include/python2.7/bytearrayobject.h |
Now try those: |
The results: |
Thus, there is either a previous error that generate this one as well, or there are 2 include dir that contains a ndarrayobject.h that make the trouble, I guess. |
Thank you. I will check it |
PierreHao, were you ever able to resolve this issue? I've followed your discussion. I'm using numpy 1.9.2 which has PyArray_SHAPE. Was the issue related to multiple include directories? Thanks! |
After download the code, int the root folder, make, but there is an error: 'PyArray_SHAPE' was not declared in this scope. py_liblinear.cpp
Ubuntu 12.04
The text was updated successfully, but these errors were encountered: