Community
cancel
Showing results for 
Search instead for 
Did you mean: 
Highlighted
Employee
112 Views

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

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
Highlighted
Moderator
59 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