- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
reshu@reshu-GL63-8RC:/opt/intel/openvino_2021.3.394/deployment_tools/tools/benchmark_tool$ python benchmark_app.py -m /home/reshu/Desktop/fp16/saved_model.xml -d CPU
Traceback (most recent call last):
File "benchmark_app.py", line 20, in <module>
from openvino.tools.benchmark.main import main
ImportError: No module named openvino.tools.benchmark.main
How to resolve this? I have already added the paths in .bashrc.
- Tags:
- OpenVino
Link Copied
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hello @resh
Thank you for your question!
I guess you didn't initialize the OpenVINO environment in the terminal session.
To initialize the environment you have to use the following command:
source /opt/intel/openvino_2021/bin/setupvars.sh
This command sets all necessary environment variables like LD_LIBRARY_PATH, PYTHONPATH, and e.t.c.
Please, try this command and let us know if you have any questions.
Regards,
Artyom Tugarev
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hello resh,
Thanks for reaching out to us.
I also noticed that you used “python benchmark_app.py” in your command. By default, if “python” used in the command, it will use Python version 2.x. Hence, you should use “python3 benchmark_app.py”.
Regards,
Peh
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Thanks, The issue is resolved now!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hello resh,
This thread will no longer be monitored since this issue has been resolved. If you need any additional information from Intel, please submit a new question.
Regards,
Peh
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page