ImportError: catkin_ws/devel/lib/python2.7/dist-packages/cv2.so: undefined symbol: PyCObject_Type
mathmax12 opened this issue · comments
mathmax12 commented
After the build, I have some bad time to get rid of this issue.
My system is ubuntu 18.04, python 2.7
Any suggestions are appreciated.
Waiting 5 seconds after advertising topics...I0813 23:58:43.526917 67411 depth_segmentation_node.cpp:641] Starting depth segmentation ...
Traceback (most recent call last):
File "/home/xtree/catkin_ws/src/mask_rcnn_ros/scripts/mask_rcnn_node.py", line 5, in <module>
import cv2
ImportError: /home/xtree/catkin_ws/devel/lib/python2.7/dist-packages/cv2.so: undefined symbol: PyCObject_Type
I0813 23:58:43.594337 67411 depth_segmentation.cpp:289] Dynamic Reconfigure Request.
[mask_rcnn-2] process has died [pid 67410, exit code 1, cmd /home/xtree/catkin_ws/src/mask_rcnn_ros/scripts/mask_rcnn_node.py ~input:=rgb_image_sub_topic __name:=mask_rcnn __log:=/home/xtree/.ros/log/96d5a0f0-ddfb-11ea-b777-04d4c44dfa0a/mask_rcnn-2.log].
log file: /home/xtree/.ros/log/96d5a0f0-ddfb-11ea-b777-04d4c44dfa0a/mask_rcnn-2*.log
done.
mathmax12 commented
The virtual env solved this issue.
hyclover commented
Hello,I have this issue after the build. Please tell me about creating the virtual env. Should I used anaconda to create the virtual env ?