Skip to content
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

Unable to detect python version #82

Open
hoanglehaithanh opened this issue May 23, 2018 · 1 comment
Open

Unable to detect python version #82

hoanglehaithanh opened this issue May 23, 2018 · 1 comment

Comments

@hoanglehaithanh
Copy link

When I tried to include
#include <boost/numpy.hpp>

error occurs:
In file included from /usr/include/boost/python/detail/prefix.hpp:13:0, from /usr/include/boost/python/args.hpp:8, from /usr/include/boost/python.hpp:11, from /usr/local/include/boost/numpy/dtype.hpp:13, from /usr/local/include/boost/numpy.hpp:13, from exportModule.h:9, from common.h:42, from main.cpp:45: /usr/include/boost/python/detail/wrap_python.hpp:78:2: error: #error Python 2.2 or higher is required for this version of Boost.Python. #error Python 2.2 or higher is required for this version of Boost.Python. ^ Makefile.sample_detection:96: recipe for target '../bin/chobj/main.o' failed

@TallJimbo
Copy link
Member

This looks like a problem with Boost.Python, not just Boost.NumPy, so you might be better of asking on https://github.com/boostorg/python. If you can lose a recent version of Boost.Python you should also not need to use this version of Boost.NumPy, as it has now been incorporated within Boost.Python itself.

My best guess on your actual problem is you do not have Python.h in your compiler's include path, but you will need to provide a lot more information about what you are actually doing to get much help beyond that here or elsewhere.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants