Closed mjdswan closed 1 week ago
I've found this suggestion for the issue:
pip install idf-component-manager==2.0.0.dev0
But I'll ask someone else who knows this better to take a look.
I've found this suggestion for the issue:
pip install idf-component-manager>=2.0.0.dev0
But I'll ask someone else who knows this better to take a look.
@dobairoland Thank you for the suggestion, could you please move it to the https://github.com/espressif/idf-component-manager ?
@mjdswan Yes the current pre-release version should have this issue fixed, but currently it's only supported with master branch of ESP-IDF
Hi @dobairoland , Thanks for the suggestion above, but I tried it and get the same result. I ran the pip install .. under the main framework path and it appeared to do as it should. Following this I was prompted to run install.ps1 and export.ps1 which all looked normal. However I still get the error when I try to set the target.
Hi @kumekay , did you mean that I should use the latest pre-release if I need this to work? I'm also not clear what you meant by "only supported with master branch of ESP-IDF".
@kumekay / @dobairoland any update please? We have a commercial project paused waiting for resolution of this problem. If I am missing something simple or the question is not understood, please let me know.
Further info: I found that even though I successfully install idf-component-manager 2.0.0.dev0 using pip, that it gets uninstalled again and replaced by 1.5.3 due to the espidf.constraints.v5.2.txt file specifying that older version, and this happens because I need to run install.ps1 again after updating the component manager.
@mjdswan Yes, you are right. The workaround I've posted is just for the master branch and not for v5.2.2 you are using. I'm sorry but I won't be much of a help regarding this.
We've moved the issue into the component manager repository. Please wait until the team gets back to you.
@dobairoland thank you for the update.
@mjdswan
It looks like this issue is present in the existing 1.5 releases of the component manager. Could you please try one of this 2 workarounds.
pip install idf-component-manager==1.4.2
idf-component-manager
from [HOME]\.espressif\espidf.constraints.v5.2.txt
to allow 2.0 of the idf-component-manager and install the development version from git:# remove old version of the component manager
python -m pip uninstall -y idf-component-manager
# install the development version (from the main branch)
python -m pip install git+https://github.com/espressif/idf-component-manager.git@main
@kumekay Thanks, your second approach worked well. The first approach produced errors regarding extra components it was unable to find, even though they were definitely there in the tree. After installing idf-component-manager 2.0, those components were found and I'm able to proceed and set the target successfully.
@mjdswan espidf.constraints.v5.2.txt may be overwritten by install.ps1, but it won't be a problem once we release component manager 2.0
Answers checklist.
IDF version.
ESP-IDF v5.2.2 + ESP32C6
Operating System used.
Windows
How did you build your project?
Command line with idf.py
If you are using Windows, please specify command line type.
PowerShell
What is the expected behavior?
I expected to be able to set the project target to esp32c6 and then edit configuration via menuconfig or IDE config editor
What is the actual behavior?
I performed a fresh install of IDE 3.0.0 + IDF 5.2.2 via the offline installer on a new Windows 11 laptop, then tried the following inside the standard 'led_light' example project folder with PS:
install.ps1 export.ps1 idf.py set-target esp32c6
The result is a dependency error that is probably simple, but I don't understand it. Please see my pasted log below.
Steps to reproduce.
In project folder:
Build or installation Logs.
More Information.
No response