ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | ros @ Robotics Stack Exchange
Ask Your Question

Gregor's profile - activity

2018-10-02 07:00:09 -0500 received badge  Nice Question (source)
2017-12-20 04:11:53 -0500 commented question ImportError with Kinetic OpenCV3 and Python3

Sorry, I didn't get any further there

2016-12-23 15:32:37 -0500 received badge  Student (source)
2016-12-23 15:32:34 -0500 received badge  Famous Question (source)
2016-12-23 15:32:34 -0500 received badge  Notable Question (source)
2016-05-24 18:39:48 -0500 received badge  Popular Question (source)
2016-05-13 10:55:09 -0500 asked a question ImportError with Kinetic OpenCV3 and Python3

When trying to import cv2 in a Python3 environment with ROS kinetic installed under Ubuntu 15.10, I get the following error:

Traceback (most recent call last):
  File "<input>", line 1, in <module>
    import cv2
ImportError: dynamic module does not define init function (PyInit_cv2)

When I import it in a Python2.7 environment, everything is working fine. Is the packaged OpenCV3 that comes with kinetic not compatible with Python3?