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

Python 3.6 error with ROS Kinetic

asked 2017-08-12 16:10:20 -0500

Daniel Tobon gravatar image

updated 2019-04-11 17:17:24 -0500

jayess gravatar image

Hello. I am trying to import cv2 in python3 shell and i get:

Python 3.6.2 (default, Aug  1 2017, 15:35: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 "<stdin>", line 1, in <module>
  File "/usr/local/lib/python3.6/site-packages/cv2/__init__.py", line 7, in <module>
    **from . import cv2**

**ImportError: cannot import name 'cv2'**

how can i solve this?

Also i have vitual enviroment with "workon"

edit retag flag offensive close merge delete

Comments

Where you able to solve this?

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

1 Answer

Sort by ยป oldest newest most voted
0

answered 2019-04-11 15:59:18 -0500

MarkyMark2012 gravatar image

You need to set up Open CV and then provide a link thus:

It will be something like:

sudo ln -s /usr/local/python/cv2/python-3.6/cv2.cpython-36m-arm-linux-gnueabihf.so cv2.so

Mark

edit flag offensive delete link more

Question Tools

2 followers

Stats

Asked: 2017-08-12 16:10:20 -0500

Seen: 407 times

Last updated: Apr 11 '19