Errors installing ESP-IDF tools to Eclipse ( Windows 10 )

ViacheslavK
Posts: 1
Joined: Wed Dec 04, 2019 9:20 am

Errors installing ESP-IDF tools to Eclipse ( Windows 10 )

Postby ViacheslavK » Wed Dec 04, 2019 10:23 am

Hi ,

I am trying to use Eclipse for ESP32. I have installed Java8, Eclipse 2019-09 R (4.13.0), Python 3.8, Git-2.24.0.2-64-bit . I loaded and unzipped esp-idf-master and install IDF Plugins to Eclipse successfully.
Then i start to install ESP_IDF tools to Eclipse( Help -> Espressif IDF Tools Manager -> Install Tools ) specifying the directory with the unzipped archive "esp-idf-master" (My directory is C:\Users\Dort\ESP\esp-idf-master ). And in Console window i see some installing errors:

Code: Select all

Installing tools...
This can take a while. Please be patient.
Executing C:\Users\Dort\AppData\Local\Programs\Python\Python38-32\python.exe C:\Users\Dort\ESP\esp-idf-master\tools\idf_tools.py install all
Installing tools: xtensa-esp32-elf, xtensa-esp32s2-elf, esp32ulp-elf, cmake, openocd-esp32, ninja, idf-exe, ccache
Skipping xtensa-esp32-elf@esp-2019r2-8.2.0 (already installed)
Skipping xtensa-esp32s2-elf@esp-2019r2-8.2.0 (already installed)
Skipping esp32ulp-elf@2.28.51.20170517 (already installed)
Skipping cmake@3.13.4 (already installed)
Skipping openocd-esp32@v0.10.0-esp32-20190708 (already installed)
Skipping ninja@1.9.0 (already installed)
Skipping idf-exe@1.0.1 (already installed)
Skipping ccache@3.7 (already installed)

Executing C:\Users\Dort\AppData\Local\Programs\Python\Python38-32\python.exe C:\Users\Dort\ESP\esp-idf-master\tools\idf_tools.py install-python-env
fatal: not a git repository (or any of the parent directories): .git
Traceback (most recent call last):
  File "C:\Users\Dort\ESP\esp-idf-master\tools\idf_tools.py", line 1349, in <module>
    main(sys.argv[1:])
  File "C:\Users\Dort\ESP\esp-idf-master\tools\idf_tools.py", line 1345, in main
    action_func(args)
  File "C:\Users\Dort\ESP\esp-idf-master\tools\idf_tools.py", line 1139, in action_install_python_env
    idf_python_env_path, _, virtualenv_python = get_python_env_path()
  File "C:\Users\Dort\ESP\esp-idf-master\tools\idf_tools.py", 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:\Users\Dort\AppData\Local\Programs\Python\Python38-32\lib\subprocess.py", line 411, in check_output
    return run(*popenargs, stdout=PIPE, timeout=timeout, check=True,
  File "C:\Users\Dort\AppData\Local\Programs\Python\Python38-32\lib\subprocess.py", line 512, in run
    raise CalledProcessError(retcode, process.args,
subprocess.CalledProcessError: Command '['git', '--work-tree=C:\\Users\\Dort\\ESP\\esp-idf-master', 'describe', '--tags']' returned non-zero exit status 128.


Executing C:\Users\Dort\AppData\Local\Programs\Python\Python38-32\python.exe C:\Users\Dort\ESP\esp-idf-master\tools\idf_tools.py export --format=key-value
fatal: not a git repository (or any of the parent directories): .git
Traceback (most recent call last):
  File "C:\Users\Dort\ESP\esp-idf-master\tools\idf_tools.py", line 1349, in <module>
    main(sys.argv[1:])
  File "C:\Users\Dort\ESP\esp-idf-master\tools\idf_tools.py", line 1345, in main
    action_func(args)
  File "C:\Users\Dort\ESP\esp-idf-master\tools\idf_tools.py", line 980, in action_export
    idf_python_env_path, idf_python_export_path, virtualenv_python = get_python_env_path()
  File "C:\Users\Dort\ESP\esp-idf-master\tools\idf_tools.py", 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:\Users\Dort\AppData\Local\Programs\Python\Python38-32\lib\subprocess.py", line 411, in check_output
    return run(*popenargs, stdout=PIPE, timeout=timeout, check=True,
  File "C:\Users\Dort\AppData\Local\Programs\Python\Python38-32\lib\subprocess.py", line 512, in run
    raise CalledProcessError(retcode, process.args,
subprocess.CalledProcessError: Command '['git', '--work-tree=C:\\Users\\Dort\\ESP\\esp-idf-master', 'describe', '--tags']' returned non-zero exit status 128.

After that three Environment Variables were created ( Window -> Preferences -> C/C++ -> Build -> Environment ):

Code: Select all

IDF_PATH 
C:\Users\Dort\ESP\esp-idf-master

IDF_PYTHON_ENV_PATH, IDF_PYTHON_EXPORT_PATH, VIRTUALENV_PYTHON
get_python_env_path()

SUBPROCESS.CALLEDPROCESSERROR:COMMAND '['GIT','--WORK-TREE
C:\\Users\\Dort\\ESP\\esp-idf-master', 'describe', '--tags']' returned non-zero exit status 128.

Does anyone know how to fix these errors ?

squonk11
Posts: 69
Joined: Wed Mar 01, 2017 6:53 pm
Location: Germany

Re: Errors installing ESP-IDF tools to Eclipse ( Windows 10 )

Postby squonk11 » Mon Dec 16, 2019 5:04 pm

I am encountering a very similar problem when installing via

Code: Select all

intall.bat
Did you find a solution?
"Whoever believes to be someone has stopped becoming someone"
Sokrates

Who is online

Users browsing this forum: No registered users and 255 guests