Article ID: 000059154 Content Type: Error Messages Last Reviewed: 05/20/2022

Encountered Error:"<INSTALL_DIR>\install_prerequisites\..\mo\utils\extract_release_version.py') was unexpected at this time." When Running the install_prerequisites.bat Batch File

Environment

OpenVINO™ 2021.3

Windows® 10, 64-bit*

BUILT IN - ARTICLE INTRO SECOND COMPONENT
Summary

How to correct the path in the script of the install_prerequisites.bat batch file for proper execution in Windows® 10

Description

Executed install_prerequisites.bat batch file but received error: <INSTALL_DIR>\install_prerequisites\..\mo\utils\extract_release_version.py') was unexpected at this time.

Resolution

Add quotation marks in the following lines of the install_prerequisites.bat batch file:

  • Original line 83 to: set python_command='python "%~dp0..\mo\utils\extract_release_version.py"'
  • Original line 93 to: python "%~dp0..\mo\utils\find_ie_version.py"
  • Original line 132 to: python "%~dp0..\mo\utils\find_ie_version.py"
  • Original line 150 to: python "%~dp0..\mo\utils\find_ie_version.py"
Additional information

For Windows*, it is required to use quotation marks when specifying paths with spaces.

Related Products

This article applies to 2 products