ImportError with Kinetic OpenCV3 and Python3

asked 2016-05-13 10:38:22 -0500

Gregor gravatar image

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?

edit retag flag offensive close merge delete


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

zishan gravatar image zishan  ( 2017-12-20 04:05:02 -0500 )edit

Sorry, I didn't get any further there

Gregor gravatar image Gregor  ( 2017-12-20 04:11:53 -0500 )edit