-
Notifications
You must be signed in to change notification settings - Fork 18.6k
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
error when call 'make pycaffe' #44
Comments
The new pycaffe updates require numpy >= 1.7 (which was added to Ubuntu in 13.04). If upgrading numpy (or using Anaconda etc.) is not an option, I believe the following patch should work around the issue, although I don't have a build environment I can use to test it right now.
|
thanks man 👍 |
Sorry for making a dupe (#50)...haven't done much github and didn't see the full list of issues. It turned out that my numpy version was pre 1.7 so I upgraded to 1.8.0 and did a clean build and tried 'make pycaffe' again but got the exact same errors. |
Are you sure it isn't still including the header files of an older, less than 1.7, version of numpy? Please check your Makefile.config to see that the numpy 1.8.0 headers are included. A common case is accidentally including an older, system, numpy over a recent, local, numpy (such as anaconda). |
@longjon Thanks |
@middlecode I think the main problem you might have is because you install numpy through "sudo apt-get install python-numpy" rather than through "sudo pip install numpy". Notice that if you do both, you would probably get the same errors. So make sure you run "sudo apt-get remove python-numpy" and also you run "sudo pip install numpy" as the readme suggested. BTW, anyone has a suggestions on the alternative for apt-get? It seems apt-get is bad and it always get the outofdate libraries. Although this question is out of interest. :) |
as suggested by @longjon #44 (comment)
as suggested by @longjon BVLC#44 (comment)
Cherry pick some commits for v0.14
…fe.time() method BVLC#44 - add debug log
Hi,
Need help for this.
When i compile the caffe 'make all' , everything is ok. But when compile for python 'make pycaffe' , it showed error :
python/caffe/pycaffe.cpp: In member function âboost::python::api::object CaffeBlobWrap::get_data()â:
python/caffe/pycaffe.cpp:72:74: error: âPyArray_SetBaseObjectâ was not declared in this scope
python/caffe/pycaffe.cpp: In member function âboost::python::api::object CaffeBlobWrap::get_diff()â:
python/caffe/pycaffe.cpp:85:74: error: âPyArray_SetBaseObjectâ was not declared in this scope
I followed installed all the library which is mentioned inside 'Prerequisites' part. Looking in google but can find any clue.
I use Ubuntu 12.04.
Thanks.
The text was updated successfully, but these errors were encountered: