Boost.Python.ArgumentError: Python argument types Error
I'm trying to build graph-tool on Ubuntu 16 using anaconda Python and I did managed to get it compiled, but I get the following error on import. return libcore.openmp_set_schedule(schedule, chunk) Boost.Python.ArgumentError: Python argument types in graph_tool.libgraph_tool_core.openmp_set_schedule(str, int) did not match C++ signature: openmp_set_schedule(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >, int) Help. Thanks in advance. -- View this message in context: http://main-discussion-list-for-the-graph-tool-project.982480.n3.nabble.com/... Sent from the Main discussion list for the graph-tool project mailing list archive at Nabble.com.
On 18.10.2016 18:55, reckoner wrote:
I'm trying to build graph-tool on Ubuntu 16 using anaconda Python and I did managed to get it compiled, but I get the following error on import.
return libcore.openmp_set_schedule(schedule, chunk) Boost.Python.ArgumentError: Python argument types in graph_tool.libgraph_tool_core.openmp_set_schedule(str, int) did not match C++ signature: openmp_set_schedule(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >, int)
This probably means that you used a different Python version when compiling boost-python. If you are using ubuntu and anaconda, it is likely that boost-python is linked against the system's version of Python, not anaconda's. Best, Tiago -- Tiago de Paula Peixoto <tiago@skewed.de>
I removed all the system boost libraries and installed conda install boost. After configure, which I verified is linking to the anaconda boost, checking for boostlib >= 1.54.0... yes checking whether the Boost::Python library is available... yes checking whether boost_python is the correct library... yes checking whether the Boost::IOStreams library is available... yes configure: error: Could not link against boost_python ! Now I'm stuck. Thanks! -- View this message in context: http://main-discussion-list-for-the-graph-tool-project.982480.n3.nabble.com/... Sent from the Main discussion list for the graph-tool project mailing list archive at Nabble.com.
participants (2)
-
reckoner -
Tiago de Paula Peixoto