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.

RuntimeError in make examples

idata
Employee
1,408 Views

Hi,

 

I had a RuntimeError in make examples.

 

 

RuntimeError: module compiled against API version 0xb but this version of numpy is 0xa

 

 

Please give me any advice to solve the problem.

 

My environment:

 

Raspberry PI3, Raspbian stretch with desktop

 

Movidius NC SDK version: 1.10.01.00

 

$ uname -a

 

Linux raspberrypi 4.9.59-v7+ #1047 SMP Sun Oct 29 12:19:23 GMT 2017 armv7l GNU/Linux

 

My operation:

 

I followed the Movidius quick start guide below.

 

mkdir -p ~/workspace cd ~/workspace git clone https://github.com/movidius/ncsdk.git cd ~/workspace/ncsdk make install

 

After make install, there are no error.

 

I opened a new terminal window and checked environment variable, PYTHONPATH=:/opt/movidius/caffe/python.

 

then,

 

cd ~/workspace/ncsdk make examples Continue installing OpenCV (y/n) ? n

 

Message:

 

I got the following message;

 

 

 

making compile

 

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

 

mvNCCompile v02.00, Copyright @ Movidius Ltd 2016

 

Traceback (most recent call last):

 

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

 

create_graph(args.network, args.inputnode, args.outputnode, args.outfile, args.nshaves, args.inputsize, args.weights)

 

File "/usr/local/bin/mvNCCompile", line 100, in create_graph

 

from Controllers.CaffeParser import parse_caffe

 

File "/usr/local/bin/ncsdk/Controllers/CaffeParser.py", line 29, in

 

import caffe

 

File "/opt/movidius/caffe/python/caffe/init.py", line 1, in

 

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

 

File "/opt/movidius/caffe/python/caffe/pycaffe.py", line 15, in

 

import caffe.io

 

File "/opt/movidius/caffe/python/caffe/io.py", line 2, in

 

import skimage.io

 

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

 

from .manage_plugins import *

 

File "/usr/local/lib/python3.5/dist-packages/skimage/io/manage_plugins.py", line 28, in

 

from .collection import imread_collection_wrapper

 

File "/usr/local/lib/python3.5/dist-packages/skimage/io/collection.py", line 14, in

 

from ..external.tifffile import TiffFile

 

File "/usr/local/lib/python3.5/dist-packages/skimage/external/tifffile/init.py", line 1, in

 

from .tifffile import imsave, imread, imshow, TiffFile, TiffWriter, TiffSequence

 

File "/usr/local/lib/python3.5/dist-packages/skimage/external/tifffile/tifffile.py", line 293, in

 

from . import _tifffile

 

RuntimeError: module compiled against API version 0xb but this version of numpy is 0xa

 

Makefile:80: target 'compile' recipe failed

 

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

 

 

 

Thanks,

0 Kudos
3 Replies
idata
Employee
1,088 Views

Have the exact same issue with mvNCCompile v02.00. I installed opencv separately (version 3.3) is this a problem?

0 Kudos
idata
Employee
1,088 Views

Upgrade numpy to 1.13 issue is fixed.

0 Kudos
idata
Employee
1,088 Views

Hi, manojgeorge

 

I checked and upgraded numpy version as below.

 

pip3 show numpy ... Version : 1.12.1 ... sudo pip3 install --upgrade numpy ... pip3 show numpy ... Version : 1.13.3 ...

 

I could go to next step in "make examples".

 

Thank you very much.

0 Kudos
Reply