<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: OpenVINO Pyinstaller Issue in Intel® Distribution of OpenVINO™ Toolkit</title>
    <link>https://community.intel.com/t5/Intel-Distribution-of-OpenVINO/OpenVINO-Pyinstaller-Issue/m-p/1417645#M28342</link>
    <description>&lt;P&gt;Hi Hairul,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thank you for the response.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Previously, my python version is 3.6.9. With python 3.6.9, the above-mentioned steps are not possible as the mentioned pyinstaller requires python&amp;gt;3.7. So I installed python 3.8.0 for the process.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I have followed the steps that you mentioned with python 3.8. I didn't face any issues related to pyinstaller. Now I am not getting any type of errors related to DLL's, but I am unable to see the print statement, that is present in the script.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;When I ran the script as a python file, it is working well.&lt;/P&gt;
&lt;P&gt;test.py file:&lt;/P&gt;
&lt;P&gt;from openvino.inference_engine import IECore&lt;BR /&gt;ie = IECore()&lt;/P&gt;
&lt;P&gt;print("Devices:", ie.available_devices)&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Output:&lt;/P&gt;
&lt;P&gt;(openvino_env) D:\srujit_exp&amp;gt;python test.py&lt;BR /&gt;Devices: ['CPU', 'GPU']&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Now I generated the executable with the command mentioned.&lt;/P&gt;
&lt;P&gt;pyinstaller --onefile --add-binary "D:\srujit_exp\openvino_env\Lib\site-packages\openvino\libs;." --hidden-import pkgutil --hidden-import numpy --hidden-import openvino.inference_engine.constants test.py&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Output:&lt;/P&gt;
&lt;P&gt;(openvino_env) D:\srujit_exp\dist&amp;gt;test.exe&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;(openvino_env) D:\srujit_exp\dist&amp;gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I am not getting any prints on the terminal. Can I know what may be the reason for this?&lt;/P&gt;
&lt;P&gt;I am attaching the that contains the statements generated during the executable conversion.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks and Regards&lt;/P&gt;
&lt;P&gt;Anjaneya Srujit.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Tue, 27 Sep 2022 12:04:57 GMT</pubDate>
    <dc:creator>Anjaneya_Srujit_Ram</dc:creator>
    <dc:date>2022-09-27T12:04:57Z</dc:date>
    <item>
      <title>OpenVINO Pyinstaller Issue</title>
      <link>https://community.intel.com/t5/Intel-Distribution-of-OpenVINO/OpenVINO-Pyinstaller-Issue/m-p/1415867#M28300</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I had installed the OpenVINO through pip. These are my current OpenVINO versions:&lt;/P&gt;
&lt;P&gt;openvino 2022.1.0&lt;BR /&gt;openvino-dev 2022.1.0&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Importing OpenVINO and the execution of the complete code is good when I am running it as a python script. When I try to build the executable, I am getting issues with DLLs. Then I write a piece of code separately, which will import OpenVINO and print the available_devices.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Please find the code below:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;from openvino.inference_engine import IECore&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;ie = IECore()&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;print("Devices:", ie.available_devices)&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Output when ran as python script :&amp;nbsp;Devices: ['CPU', 'GPU']&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Pyinstaller command: pyinstaller test.py --onefile&lt;/P&gt;
&lt;P&gt;When I run the executable, I am getting the following error.&lt;/P&gt;
&lt;P&gt;D:\XXXX\dist&amp;gt;test.exe&lt;BR /&gt;Traceback (most recent call last):&lt;BR /&gt;File "test.py", line 1, in &amp;lt;module&amp;gt;&lt;BR /&gt;File "PyInstaller\loader\pyimod03_importers.py", line 495, in exec_module&lt;BR /&gt;File "openvino\inference_engine\__init__.py", line 30, in &amp;lt;module&amp;gt;&lt;BR /&gt;ImportError: DLL load failed: The specified module could not be found.&lt;BR /&gt;[8456] Failed to execute script 'test' due to unhandled exception!&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I tried searching for the solution, but I am unable to find the exact one. It will be great if this issue can be resolved.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks and Regards&lt;/P&gt;
&lt;P&gt;Anjaneya Srujit,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 20 Sep 2022 07:04:50 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Distribution-of-OpenVINO/OpenVINO-Pyinstaller-Issue/m-p/1415867#M28300</guid>
      <dc:creator>Anjaneya_Srujit_Ram</dc:creator>
      <dc:date>2022-09-20T07:04:50Z</dc:date>
    </item>
    <item>
      <title>Re: OpenVINO Pyinstaller Issue</title>
      <link>https://community.intel.com/t5/Intel-Distribution-of-OpenVINO/OpenVINO-Pyinstaller-Issue/m-p/1416186#M28315</link>
      <description>&lt;P&gt;&lt;SPAN&gt;Hi Anjaneya Srujit,&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Thank you for reaching out to us.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;For your information, PyInstaller is not officially supported by OpenVINO™. However, I&amp;nbsp;did manage to create a working executable file using PyInstaller with the following command:&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="courier new,courier"&gt;&lt;SPAN&gt;pyinstaller --onefile --add-data "C:\Program Files (x86)\Intel\openvino_2022.1.0.643\python\python3.7;." --hidden-import pkgutil --hidden-import numpy test\test.py&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;I've also replicated your issue and received similar error message as yours when executing the &lt;EM&gt;test.exe&lt;/EM&gt; file without initializing the OpenVINO™ environment:&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="error.png" style="width: 999px;"&gt;&lt;img src="https://community.intel.com/t5/image/serverpage/image-id/33495i5BEEE23E054D90F7/image-size/large?v=v2&amp;amp;px=999&amp;amp;whitelist-exif-data=Orientation%2CResolution%2COriginalDefaultFinalSize%2CCopyright" role="button" title="error.png" alt="error.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;To avoid this error, you will need to setup the OpenVINO™ environment by running the &lt;EM&gt;setupvars.bat&lt;/EM&gt; file before executing the &lt;EM&gt;test.exe&lt;/EM&gt; file.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Here is the result for executing the &lt;EM&gt;test.exe&lt;/EM&gt; file after running &lt;EM&gt;setupvars.bat&lt;/EM&gt; file:&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="exec.png" style="width: 999px;"&gt;&lt;img src="https://community.intel.com/t5/image/serverpage/image-id/33496iA64BA95F0F8034BF/image-size/large?v=v2&amp;amp;px=999&amp;amp;whitelist-exif-data=Orientation%2CResolution%2COriginalDefaultFinalSize%2CCopyright" role="button" title="exec.png" alt="exec.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Regards,&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Hairul&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 21 Sep 2022 08:26:34 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Distribution-of-OpenVINO/OpenVINO-Pyinstaller-Issue/m-p/1416186#M28315</guid>
      <dc:creator>Hairul_Intel</dc:creator>
      <dc:date>2022-09-21T08:26:34Z</dc:date>
    </item>
    <item>
      <title>Re: OpenVINO Pyinstaller Issue</title>
      <link>https://community.intel.com/t5/Intel-Distribution-of-OpenVINO/OpenVINO-Pyinstaller-Issue/m-p/1416199#M28316</link>
      <description>&lt;P&gt;Hi Hairul,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thank you for the response.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Currently, I had installed OpenVINO with pip.&amp;nbsp; The "setupvars.bat" file will be available when I install the OpenVINO using an installer. So this will not be possible in my case.&lt;/P&gt;
&lt;P&gt;Is there any way to build the executable with OpenVINO(pip) support?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks and Regards,&lt;/P&gt;
&lt;P&gt;Anjaneya Srujit.&lt;/P&gt;</description>
      <pubDate>Wed, 21 Sep 2022 09:12:18 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Distribution-of-OpenVINO/OpenVINO-Pyinstaller-Issue/m-p/1416199#M28316</guid>
      <dc:creator>Anjaneya_Srujit_Ram</dc:creator>
      <dc:date>2022-09-21T09:12:18Z</dc:date>
    </item>
    <item>
      <title>Re: OpenVINO Pyinstaller Issue</title>
      <link>https://community.intel.com/t5/Intel-Distribution-of-OpenVINO/OpenVINO-Pyinstaller-Issue/m-p/1416518#M28320</link>
      <description>&lt;P&gt;&lt;SPAN&gt;Hi Anjaneya Srujit,&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;I've successfully built the executable file using PyInstaller following these steps:&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;1. Installed PIP OpenVINO development package in a virtual environment as described in this &lt;/SPAN&gt;&lt;A style="font-size: 16px;" href="https://docs.openvino.ai/2022.1/openvino_docs_install_guides_install_dev_tools.html" target="_blank" rel="noopener noreferrer"&gt;guide&lt;/A&gt;&lt;SPAN&gt;.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;2. Installed PyInstaller development version inside of the OpenVINO virtual environment:&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class="lia-indent-padding-left-30px"&gt;&lt;FONT face="courier new,courier"&gt;&lt;SPAN&gt;python -m pip install &lt;/SPAN&gt;&lt;A style="font-size: 16px;" href="https://github.com/pyinstaller/pyinstaller/tarball/develop" target="_blank" rel="noopener noreferrer"&gt;https://github.com/pyinstaller/pyinstaller/tarball/develop&lt;/A&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;3. Run the following command to build the executable file using PyInstaller:&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class="lia-indent-padding-left-30px"&gt;&lt;FONT face="courier new,courier"&gt;&lt;SPAN&gt;pyinstaller --onefile --add-binary "C:\&amp;lt;openvino_env_dir&amp;gt;\Lib\site-packages\openvino\libs;." --hidden-import pkgutil --hidden-import numpy --hidden-import openvino.inference_engine.constants test.py&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Here is the result for running the executable file:&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="testexec.png" style="width: 329px;"&gt;&lt;img src="https://community.intel.com/t5/image/serverpage/image-id/33537i52F88B69CEF3991B/image-size/large?v=v2&amp;amp;px=999&amp;amp;whitelist-exif-data=Orientation%2CResolution%2COriginalDefaultFinalSize%2CCopyright" role="button" title="testexec.png" alt="testexec.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Please ensure that you are running the PyInstaller command while inside of your OpenVINO virtual environment in order to avoid ImportError or ModuleNotFoundError.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;You can refer to this &lt;/SPAN&gt;&lt;A style="font-size: 16px;" href="https://stackoverflow.com/questions/48629486/how-can-i-create-the-minimum-size-executable-with-pyinstaller#48662686" target="_blank" rel="noopener noreferrer"&gt;StackOverflow discussion&lt;/A&gt;&lt;SPAN&gt; regarding importing modules for PyInstaller executables.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Regards,&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Hairul&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 22 Sep 2022 08:22:36 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Distribution-of-OpenVINO/OpenVINO-Pyinstaller-Issue/m-p/1416518#M28320</guid>
      <dc:creator>Hairul_Intel</dc:creator>
      <dc:date>2022-09-22T08:22:36Z</dc:date>
    </item>
    <item>
      <title>Re: OpenVINO Pyinstaller Issue</title>
      <link>https://community.intel.com/t5/Intel-Distribution-of-OpenVINO/OpenVINO-Pyinstaller-Issue/m-p/1417645#M28342</link>
      <description>&lt;P&gt;Hi Hairul,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thank you for the response.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Previously, my python version is 3.6.9. With python 3.6.9, the above-mentioned steps are not possible as the mentioned pyinstaller requires python&amp;gt;3.7. So I installed python 3.8.0 for the process.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I have followed the steps that you mentioned with python 3.8. I didn't face any issues related to pyinstaller. Now I am not getting any type of errors related to DLL's, but I am unable to see the print statement, that is present in the script.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;When I ran the script as a python file, it is working well.&lt;/P&gt;
