Open maxblumental opened 5 years ago
@maxblumental Could you please check with which python library version you are building pybind against?
One way to check is to add a line message(${PYTHON_INCLUDE_DIR})
just below include_directories(${PYTHON_INCLUDE_DIR})
inside the file CMakeLists.txt. Keep an eye for the result. It should print something like, /usr/include/python3.*
.
Note: I was unable to reproduce the issue, import starwrap as sw
worked with python3 on Ubuntu 16.04 & 18.04. Please provide more details if the issue persists.
On Ubuntu 16.04 I built
starwrap.so
and put it inpython/test
. Then:Did anyone face the problem?
Update: it works in python 2.7, but fails with python3 (I tried 3.6.5 and 3.7.2).