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.
6571 Discussions

Import error: cannot import name 'label_cython'

idata
Employee
1,423 Views

After acquiring the NCS, I was able to install and play with the ncappzoo thingy successfully.

 

When I proceed to download the Toolkit and API, while installing the toolkit and make check, this error bounced out.

 

Later when I tried to import caffe using python in terminal, this error reappeared as well. Any idea what caused it and how to solve it?

 

$PYTHONPATH was checked and verified. I also re-installed scikit-image for some reason.

 

Here's what I got:

 

Traceback (most recent call last): File "<stdin>", line 1, in <module> File "/workspace/SDK/caffe/python/caffe/__init__.py", line 1, in <module> from .pycaffe import Net, SGDSolver, NesterovSolver, AdaGradSolver, RMSPropSolver, AdaDeltaSolver, AdamSolver, NCCL, Timer File "/workspace/SDK/caffe/python/caffe/pycaffe.py", line 15, in <module> import caffe.io File "/workspace/SDK/caffe/python/caffe/io.py", line 4, in <module> from skimage.transform import resize File "/usr/local/lib/python3.5/dist-packages/skimage/transform/__init__.py", line 1, in <module> from .hough_transform import (hough_line, hough_line_peaks, File "/usr/local/lib/python3.5/dist-packages/skimage/transform/hough_transform.py", line 3, in <module> from .. import measure File "/usr/local/lib/python3.5/dist-packages/skimage/measure/__init__.py", line 6, in <module> from ._regionprops import regionprops, perimeter File "/usr/local/lib/python3.5/dist-packages/skimage/measure/_regionprops.py", line 7, in <module> from ._label import label File "/usr/local/lib/python3.5/dist-packages/skimage/measure/_label.py", line 1, in <module> from ._ccomp import label_cython as clabel ImportError: cannot import name 'label_cython'
0 Kudos
1 Reply
idata
Employee
1,098 Views

@TheOnlyWing Correct me if I am wrong, but it seems you are having trouble installing the NCSDK. Please try using make install instead of make check.

0 Kudos
Reply