Skip to content

Unable to detect python version #82

Open

Description

@hoanglehaithanh

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

Activity

  1. TallJimbo commented on May 23, 2018

    @TallJimbo
    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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions