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.

Segmentation_demo.py - ImportError: No module named 'openvino'

Wolf__Frederik
Beginner
491 Views

I'm trying to run the  semantic segmentation demo from model zoo (https://docs.openvinotoolkit.org/2019_R1/_semantic_segmentation_adas_0001_description_semantic_segmentation_adas_0001.html)

I am working with a fresh Ubuntu 16.04 install on which I installed openvino_2019.2.242 as described in https://software.intel.com/en-us/articles/get-started-with-neural-compute-stick 
The tests of step 4 finished their run successfully.

after that I installed python-pip3 and opencv-python (via pip3). 

When I try to run the following: /opt/intel/openvino_2019.2.242/deployment_tools/open_model_zoo/demos/python_demos/segmentation_demo$ python3 segmentation_demo.py -h

I get this error:

Traceback (most recent call last):
  File "segmentation_demo.py", line 25, in <module>
    from openvino.inference_engine import IENetwork, IECore
ImportError: No module named 'openvino'

Where do I find that package?

Regards,

Frederik

0 Kudos
3 Replies
Wolf__Frederik
Beginner
491 Views

I forgot to 
source /opt/intel/openvino/bin/setupvars.sh

it works now

0 Kudos
Wolf__Frederik
Beginner
491 Views

I forgot to initialize my environment.

source /opt/intel/openvino/bin/setupvars.sh

solved the problem

0 Kudos
Shubha_R_Intel
Employee
491 Views

Dear Wolf, Frederik,

glad you figured it out. Yep, 

source /opt/intel/openvino/bin/setupvars.sh cannot be skipped !

Thanks,

Shubha

0 Kudos
Reply