Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ESP IDF 5.1 install error (IEP-971) #779

Open
rusiradd opened this issue Jun 6, 2023 · 6 comments
Open

ESP IDF 5.1 install error (IEP-971) #779

rusiradd opened this issue Jun 6, 2023 · 6 comments

Comments

@rusiradd
Copy link

rusiradd commented Jun 6, 2023

Traceback (most recent call last):
File "C:\Espressif\esp-idf-v5.1-rc1\tools\idf_tools.py", line 2660, in
main(sys.argv[1:])
File "C:\Espressif\esp-idf-v5.1-rc1\tools\idf_tools.py", line 2652, in main
action_func(args)
File "C:\Espressif\esp-idf-v5.1-rc1\tools\idf_tools.py", line 1598, in action_export
tools_info = load_tools_info()
File "C:\Espressif\esp-idf-v5.1-rc1\tools\idf_tools.py", line 1269, in load_tools_info
with open(tool_versions_file_name, 'r') as f: # type: ignore
FileNotFoundError: [Errno 2] No such file or directory: 'C:\Espressif\tools/tools.json'

This error happens when i try to open a example IDF project

@github-actions github-actions bot changed the title ESP IDF 5.1 install error ESP IDF 5.1 install error (IEP-971) Jun 6, 2023
@rusiradd
Copy link
Author

rusiradd commented Jun 6, 2023

image

@sigmaaa
Copy link
Collaborator

sigmaaa commented Jun 6, 2023

Hi @rusiradd,

thank you for reporting this. So far I can't reproduce the issue on Mac and Windows. I've noticed that the command for install tools looks suspicious in your case:
"Executing python .... install all" instead of python there should be an executable python path like this:
Executing C:\Program Files\WindowsApps\PythonSoftwareFoundation.Python.3.9_3.9.3568.0_x64__qbz5n2kfra8p0\python3.9.exe D:\work\esp-idf-v5.1-rc1\tools\idf_tools.py install all

It looks like the plugin was not able to find Python 3.6 and higher on your system (in the Windows registry). Do you have a Python from the official vendor https://www.python.org/downloads/?

UPDATE: It seems like I was wrong in assuming that it should be Python's absolute path. I tried just using "python" instead of the complete path, and it worked as expected. However, I do remember facing a similar problem a while back, and the solution was to install Python from the official vendor. I'm not entirely sure if that's the case here though.

@kolipakakondal
Copy link
Collaborator

kolipakakondal commented Jun 6, 2023

Hi @rusiradd Looks like IDF_PATH is not interpreted correctly. Instead of C:\Espressif\esp-idf-v5.1-rc1\tools\tools.json it was looking at C:\Espressif\tools/tools.json

Let me check with the IDF Team

@kolipakakondal
Copy link
Collaborator

Hi @rusiradd Could you share the product information. Please post the entire console output.

Navigate to Espressif > Product Information

@dobairoland
Copy link

@kolipakakondal @alirana01 I've checked the idf_tools.py script and patching it to ignore IDF_PATH would cause breaking changes.

Would it be possible to you to set the correct IDF_PATH before running idf_tools.py or pass it each time with the --idf-path command line argument?

@kolipakakondal
Copy link
Collaborator

Hi @dobairoland As a quick solution, we are planning to introduce validation while capturing IDF_PATH in the UI and that should avoid these sort of issues.

Hi @rusiradd Can you confirm what is the IDF_PATH set in the IDE while installing tools?
https://github.com/espressif/idf-eclipse-plugin/blob/master/FAQ.md#how-do-i-view-product-information

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants