When running the command "ImportError: dynamic module does not define module export function (PyInit_cv_bridge_boost)", I encountered an error as follows:
My system environment:
ubuntu18.04
python=3.7
carla=0.9.12
opencv-python=3.4.17.61
ros version = melodic.
and I compiled it the same way I did on the web, replacing python2 with python3. by
catkin_make --cmake-args \ -DCMAKE_BUILD_TYPE=Release \ -DPYTHON_EXECUTABLE=/home/jump/anaconda3/envs/carla0911/bin/python3 \ -DPYTHON_INCLUDE_DIR=/home/jump/anaconda3/envs/carla0911/include/python3.7m \ -DPYTHON_LIBRARY=/home/jump/anaconda3/envs/carla0911/lib/libpython3.7m.so
When running the command "ImportError: dynamic module does not define module export function (PyInit_cv_bridge_boost)", I encountered an error as follows:
My system environment:
and I compiled it the same way I did on the web, replacing python2 with python3. by
catkin_make --cmake-args \ -DCMAKE_BUILD_TYPE=Release \ -DPYTHON_EXECUTABLE=/home/jump/anaconda3/envs/carla0911/bin/python3 \ -DPYTHON_INCLUDE_DIR=/home/jump/anaconda3/envs/carla0911/include/python3.7m \ -DPYTHON_LIBRARY=/home/jump/anaconda3/envs/carla0911/lib/libpython3.7m.so