I need to use python 3.6 in a kinetic ROS package that manipulates images using opencv. To transfer images in and out of the package I'm using cv_bridge, but it is only supported on python 2.7 so I'm trying to figure out a way to get around that. I have seen reports of this being possible but I'm unable to reproduce the results.
Below is the dockerfile which I use to build my environment. Running it, starting a python3.6 shell and importing cv_bridge
from cv_bridge.boost.cv_bridge_boost import getCvType
gives the following error:
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
ImportError: dynamic module does not define module export function (PyInit_cv_bridge_boost)
running source /cv_bridge_ws/install/setup.bash doesn't help. Strangely though if I run that exact same command another time then it seems to work.
How do I properly source the workspace to use cv_bridge?
I need to use python 3.6 in a kinetic ROS package that manipulates images using opencv. To transfer images in and out of the package I'm using cv_bridge, but it is only supported on python 2.7 so I'm trying to figure out a way to get around that. I have seen reports of this being possible but I'm unable to reproduce the results.
Below is the dockerfile which I use to build my environment. Running it, starting a python3.6 shell and importing cv_bridge
gives the following error:
running
source /cv_bridge_ws/install/setup.bash
doesn't help. Strangely though if I run that exact same command another time then it seems to work.How do I properly source the workspace to use cv_bridge?