Unable to install ESP IDF Tools

Frankenheim
Posts: 7
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: 7
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

bbeliveau
Posts: 1
Joined: Wed Nov 06, 2019 3:40 am

Re: Unable to install ESP IDF Tools

Postby bbeliveau » Wed Nov 06, 2019 4:04 am

Hi,

The problem is not resolved, idf_tools.py (as other files, see below) is not present after installing with Tools Installer v2.1
Does anyone has an idea how to fix this?

Using Python in C:\Users\bbeliveau\AppData\Local\Programs\Python\Python37-32\
Python 3.7.3
Using Git in C:\Program Files\Git\cmd\
git version 2.24.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\bbeliveau\Documents\Espressif\esp-idf_3_3

Adding ESP-IDF tools to PATH...
C:\Users\bbeliveau\Documents\Espressif\esp-idf_tools\tools\xtensa-esp32-elf\1.22.0-80-g6c4433a5-5.2.0\xtensa-esp32-elf\bin
C:\Users\bbeliveau\Documents\Espressif\esp-idf_tools\tools\esp32ulp-elf\2.28.51.20170517\esp32ulp-elf-binutils\bin
C:\Users\bbeliveau\Documents\Espressif\esp-idf_tools\tools\cmake\3.13.4\bin
C:\Users\bbeliveau\Documents\Espressif\esp-idf_tools\tools\openocd-esp32\v0.10.0-esp32-20190313\openocd-esp32\bin
C:\Users\bbeliveau\Documents\Espressif\esp-idf_tools\tools\mconf\v4.6.0.0-idf-20190628\
C:\Users\bbeliveau\Documents\Espressif\esp-idf_tools\tools\ninja\1.9.0\
C:\Users\bbeliveau\Documents\Espressif\esp-idf_tools\tools\idf-exe\1.0.1\
C:\Users\bbeliveau\Documents\Espressif\esp-idf_tools\tools\ccache\3.7\
C:\Users\bbeliveau\Documents\Espressif\esp-idf_tools\python_env\idf3.3_py3.7_env\Scripts
C:\Users\bbeliveau\Documents\Espressif\esp-idf_3_3\tools

Checking if Python packages are up to date...
Python requirements from C:\Users\bbeliveau\Documents\Espressif\esp-idf_3_3\requirements.txt are satisfied.

Done! You can now compile ESP-IDF projects.
Go to the project directory and run:

idf.py build

Who is online

Users browsing this forum: Google [Bot] and 171 guests