&lt;P&gt;test.py file:&lt;/P&gt;
&lt;P&gt;from openvino.inference_engine import IECore&lt;BR /&gt;ie = IECore()&lt;/P&gt;
&lt;P&gt;print("Devices:", ie.available_devices)&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Output:&lt;/P&gt;
&lt;P&gt;(openvino_env) D:\srujit_exp&amp;gt;python test.py&lt;BR /&gt;Devices: ['CPU', 'GPU']&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Now I generated the executable with the command mentioned.&lt;/P&gt;
&lt;P&gt;pyinstaller --onefile --add-binary "D:\srujit_exp\openvino_env\Lib\site-packages\openvino\libs;." --hidden-import pkgutil --hidden-import numpy --hidden-import openvino.inference_engine.constants test.py&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Output:&lt;/P&gt;
&lt;P&gt;(openvino_env) D:\srujit_exp\dist&amp;gt;test.exe&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;(openvino_env) D:\srujit_exp\dist&amp;gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I am not getting any prints on the terminal. Can I know what may be the reason for this?&lt;/P&gt;
&lt;P&gt;I am attaching the that contains the statements generated during the executable conversion.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks and Regards&lt;/P&gt;
&lt;P&gt;Anjaneya Srujit.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 27 Sep 2022 12:04:57 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Distribution-of-OpenVINO/OpenVINO-Pyinstaller-Issue/m-p/1417645#M28342</guid>
      <dc:creator>Anjaneya_Srujit_Ram</dc:creator>
      <dc:date>2022-09-27T12:04:57Z</dc:date>
    </item>
    <item>
      <title>Re: OpenVINO Pyinstaller Issue</title>
      <link>https://community.intel.com/t5/Intel-Distribution-of-OpenVINO/OpenVINO-Pyinstaller-Issue/m-p/1417903#M28349</link>
      <description>&lt;P&gt;&lt;SPAN&gt;Hi Anjaneya Srujit,&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;For your information, I've successfully created the executable file using Python 3.7.9 together with the following packages version:&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="my_package.png" style="width: 400px;"&gt;&lt;img src="https://community.intel.com/t5/image/serverpage/image-id/33729i7B057C040AF2B349/image-size/medium?v=v2&amp;amp;px=400&amp;amp;whitelist-exif-data=Orientation%2CResolution%2COriginalDefaultFinalSize%2CCopyright" role="button" title="my_package.png" alt="my_package.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;On another note, referring to this &lt;/SPAN&gt;&lt;A style="font-size: 16px;" href="https://community.intel.com/t5/Intel-Distribution-of-OpenVINO/Are-pyinstaller-and-openvino-incompatible/td-p/1168565" target="_blank" rel="noopener noreferrer"&gt;thread&lt;/A&gt;&lt;SPAN&gt; which discusses issues regarding PyInstaller, here are some of my suggestions for you to try out:&lt;/SPAN&gt;&lt;/P&gt;
&lt;OL&gt;
&lt;LI&gt;&lt;SPAN&gt;Use &lt;FONT face="courier new,courier"&gt;--add-data&lt;/FONT&gt; command instead of &lt;FONT face="courier new,courier"&gt;--add-binary&lt;/FONT&gt;&lt;/SPAN&gt;&lt;/LI&gt;
&lt;LI&gt;&lt;SPAN&gt;Give the following directory "&lt;EM&gt;C:\&amp;lt;openvino_env_dir&amp;gt;\Lib\site-packages\openvino\libs\plugins.xml;.&lt;/EM&gt;" for &lt;FONT face="courier new,courier"&gt;--add-binary&lt;/FONT&gt; or &lt;FONT face="courier new,courier"&gt;--add-data&lt;/FONT&gt; command.&lt;/SPAN&gt;&lt;/LI&gt;
&lt;LI&gt;&lt;SPAN&gt;Use the same Python and its packages version as mine (Python 3.7.9, OpenVINO™ 2022.1, PyInstaller 5.4.1).&lt;/SPAN&gt;&lt;/LI&gt;
&lt;/OL&gt;
&lt;P&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Regards,&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Hairul&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 28 Sep 2022 07:50:28 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Distribution-of-OpenVINO/OpenVINO-Pyinstaller-Issue/m-p/1417903#M28349</guid>
      <dc:creator>Hairul_Intel</dc:creator>
      <dc:date>2022-09-28T07:50:28Z</dc:date>
    </item>
    <item>
      <title>Re: OpenVINO Pyinstaller Issue</title>
      <link>https://community.intel.com/t5/Intel-Distribution-of-OpenVINO/OpenVINO-Pyinstaller-Issue/m-p/1417926#M28350</link>
      <description>&lt;P&gt;Hi Hairul,&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Can you please share the python code that you used for building the executable?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks and Regards,&lt;/P&gt;
