Article ID: 000059012 Content Type: Compatibility Last Reviewed: 05/20/2022

Unable to Execute build.exe from OpenVINO™ Python* Script Using PyInstaller

BUILT IN - ARTICLE INTRO SECOND COMPONENT
Summary

How to add OpenVINO dependencies to the PyInstaller command line to generate a functional .exe file from an OpenVINO python script.

Description
  1. Executed this command line to create a build.exe file from an OpenVINO python script:
    pyinstaller --onefile --add-data "D:\person-detection-retail-0013.xml;." Social_Distancing_MQTT.py
  2. Ran the resulting .exe and receive a blank page where nothing happened.
Resolution

In the pyinstaller command line, provide the dependency files for iecore() to work. In this command line, plugins.xml helps the sample to load the required plugins.

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

Source the OpenVINO environment variables before running the resulting .exe file.

Additional information

 

 

Related Products

This article applies to 2 products