Eclipse Not installing tools

louis___
Posts: 6
Joined: Mon Jul 19, 2021 9:42 am

Eclipse Not installing tools

Postby louis___ » Wed Jul 21, 2021 4:37 pm

I've installed the ESP-IDF via the ESP menu option in Eclipse "Download and Configure ESP-IDF". Afterwards I try to installed the required tools, also via the prompt within Eclipse after the IDf has been installed, and I get failures. Below is the output:
Installing tools...
This can take a while. Please be patient.
Executing C:\Users\Louis\AppData\Local\Programs\Python\Python39\python.exe C:\esp\esp-idf-v4.2\tools\idf_tools.py install all
Traceback (most recent call last):
File "C:\esp\esp-idf-v4.2\tools\idf_tools.py", line 1492, in <module>
main(sys.argv[1:])
File "C:\esp\esp-idf-v4.2\tools\idf_tools.py", line 1488, in main
action_func(args)
File "C:\esp\esp-idf-v4.2\tools\idf_tools.py", line 1144, in action_install
tools_info = load_tools_info()
File "C:\esp\esp-idf-v4.2\tools\idf_tools.py", line 815, in load_tools_info
with open(tool_versions_file_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: 'C:\\esp\\esp-idf\\tools/tools.json'

Executing C:\Users\Louis\AppData\Local\Programs\Python\Python39\python.exe C:\esp\esp-idf-v4.2\tools\idf_tools.py install-python-env
Traceback (most recent call last):
File "C:\esp\esp-idf-v4.2\tools\idf_tools.py", line 1492, in <module>
main(sys.argv[1:])
File "C:\esp\esp-idf-v4.2\tools\idf_tools.py", line 1488, in main
action_func(args)
File "C:\esp\esp-idf-v4.2\tools\idf_tools.py", line 1186, in action_install_python_env
idf_python_env_path, _, virtualenv_python = get_python_env_path()
File "C:\esp\esp-idf-v4.2\tools\idf_tools.py", line 860, in get_python_env_path
idf_version_str = subprocess.check_output(['git', 'describe'],
File "C:\Users\Louis\AppData\Local\Programs\Python\Python39\lib\subprocess.py", line 424, in check_output
return run(*popenargs, stdout=PIPE, timeout=timeout, check=True,
File "C:\Users\Louis\AppData\Local\Programs\Python\Python39\lib\subprocess.py", line 505, in run
with Popen(*popenargs, **kwargs) as process:
File "C:\Users\Louis\AppData\Local\Programs\Python\Python39\lib\subprocess.py", line 951, in __init__
self._execute_child(args, executable, preexec_fn, close_fds,
File "C:\Users\Louis\AppData\Local\Programs\Python\Python39\lib\subprocess.py", line 1420, in _execute_child
hp, ht, pid, tid = _winapi.CreateProcess(executable, args,
NotADirectoryError: [WinError 267] The directory name is invalid

Executing C:\Users\Louis\AppData\Local\Programs\Python\Python39\python.exe C:\esp\esp-idf-v4.2\tools\idf_tools.py export --format=key-value
Traceback (most recent call last):
File "C:\esp\esp-idf-v4.2\tools\idf_tools.py", line 1492, in <module>
main(sys.argv[1:])
File "C:\esp\esp-idf-v4.2\tools\idf_tools.py", line 1488, in main
action_func(args)
File "C:\esp\esp-idf-v4.2\tools\idf_tools.py", line 948, in action_export
tools_info = load_tools_info()
File "C:\esp\esp-idf-v4.2\tools\idf_tools.py", line 815, in load_tools_info
with open(tool_versions_file_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: 'C:\\esp\\esp-idf\\tools/tools.json'
Configured CDT Build Environment variables. You can check Preferences > C/C++ > Build > Environment
Configured CMake toolchain. You can check Preferences > C/C++ > CMake
Install tools completed.
I can successfully build the project but when I attempting to to debug I get this failure output and I can't figure out how to fix it. I get the same issue with VSCode and I'm really struggling just to debug something that works fine on someone elses older setup. Note: I'm using the same IDF version as the other person. Here's the output from when trying to debug:
Traceback (most recent call last):
File "C:\esp\esp-idf-v4.2\tools\idf.py", line 45, in <module>
from idf_py_actions.tools import (executable_exists, idf_version, merge_action_lists, realpath) # noqa: E402
File "C:\esp\esp-idf-v4.2\tools\idf_py_actions\tools.py", line 1, in <module>
import click
ModuleNotFoundError: No module named 'click'
Please do help if you can.

Who is online

Users browsing this forum: No registered users and 76 guests