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.
6404 Discussions

module not found error after converting benchmark app to exe using pyinstaller

Ajay_P_Intel
Employee
1,050 Views

Hi,

I have converted benchmark_app.py to benchmark_app.exe using pyinstaller . 

On executing this exe file getting openvino module not found error. Python file runs fine.. Facing issue after converting the python to exe file .

OpenVino Version Installed : 2020.R4

Command used  to convert :

pyinstaller --onefile --add-data "C:\Program Files (x86)\IntelSWTools\openvino_2020.3.194\deployment_tools\inference_engine\bin\intel64\Release\plugins.xml;." benchmark_app.py

 

Command used to run exe file :

benchmark_app.exe -i "C:\Program Files (x86)\IntelSWTools\openvino\deployment_tools\demo\car.png" -m "C:\Users\ajayprab\Documents\Intel\OpenVINO\openvino_models\ir\public\squeezenet1.1\FP16\squeezenet1.1.xml" -pc -d CPU -niter 10

Error :

Traceback (most recent call last):
File "benchmark_app.py", line 46, in <module>
from openvino.tools.benchmark.main import main
ModuleNotFoundError: No module named 'openvino'
[5540] Failed to execute script benchmark_app

 

0 Kudos
1 Reply
Iffa_Intel
Moderator
997 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