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.

Problem in make examples in NCSDk-2


making compile


mvNCCompile -w bvlc_googlenet.caffemodel -s 12 deploy.prototxt


Traceback (most recent call last):


File "/usr/local/bin/mvNCCompile", line 35, in


from Controllers.Scheduler import load_myriad_config, load_network


File "/usr/local/bin/ncsdk/Controllers/", line 24, in


from Controllers.Optimizer import postParsingOptimizations, selectImplementations, streamEverythingSchedule, fixTensors, eliminateNoOps


File "/usr/local/bin/ncsdk/Controllers/", line 25, in


from Controllers.Parsers.Parser.Conversion import Conversion


File "/usr/local/bin/ncsdk/Controllers/Parsers/", line 3, in


from .Caffe import CaffeParser


File "/usr/local/bin/ncsdk/Controllers/Parsers/", line 30, in


import caffe


File "/opt/movidius/caffe/python/caffe/", line 1, in


from .pycaffe import Net, SGDSolver, NesterovSolver, AdaGradSolver, RMSPropSolver, AdaDeltaSolver, AdamSolver


File "/opt/movidius/caffe/python/caffe/", line 15, in




File "/opt/movidius/caffe/python/caffe/", line 2, in




File "/usr/local/lib/python3.5/dist-packages/skimage/", line 158, in


from .util.dtype import *


File "/usr/local/lib/python3.5/dist-packages/skimage/util/", line 7, in


from .arraycrop import crop


File "/usr/local/lib/python3.5/dist-packages/skimage/util/", line 8, in


from numpy.lib.arraypad import _validate_lengths


ImportError: cannot import name '_validate_lengths'


Makefile:80: recipe for target 'compile' failed


make[4]: *** [compile] Error 1


make[4]: Leaving directory '/home/narveeryadav/ncsdk-'


cp: cannot stat '../../caffe/GoogLeNet/graph': No such file or directory


Makefile:9: recipe for target 'googlenet' failed


make[3]: *** [googlenet] Error 1


make[3]: Leaving directory '/home/narveeryadav/ncsdk-'


Makefile:13: recipe for target 'multistick_cpp/.' failed


make[2]: *** [multistick_cpp/.] Error 2


make[2]: Leaving directory '/home/narveeryadav/ncsdk-'


Makefile:12: recipe for target 'apps/.' failed


make[1]: *** [apps/.] Error 2


make[1]: Leaving directory '/home/narveeryadav/ncsdk-'


Makefile:57: recipe for target 'examples' failed


make: *** [examples] Error 2
0 Kudos
3 Replies

Hi @Narveer_241


It looks like you are using on older version of the NCSDK v2. Could you try with version


git clone -b ncsdk2 cd <ncs dirrectory> make install make examples




0 Kudos

Hi @Jesus_at_Intel ,


I'm facing the same problem. I followed the instruction as given by you. The only thing I had to change was the if/fi condition in the that checks for AVX support (lines 42-45 in because if was failing with the error "Intel Advanced Vector Extensions support required but not detected". I referred to this post on this forum where someone else had this issue and I commented out those lines and it installed successfully.


But when I go to "make examples" it throws me the same error as given by OP. Specifically, it's giving the "recipe for target X failed" where X is:


1) googlenet


2) apps/.


3) multistick_cpp/.


3) examples


(Sorry I'm on a different machine else I would've copy-pasted the error).


Can you please recommend the path forward. Since it does not give an pre-requisites (e.g. googlenet, TF, Caffee) that need to be installed, I did not install these.



0 Kudos

Hi @anshulvj


It's hard to pinpoint what the issue may be without the full error/log. Could you please share the whole error message and the NCSDK version you are installing?


Give the following a try as I had a similar issue with the make examples.


Uninstall the current SDK, run the following commands in the NCSDK directory


make clean && make uninstall


Remove the NCSDK directory and pull from github again.


sudo rm -r <NCSDK Dir> git clone -b ncsdk2


Remove any numpy packages & verify


pip3 uninstall numpy pip3 list | grep numpy


Install and make examples, run the following commands in the new NCSDK directory.


make install make examples




0 Kudos