esp-idf: esp-idf-tools-setup-2.1 Fail to Install - Windows 10 (IDFGH-2189)

Environment

  • Development Kit: [ESP32-Wroom]
  • Kit version (for DevKitC): [v4]
  • Module or chip used: [ESP32-WROOM-32D]
  • IDF version (run git describe --tags to find it): // v3.2-dev-1148-g96cd3b75c
  • Build System: [Make|CMake]
  • Compiler version (run xtensa-esp32-elf-gcc --version to find it): // 1.22.0-80-g6c4433a
  • Operating System: [Windows]
  • Power Supply: [USB|external 5V|external 3.3V|Battery]

Problem Description

Here is my install paths:

**Using Python 3.6: C:\Users\Michael Bot\AppData\Local\Programs\Python\Python36-32\python.exe

Using Git 2.21.0.windows.1: C:\Program Files\Git\cmd\git.exe

Using existing ESP-IDF copy: C:\esp\esp-idf

IDF tools directory (IDF_TOOLS_PATH): C:\esp32

Running esp-idf-tools-setup-2.1.exe, I get errors as follows:

Running command: C:\Users\Michael Bot\AppData\Local\Programs\Python\Python36-32\python.exe C:\esp\esp-idf\tools\idf_tools.py install-python-env Using base prefix ‘C:\Users\Michael Bot\AppData\Local\Programs\Python\Python36-32’ New python executable in C:\esptools.espressif\python_env\idf4.1_py3.6_env\Scripts\python.exe Installing setuptools, pip, wheel… done. Processing \${idf_path}\tools\kconfig_new\esp-windows-curses ERROR: Could not install packages due to an EnvironmentError: [Errno 2] No such file or directory: ‘\\${IDF_PATH}\tools\kconfig_new\esp-windows-curses’

                      Creating a new Python environment in C:\esptools\.espressif\python_env\idf4.1_py3.6_env
                      Installing Python packages from C:\esp\esp-idf\requirements.txt
                      Traceback (most recent call last):
                        File "C:\esp\esp-idf\tools\idf_tools.py", line 1349, in <module>
                          main(sys.argv[1:])
                        File "C:\esp\esp-idf\tools\idf_tools.py", line 1345, in main
                          action_func(args)
                        File "C:\esp\esp-idf\tools\idf_tools.py", line 1163, in action_install_python_env
                          subprocess.check_call(run_args, stdout=sys.stdout, stderr=sys.stderr)
                        File "C:\Users\Michael Bot\AppData\Local\Programs\Python\Python36-32\lib\subprocess.py", line 291, in check_call
                          raise CalledProcessError(retcode, cmd)
                      subprocess.CalledProcessError: Command '['C:\\esptools\\.espressif\\python_env\\idf4.1_py3.6_env\\Scripts\\python.exe', '-m', 'pip', 'install', '--no-warn-script-location', '-r', 'C:\\esp\\esp-idf\\requirements.

Let me know if there is something I’m missing.

About this issue

  • Original URL
  • State: closed
  • Created 5 years ago
  • Reactions: 2
  • Comments: 18 (5 by maintainers)

Commits related to this issue

Most upvoted comments

No, this is caused by the fact that the installer didn’t set IDF_PATH before invoking the Python packages installation process. Since requirements.txt now uses IDF_PATH variable, it leads to this error.

The fix has been merged on our end, but due to some infrastructure issues it hasn’t synced to GitHub yet. This issue will be updated when this happens. Until then, please use release/v4.0 branch as a workaround.