Esp-idf: install.bat & export.bat fail (IDFGH-1471)

Created on 5 Jul 2019  路  5Comments  路  Source: espressif/esp-idf

Environment

  • Development Kit: [ESP32-Wrover-Kit]
  • Module or chip used: [ESP32-WROOM-32]
  • IDF version v4.0-dev-1136-g28f1cdf5e
  • Build System: [CMake]
  • Compiler version
    C:\Users\funky\esp\tools>idf_tools.py list
  • xtensa-esp32-elf: Toolchain for Xtensa (ESP32) based on GCC

    • esp32-2019r1-8.2.0 (recommended, installed)

  • esp32ulp-elf: Toolchain for ESP32 ULP coprocessor

    • 2.28.51.20170517 (recommended, installed)

  • cmake: CMake build system

    • 3.13.4 (recommended, installed)

  • openocd-esp32: OpenOCD for ESP32

    • v0.10.0-esp32-20190313 (recommended, installed)

  • mconf: menuconfig tool

    • v4.6.0.0-idf-20190628 (recommended, installed)

  • ninja: Ninja build system

    • 1.9.0 (recommended, installed)

  • idf-exe: IDF wrapper tool for Windows
    WARNING: tool idf-exe version 1.0 is installed, but the tool failed to run

    • 1.0 (recommended)

  • ccache: Ccache (compiler cache)

    • 3.7 (recommended, installed)

  • Operating System: [Windows 7]
  • Power Supply: [USB]

Problem Description

idf.py.exe does not run wenn called by install.bat
manually i can execute the program

Expected Behavior

Actual Behavior

C:\Users\funky\esp>install.bat
Installing ESP-IDF tools
Installing tools: xtensa-esp32-elf, esp32ulp-elf, cmake, openocd-esp32, mconf, ninja, idf-exe, ccache
Skipping [email protected] (already installed)
Skipping [email protected] (already installed)
Skipping [email protected] (already installed)
Skipping [email protected] (already installed)
Skipping [email protected] (already installed)
Skipping [email protected] (already installed)
WARNING: tool idf-exe version 1.0 is installed, but the tool failed to run
Installing [email protected]
file idf-exe-v1.0.zip is already downloaded
WARNING: destination path already exists, removing
Traceback (most recent call last):
File "C:\Users\funky\esp\tools\idf_tools.py", line 1249, in
main(sys.argv[1:])
File "C:\Users\funky\esp\tools\idf_tools.py", line 1245, in main
action_func(args)
File "C:\Users\funky\esp\tools\idf_tools.py", line 1048, in action_install
tool_obj.install(tool_version)
File "C:\Users\funky\esp\tools\idf_tools.py", line 550, in install
shutil.rmtree(dest_dir)
File "C:\python3\lib\shutil.py", line 513, in rmtree
return _rmtree_unsafe(path, onerror)
File "C:\python3\lib\shutil.py", line 397, in _rmtree_unsafe
onerror(os.unlink, fullname, sys.exc_info())
File "C:\python3\lib\shutil.py", line 395, in _rmtree_unsafe
os.unlink(fullname)
PermissionError: [WinError 5] Zugriff verweigert: 'C:\Users\funky\.espressif\tools\idf-exe\1.0\idf.py.exe'
Setting up Python environment
Installing Python packages from C:\Users\funky\esprequirements.txt
Requirement already satisfied: setuptools in c:\users\funky.espressif\python_env\idf4.0_py3.7_env\lib\site-packages (from -r C:\Users\funky\esprequirements.txt (line 4)) (41.0.1)
Requirement already satisfied: click>=5.0 in c:\users\funky.espressif\python_env\idf4.0_py3.7_env\lib\site-packages (from -r C:\Users\funky\esprequirements.txt (line 8)) (7.0)
Requirement already satisfied: pyserial>=3.0 in c:\users\funky.espressif\python_env\idf4.0_py3.7_env\lib\site-packages (from -r C:\Users\funky\esprequirements.txt (line 9)) (3.4)
Requirement already satisfied: future>=0.15.2 in c:\users\funky.espressif\python_env\idf4.0_py3.7_env\lib\site-packages (from -r C:\Users\funky\esprequirements.txt (line 10)) (0.17.1)
Requirement already satisfied: cryptography>=2.1.4 in c:\users\funky.espressif\python_env\idf4.0_py3.7_env\lib\site-packages (from -r C:\Users\funky\esprequirements.txt (line 11)) (2.7)
Requirement already satisfied: pyparsing<2.4.0,>=2.0.3 in c:\users\funky.espressif\python_env\idf4.0_py3.7_env\lib\site-packages (from -r C:\Users\funky\esprequirements.txt (line 12)) (2.3.1)
Requirement already satisfied: pyelftools>=0.22 in c:\users\funky.espressif\python_env\idf4.0_py3.7_env\lib\site-packages (from -r C:\Users\funky\esprequirements.txt (line 13)) (0.25)
Requirement already satisfied: asn1crypto>=0.21.0 in c:\users\funky.espressif\python_env\idf4.0_py3.7_env\lib\site-packages (from cryptography>=2.1.4->-r C:\Users\funky\esprequirements.txt (line 11)) (0.24.0)
Requirement already satisfied: cffi!=1.11.3,>=1.8 in c:\users\funky.espressif\python_env\idf4.0_py3.7_env\lib\site-packages (from cryptography>=2.1.4->-r C:\Users\funky\esprequirements.txt (line 11)) (1.12.3)
Requirement already satisfied: six>=1.4.1 in c:\users\funky.espressif\python_env\idf4.0_py3.7_env\lib\site-packages (from cryptography>=2.1.4->-r C:\Users\funky\esprequirements.txt (line 11)) (1.12.0)
Requirement already satisfied: pycparser in c:\users\funky.espressif\python_env\idf4.0_py3.7_env\lib\site-packages (from cffi!=1.11.3,>=1.8->cryptography>=2.1.4->-r C:\Users\funky\esprequirements.txt (line 11)) (2.19)
All done! You can now run:
export.bat

C:\Users\funky\esp>export.bat
Setting IDF_PATH: C:\Users\funky\esp

Adding ESP-IDF tools to PATH...
WARNING: tool idf-exe version 1.0 is installed, but the tool failed to run
ERROR: tool idf-exe has no installed versions. Please run 'C:\Users\funky\esp\install.bat' to install it.

Most helpful comment

Hi @igrr

By replacing idf.py.exe it works..!

All 5 comments

I'm seeing the same thing.
Same environment / Windows 7
Seems related to idf.py.exe sending version (--version) to Stdout.

Thank you for the reports. We have reproduced the issue and the fix is coming soon.

In the meantime, you can download the fixed version from https://dl.espressif.com/dl/idf-exe-v1.0-fix.zip, extract it, and replace C:\Users\username\.espressif\tools\idf-exe\1.0\idf.py.exe. After this, export.bat and the "ESP-IDF Command Prompt" shortcut should work.

Hi @igrr

By replacing idf.py.exe it works..!

haha lol those errors... did install.bat then export.bat showed everything ok... still no idf.py in path, people in espressif just code smth and print it out, no testing no nothing... whats the point???

Was this page helpful?
0 / 5 - 0 ratings