Cactice / openai-ros-workspace

0 stars 0 forks source link

undefined symbol: PyModule_Create2 #2

Open Cactice opened 4 years ago

Cactice commented 4 years ago

Hmmm

Here's the description from the official documentaion for PyModule_Create2 I still don't know why it's giving me this error though ...

 PyObject* PyModule_Create2(PyModuleDef *def, int module_api_version)
    Return value: New reference.

Create a new module object, given the definition in def, assuming the API version module_api_version. If that version does not match the version of the running interpreter, a RuntimeWarning is emitted.
Cactice commented 4 years ago

you might need libpython3*.so file check your workspace for it

 find ~/venv/ -name libpython3*.so

use it like this maybe?

catkin build --cmake-args \               
            -DCMAKE_BUILD_TYPE=Release \
            -DPYTHON_EXECUTABLE=~/venv/bin/python \
            -DPYTHON_INCLUDE_DIR=~/venv/include/python3.7m \
            -DPYTHON_LIBRARY=~/venv/lib/python3.7/config-3.7m-x86_64-linux-gnu/libpython3.7m.o