Community
cancel
Showing results for 
Search instead for 
Did you mean: 
Wolf__Frederik
Beginner
155 Views

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

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
155 Views

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

it works now

Wolf__Frederik
Beginner
155 Views

I forgot to initialize my environment.

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

solved the problem

Shubha_R_Intel
Employee
155 Views

Dear Wolf, Frederik,

glad you figured it out. Yep, 

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

Thanks,

Shubha

Reply