Errors with freertos downloaded from AWS console

Hello I am using ESP32 Devkit-C trying to compile the demo with Freertos package that i have downloaded from the AWS Console.
When i run the command : freertos\Vendors\espressif\esp-idf\export.bat
i get following errors :

Adding ESP-IDF tools to PATH...
Not using an unsupported version of tool cmake found in PATH: 3.20.0.
Not using an unsupported version of tool ninja found in PATH: 1.10.2.
fatal: not a git repository (or any of the parent directories): .git
Traceback (most recent call last):
  File "C:\Users\Naitik\Desktop\AFR_Project\FreeRTOS\vendors\espressif\esp-idf\tools\", line 1358, in <module>
  File "C:\Users\Naitik\Desktop\AFR_Project\FreeRTOS\vendors\espressif\esp-idf\tools\", line 1354, in main
  File "C:\Users\Naitik\Desktop\AFR_Project\FreeRTOS\vendors\espressif\esp-idf\tools\", line 980, in action_export
    idf_python_env_path, idf_python_export_path, virtualenv_python = get_python_env_path()
  File "C:\Users\Naitik\Desktop\AFR_Project\FreeRTOS\vendors\espressif\esp-idf\tools\", line 840, in get_python_env_path
    idf_version_str = subprocess.check_output(['git', '--work-tree=' + global_idf_path, 'describe', '--tags'], cwd=global_idf_path, env=os.environ).decode()
  File "C:\Program Files\Python38\lib\", line 415, in check_output
    return run(*popenargs, stdout=PIPE, timeout=timeout, check=True,
  File "C:\Program Files\Python38\lib\", line 516, in run
    raise CalledProcessError(retcode, process.args,
subprocess.CalledProcessError: Command '['git', '--work-tree=C:\\Users\\Naitik\\Desktop\\AFR_Project\\FreeRTOS\\vendors\\espressif\\esp-idf', 'describe', '--tags']' returned non-zero exit status 128

Can anyone please Point out Why these errors are happening ?

The error is because esp-idf is not a git repo in the console download. You should not need to run the script freertos\Vendors\espressif\esp-idf\export.bat though.

Please follow the instructions on this page: Getting started with the Espressif ESP32-DevKitC and the ESP-WROVER-KIT - FreeRTOS


Hi @naitik , could you please write here how you resolved this error ?