[TIP] OpenCV module이 ROS(python2.7)의 것과 충돌 시 해결방법
[증상] Python 3.5.2 (default, Nov 17 2016, 17:05:23) [GCC 5.4.0 20160609] on linux Type "help", "copyright", "credits" or "license" for more information. >>> import cv2 Traceback (most recent call last): File "", line 1, in ImportError: /opt/ros/kinetic/lib/python2.7/dist-packages/cv2.so: undefined symbol: PyCObject_Type [원인] ROS 설치 시 .bashrc에 PYTHONPATH를 설정해주게 되는데, 이것이 문제를 일으키는 것이다. 해결법은 이 PYTHON..
2020. 1. 23. 11:58