Unable to install ESP IDF Tools

Frankenheim
Posts: 2
Joined: Wed Sep 11, 2019 6:46 am

Unable to install ESP IDF Tools

Postby Frankenheim » Wed Sep 11, 2019 7:10 am

I am using Windows 7 Professional 64 bit operating system and I have been trying to install the ESP IDF tools.

The installation process appears to run fine until the end, when I try to launch the tools. The following error is shown.

Using Python in C:\Users\XXX\AppData\Local\Programs\Python\Python37\
Python 3.7.3
Using Git in C:\Program Files\Git\cmd
git version 2.21.0.windows.1
IDF version does not include export.bat. Using the fallback version.
IDF version does not include tools\tools.json. Using the fallback version.
IDF version does not include tools\idf_tools.py. Using the fallback version.

Setting IDF_PATH: C:\Users\XXX\Desktop\esp-idf

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\XXX\AppDa
ta\Local\Programs\Python\Python37\python.exe C:\Users\XXX\.espressif\idf_tool
s_fallback.py --tools-json C:\Users\XXX\.espressif\tools_fallback.json instal
l' to install it.

If I try to run the suggested command line, I get the following.

C:\Users\XXX\Desktop\esp-idf>C:\Users\XXX\AppData\Local\Programs\Python\Py
thon37\python.exe C:\Users\XXX\.espressif\idf_tools_fallback.py --tools-json
C:\Users\XXX\.espressif\tools_fallback.json install
Installing tools: xtensa-esp32-elf, esp32ulp-elf, cmake, openocd-esp32, mconf, n
inja, idf-exe, ccache
Skipping xtensa-esp32-elf@1.22.0-80-g6c4433a5-5.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-20190313 (already installed)
Skipping mconf@v4.6.0.0-idf-20190628 (already installed)
Skipping ninja@1.9.0 (already installed)
WARNING: tool idf-exe version 1.0 is installed, but the tool failed to run
Installing idf-exe@1.0
file idf-exe-v1.0.zip is already downloaded
WARNING: destination path already exists, removing
Traceback (most recent call last):
File "C:\Users\XXX\.espressif\idf_tools_fallback.py", line 1249, in <module
>
main(sys.argv[1:])
File "C:\Users\XXX\.espressif\idf_tools_fallback.py", line 1245, in main
action_func(args)
File "C:\Users\XXX\.espressif\idf_tools_fallback.py", line 1048, in action_
install
tool_obj.install(tool_version)
File "C:\Users\XXX\.espressif\idf_tools_fallback.py", line 550, in install
shutil.rmtree(dest_dir)
File "C:\Users\XXX\AppData\Local\Programs\Python\Python37\lib\shutil.py", l
ine 513, in rmtree
return _rmtree_unsafe(path, onerror)
File "C:\Users\XXX\AppData\Local\Programs\Python\Python37\lib\shutil.py", l
ine 397, in _rmtree_unsafe
onerror(os.unlink, fullname, sys.exc_info())
File "C:\Users\XXX\AppData\Local\Programs\Python\Python37\lib\shutil.py", l
ine 395, in _rmtree_unsafe
os.unlink(fullname)
PermissionError: [WinError 5] Access is denied: 'C:\\Users\\XXX\\.espressif\\
tools\\idf-exe\\1.0\\idf.py.exe'

After several attempts, and starting with all previous installations removed, I noticed that when the application tries to download the installation files, a HTTP 403 error flashes on the screen.

I can see that the idf.py.exe file is not being accessed, however, it is in the desired directory.

Any suggestions?

Regards

Frankenheim
Posts: 2
Joined: Wed Sep 11, 2019 6:46 am

Re: Unable to install ESP IDF Tools

Postby Frankenheim » Thu Sep 12, 2019 3:58 am

I managed to get the installation to work by doing the following.

At end of esp-idf-tools-setup-2.0 installation it will say installation is complete and will have a box ticked to run a batch file. BEFORE doing this, I did the following.
a) Unzip idf-exe-v1.0-fix.zip
b) Copy file idf.py.exe to directory C:\Users\username\.espressif\tools\idf-exe\1.0
c) Continue with exiting the installation.

Regards

Who is online

Users browsing this forum: Bing [Bot], kondalkolipaka, WiFive and 12 guests