carla-simulator / ros-bridge

ROS bridge for CARLA Simulator
MIT License
524 stars 431 forks source link

ImportError: dynamic module does not define module export function (PyInit_cv_bridge_boost) #598

Open YUJX19 opened 2 years ago

YUJX19 commented 2 years ago

When running the command "ImportError: dynamic module does not define module export function (PyInit_cv_bridge_boost)", I encountered an error as follows: carla_ros_error

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