-
Notifications
You must be signed in to change notification settings - Fork 6.9k
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
Kconfig.defconfig:11: error: couldn't parse 'default $(dt_node_int_prop_int,/cpus/cpu@0,clock-frequency)' #41093
Comments
Hi, this is most likely a configuration issue with your extension environment, and not an issue in the kconfig files themselves, so let's start there. This is usually a sign that the python executable running in your extension environment is different from the python executable west runs in. You can change this by configuring |
Thanks @trond-snekvik indeed my python was wrong. This solved the issue. My environment $PATH (terminal) was pointing to a Espressif python. If help others, how I fixed in VS Code (macOs):
Since when I installed the toolchain, it was pointing to the 'wrong' python, should I reinstall it all again (any risk packages were installed in the wrong folder)? Thanks again |
Great!
If you struggle with the build, it should be the first check you make, but if |
Hey @trond-snekvik, I'm only digging up this thread because I'm having the exact same issue. I can build with west and it shows as being successful but the error continues to pop up. I wasn't sure if it was due to the python being used is within the toolchain rather than any python version installed locally. This shows the same error message that @idkq got. And here is the west build using the toolchain provided python 3.9.6, where as my python is the macOS Big Sur default of 2.7. And just for proof, here is the build success verification printout. Should I be pointing Kconfig: Python to the toolchain version to get rid of this error? I'm hesitant to do so because I don't want to "hard code" anything and screw up the environment defaults. It seems to be working just fine, I just wasn't sure if I can completely ignore that error or not. If so, it'd still be nice to clean the error up if possible. |
Hey, this looks like a python mismatch, yeah. Changing your "Kconfig: Python" should indeed fix this (you'll need to restart your vs code instance). It doesn't affect anything except the extension itself, and I'd be more wary of ignoring the error if you're using the extension's menuconfig UI to change things. |
Thanks for the confirmation @trond-snekvik. I'm not using the menuconfig UI, but none the less, I decided to put the toolchains Python link into the "Kconfig: Python" and the error has gone away. Thanks again for all your dedication! |
IDK if this is my issue or not but my Mac only has python3 and this doesn't work at all |
@trond-snekvik sure I can do that |
Installed nRF command line tools + nRF connect + VS Code Extensions, followed https://www.youtube.com/watch?v=2cv_jjqk5hg&t=381s.
OS: Mac OS Monterey
Issue when building:
Print:
The text was updated successfully, but these errors were encountered: