Unable to use opencv with ROS
I am trying to follow along this tutorial: http://wiki.ros.org/cv_bridge/Tutoria...
I am getting this error while running the above program:
from cv_bridge.boost.cv_bridge_boost import getCvType
ImportError: dynamic module does not define module export function (PyInit_cv_bridge_boost)
I am using multiple versions of python, the one getting used seems to be: /opt/ros/melodic/lib/python2.7/
since it is in the traceback: /opt/ros/melodic/lib/python2.7/dist-packages/cv_bridge/core.py
echo $PYTHONPATH
gives /home/kringata/catkin_ws/devel/lib/python2.7/dist-packages:/opt/ros/melodic/lib/python2.7/dist-packages
I am using ROS Melodic on Ubuntu18.04