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.

openvino python inference api import error

openvino
Beginner
1,283 Views

I want to use openvino for object detection.
I installed it in conda environment on ubuntu 20.

I added this line in .bashrc:

export LD_LIBRARY_PATH=/home/user/anaconda3/envs/openvino/bin/python3/../../lib:${LD_LIBRARY_PATH}

I run after:

source .bashrc

which python # gives /home/user/anaconda3/envs/openvino/bin/python
echo $PYTHONPATH # does not return anything

 

I try to import:

from openvino.inference_engine import IENetwork, IECore

I go this error:

**from .ie_api import *
ImportError: libtbb.so.2: cannot open shared object file: No such file or directory**

0 Kudos
2 Replies
Iffa_Intel
Moderator
1,242 Views

Greetings,

 

First and foremost, please note that onlt these OS are currently supported by OpenVINO

 

  • Ubuntu 18.04.x long-term support (LTS), 64-bit
  • CentOS 7.6, 64-bit (for target only)
  • Yocto Project v3.0, 64-bit (for target only and requires modifications)

 

Hence the operation of OpenVINO in Ubuntu 20 is not validated and not guaranteed to work.

 

However, you may check whether the file prompted really exist or not and also run your command with sudo.

Please help to refer this Install Intel® Distribution of OpenVINO™ toolkit from Anaconda* Cloud to know further regarding requirements and limitations.

 

Sincerely,

Iffa

0 Kudos
Iffa_Intel
Moderator
1,208 Views

Greetings,


Intel will no longer monitor this thread since we have provided a solution. If you need any additional information from Intel, please submit a new question


Sincerely,

Iffa


0 Kudos
Reply