Intel® Distribution of OpenVINO™ Toolkit
Community assistance about the Intel® Distribution of OpenVINO™ toolkit, OpenCV, and all aspects of computer vision-related on Intel® platforms.

NCSDK - Issue in runing make run.py

idata
Employee
780 Views

Path of file : workspace/ncsdk/examples/caffe/GoogLeNet

 

When I run ‘make run_py’

 

I got following error

 

making run_py

 

./run.py

 

Traceback (most recent call last):

 

File "./run.py", line 22, in

 

import cv2

 

ImportError: /opt/ros/kinetic/lib/python2.7/dist-packages/cv2.so: undefined symbol: PyCObject_Type

 

Makefile:96: recipe for target 'run_py' failed

 

The make run_cpp run very well but somehow run_py was giving error to me. I got the same error with other example (AlexNet, inception etc)

0 Kudos
4 Replies
idata
Employee
463 Views

Try this:

 

python run.py
0 Kudos
idata
Employee
463 Views

It works for me after Installing cv2 with below:

 

sudo pip3 install opencv-python
0 Kudos
idata
Employee
463 Views

@manishkumar, it causes by environment settings of ros kinetic. You can easily work around it without "source /opt/ros/kinetic/setup.bash"

0 Kudos
idata
Employee
463 Views

@manishkumar, this might be a good reference to run NCS with ROS - https://ncsforum.movidius.com/discussion/403/ros-movidius-ncs-release-v0-4-0

0 Kudos
Reply