Robotics StackExchange | Archived questions

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?

Asked by Gregor on 2016-05-13 10:38:22 UTC

Comments

Same question here.Where you able to get a soultion??

Asked by zishan on 2017-12-20 05:05:02 UTC

Sorry, I didn't get any further there

Asked by Gregor on 2017-12-20 05:11:53 UTC

Answers