&lt;P&gt;Anjaneya Srujit.&lt;/P&gt;</description>
      <pubDate>Wed, 28 Sep 2022 09:54:10 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Distribution-of-OpenVINO/OpenVINO-Pyinstaller-Issue/m-p/1417926#M28350</guid>
      <dc:creator>Anjaneya_Srujit_Ram</dc:creator>
      <dc:date>2022-09-28T09:54:10Z</dc:date>
    </item>
    <item>
      <title>Re: OpenVINO Pyinstaller Issue</title>
      <link>https://community.intel.com/t5/Intel-Distribution-of-OpenVINO/OpenVINO-Pyinstaller-Issue/m-p/1418166#M28354</link>
      <description>&lt;P&gt;&lt;SPAN&gt;Hi Anjaneya Srujit,&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;I've attached&amp;nbsp;below the Python code file that I used when building the executable file.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Regards,&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Hairul&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 29 Sep 2022 01:44:04 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Distribution-of-OpenVINO/OpenVINO-Pyinstaller-Issue/m-p/1418166#M28354</guid>
      <dc:creator>Hairul_Intel</dc:creator>
      <dc:date>2022-09-29T01:44:04Z</dc:date>
    </item>
    <item>
      <title>Re: OpenVINO Pyinstaller Issue</title>
      <link>https://community.intel.com/t5/Intel-Distribution-of-OpenVINO/OpenVINO-Pyinstaller-Issue/m-p/1418223#M28355</link>
      <description>&lt;P&gt;Hi Hairul,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thank you for sharing the code.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;My issue was resolved. The executable is running with Python 3.8 now.&amp;nbsp; I did some modifications in the "spec file" and ran the following pyinstaller command.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;pyinstaller --clean test.spec&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I am attaching the spec file in the spec format, that I used to generate the executable. In the "pathex" argument we need to specify the current working directory. I did this manually as it was not updating during the executable build process.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;Output:&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;(openvino_env) D:\srujit_exp\dist&amp;gt;test.exe&lt;BR /&gt;Devices: ['CPU', 'GPU']&lt;/P&gt;
&lt;P&gt;(openvino_env) D:\srujit_exp\dist&amp;gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks and Regards,&lt;/P&gt;
&lt;P&gt;Anjaneya Srujit.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 29 Sep 2022 06:40:16 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Distribution-of-OpenVINO/OpenVINO-Pyinstaller-Issue/m-p/1418223#M28355</guid>
      <dc:creator>Anjaneya_Srujit_Ram</dc:creator>
      <dc:date>2022-09-29T06:40:16Z</dc:date>
    </item>
    <item>
      <title>Re:OpenVINO Pyinstaller Issue</title>
      <link>https://community.intel.com/t5/Intel-Distribution-of-OpenVINO/OpenVINO-Pyinstaller-Issue/m-p/1418232#M28356</link>
      <description>&lt;P&gt;&lt;SPAN style="font-size: 16px;"&gt;Hi Anjaneya Srujit,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 16px;"&gt;Glad to know that your issue has been resolved.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 16px;"&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 16px;"&gt;This thread will no longer be monitored since this issue has been resolved.&amp;nbsp;If you need any additional information from Intel, please submit a new question.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 16px;"&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 16px;"&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 16px;"&gt;Regards,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 16px;"&gt;Hairul&lt;/SPAN&gt;&lt;/P&gt;&lt;BR /&gt;</description>
      <pubDate>Thu, 29 Sep 2022 07:25:22 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Distribution-of-OpenVINO/OpenVINO-Pyinstaller-Issue/m-p/1418232#M28356</guid>
      <dc:creator>Hairul_Intel</dc:creator>
      <dc:date>2022-09-29T07:25:22Z</dc:date>
    </item>
  </channel>
</rss>

