idf installation - Installation has failed with exit code 1
Posted: Fri Feb 04, 2022 11:10 pm
I had a previous version of idf installed and working with eclipse plugin for a long time. Yesterday, I have decided to install the latest version of idf v4.4.
I am using esp-idf-tools-setup-online-2.13.exe to install it.
I have tried to install it in different folders but always get "Installation has failed with exit code 1".
Below is part of the installation log file:
Now I am left without idf and can't work on my project.
I would appreciate any help.
I am using esp-idf-tools-setup-online-2.13.exe to install it.
I have tried to install it in different folders but always get "Installation has failed with exit code 1".
Below is part of the installation log file:
I have tried many time and nothing changed.Extracting C:\Espressif\dist\cmake-3.20.3-windows-x86_64.zip to C:\Espressif\tools\cmake\3.20.3
WARNING: Rename C:\Espressif\tools\cmake\3.20.3 to C:\Espressif\tools\cmake\3.20.3.tmp failed, retrying...
WARNING: Rename C:\Espressif\tools\cmake\3.20.3 to C:\Espressif\tools\cmake\3.20.3.tmp failed, retrying...
WARNING: Rename C:\Espressif\tools\cmake\3.20.3 to C:\Espressif\tools\cmake\3.20.3.tmp failed, retrying...
Traceback (most recent call last):
File "C:\Espressif\frameworks\esp-idf\\tools\idf_tools.py", line 1828, in <module>
main(sys.argv[1:])
File "C:\Espressif\frameworks\esp-idf\\tools\idf_tools.py", line 1824, in main
action_func(args)
File "C:\Espressif\frameworks\esp-idf\\tools\idf_tools.py", line 1468, in action_install
tool_obj.install(tool_version)
File "C:\Espressif\frameworks\esp-idf\\tools\idf_tools.py", line 738, in install
strip_container_dirs(dest_dir, self._current_options.strip_container_dirs) # type: ignore
File "C:\Espressif\frameworks\esp-idf\\tools\idf_tools.py", line 396, in strip_container_dirs
rename_with_retry(path, tmp_path)
File "C:\Espressif\frameworks\esp-idf\\tools\idf_tools.py", line 382, in rename_with_retry
os.rename(path_from, path_to)
PermissionError: [WinError 5] Access is denied: 'C:\\Espressif\\tools\\cmake\\3.20.3' -> 'C:\\Espressif\\tools\\cmake\\3.20.3.tmp'
2022-02-05 09:34:47.918 --------
2022-02-05 09:34:47.918 Message box (OK):
Installation has failed with exit code 1
Now I am left without idf and can't work on my project.
I would appreciate any help.