Closed jdjingdian closed 2 years ago
Hi @jdjingdian. Thanks for the report. May I ask you that have you run recently the install script for the master branch before switching to v4.3.4?
Could you please share your ~/.espressif/idf-env.json
file?
Hi @jdjingdian. Thanks for the report. May I ask you that have you run recently the install script for the master branch before switching to v4.3.4?
Could you please share your
~/.espressif/idf-env.json
file?
I guess I clone the master branch and run the install.sh, then clone v4.3.4 in other folders(~/esp-idf-v4.3.4).
magicdian@jingdiandeMBP esp-idf-v4.3.4 % cat ~/.espressif/idf-env.json { "idfInstalled": { "/Users/magicdian/Documents/VSCODE/esp-idf-v5.1": { "version": "5.1", "path": "/Users/magicdian/Documents/VSCODE/esp-idf", "features": [ "core" ], "targets": [ "esp32c2", "esp32c6", "esp32c3", "esp32s2", "esp32", "esp32s3", "esp32h2" ] } } }
just deleted the ~/.espressif folder, install.sh works! Thanks!
Thanks. We will fix this soon. This will be closed by commit with a proper and permanent fix.
I also hit this issue with v4.3.4-50-ge40b55e854 . And the same issue in v4.4.2-153-g2bce0a19f6 .
@dobairoland Hope to get the fix for v4.3 soon, I cannot build with v4.3 for several days.
@AxelLin You don't have to wait for any fix. Just remove ~/.espressif/idf-env.json
and re-run the install script.
I also hit this issue with v4.3.4-50-ge40b55e854 . And the same issue in v4.4.2-153-g2bce0a19f6 .
The issue is in the master
branch. Switching from there to any of these release branches causes the issue. The proper fix will arrive soon to all branches. Until then, the above workaround can be used.
Fixes are now in the release branches.
I think it's a python virtual environment issue.
How I got this error:
So, is there a quick way to switch to a new idf version of python virtual environment? For example, how to switch from idf5.1_py3.8_env to idf4.2_py3.8_env?
Heads up I encountered this problem today with Espressif ESP-IDF v5 running from a VisualGDB install. Broke my ability to run the VisualGDB directory of ESP-IDF for all versions. See sysprogs forum.
The solution from @jdjingdian worked for me:
just deleted the ~/.espressif folder
I believe so that the issue has been fixed if you are using an ESP-IDF with the linked patch included.
just deleted the ~/.espressif folder
In case some of you still looking for a workaround, please be aware that removing ~/.espressif/idf-env.json
is enough. If you remove the whole directory then all toolchains will have to be downloaded again. You don't want that if you have slow Internet connection.
Thanks for the tip re delete file vs directory.
I noticed that there was a new ESP-IDF offline installer released just an hour ago:
https://github.com/espressif/idf-installer/releases/tag/offline-5.0
Does this contain the fix regarding idf-env.json
?
~/.espressif can anyone please tell me where exactly this folder is located in Apple mackboom M1?
@radimkarnis Can you please help?
~/.espressif can anyone please tell me where exactly this folder is located in Apple mackboom M1?
@Prathamesh08glovatrix does the Mac have an equivalent ESP-IDF environment variable that contains your folder location?
I don't have one to test, but a Mac is a bit Linux-like, no? Perhaps echo $IDF_PATH
or first cd $IDF_PATH
and then pwd
?
@Prathamesh08glovatrix it's /Users/<yourusername>/.espressif/idf-env.json
. Running the rm ~/.espressif/idf-env.json
command should be enough.
@radimkarnis thanks bro its gets install perfectly. love u
Answers checklist.
IDF version.
v4.3.4
Operating System used.
macOS
How did you build your project?
Command line with idf.py
If you are using Windows, please specify command line type.
No response
What is the expected behavior?
install all the dependency
What is the actual behavior?
KeyError: 'idfSelectedId'
Steps to reproduce.
Build or installation Logs.
More Information.
No response