Intel® Distribution of OpenVINO™ Toolkit
Community support and discussions about the Intel® Distribution of OpenVINO™ toolkit, OpenCV, and all things computer vision-related on Intel® platforms.
5541 Discussions

Import Error ModuleNotFoundError: No module named '_pyngraph'

simranS
Beginner
1,383 Views

Hi I am trying to inference inside openvino with Intel python distribution using the following Command, but it throws error:  ModuleNotFoundError: No module named '_pyngraph'

Openvino Version: 2021.1

Intel Python Distribution: Python 3.7.7 :: Intel Corporation

Error:

python object_detection_sample_ssd.py -m /home/ubuntu/Documents/Simran/frozen_inference_graph.xml -i /home/ubuntu/Documents/Simran/images/images_2_134.jpg
/home/ubuntu/Downloads/intelpython3/lib/python3.7/importlib/_bootstrap.py:219: RuntimeWarning: compiletime version 3.6 of module 'openvino.inference_engine.ie_api' does not match runtime version 3.7
return f(*args, **kwds)
/home/ubuntu/Downloads/intelpython3/lib/python3.7/importlib/_bootstrap.py:219: RuntimeWarning: compiletime version 3.6 of module 'openvino.inference_engine.constants' does not match runtime version 3.7
return f(*args, **kwds)
Traceback (most recent call last):
File "object_detection_sample_ssd.py", line 26, in <module>
import ngraph as ng
File "/opt/intel/openvino_2021/python/python3.6/ngraph/__init__.py", line 26, in <module>
from ngraph.impl import Node
File "/opt/intel/openvino_2021/python/python3.6/ngraph/impl/__init__.py", line 35, in <module>
from _pyngraph import Dimension
ModuleNotFoundError: No module named '_pyngraph'

Labels (1)
0 Kudos
4 Replies
IntelSupport
Community Manager
1,349 Views

Hi Simran,


Thank you for posting in Intel Distribution for Python forum. We're trying it out from our end. We'll get back to you shortly.


Regards

Gopika


IntelSupport
Community Manager
1,334 Views

Hi Simran


This issue seems to be related to Openvino. We've a separate forum for Openvino toolkit. So we're moving this case to Openvino toolkit forum for faster response.


Regards

Gopika


Iffa_Intel
Moderator
1,306 Views

Greetings,


Usually, these kind of error persist when the setupvars is not initiated. Please note that you need to run it each time you open a new terminal/cmd. Better if you could set it up permanently.


Ensure that you are able to run the demo as in this tutorial: https://docs.openvinotoolkit.org/latest/openvino_docs_install_guides_installing_openvino_linux.html


Sincerely,

Iffa


Iffa_Intel
Moderator
1,222 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


Reply