idf.py.exe does not run wenn called by install.bat
manually i can execute the program
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.
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???
Most helpful comment
Hi @igrr
By replacing idf.py.exe it works..!