For the error raised, it tells you the python executable is not in the environment variable. In that case, maybe the python is not installed properly or not installed at all. You could open Powershell on windows and simply run: python --version. This could confirm whether python is installed.
By the way, I am comfused that why it raised python error when you complie code in Arduino as you should always run C/C++ in Arduino. Could you please clarify your coding environment?
However, I’ll do my best to help based on the information you’ve shared. If any other Mac users in the community have experience with this, feel free to jump in as well.
py and python doesn*t find python in the powershell.
Why does the sketch compile with board manager 1.1.9 ?
Why are the problems on a mac and pc the same in 1.1.10 and not in 1.1.9 ?
That’s interesting I am assuming you download the Seeed nRF library from Arduino IDE directly. Maybe you could try uninstall all seeed nRF libraries in Arduino IDE, then download the seeed nRF52 board library directly from github.
I know this has been a while, but incase others find this and need help.
TL;DR:
Edit the platform.txt file to replace ‘python’ with ‘python3’
Details:
The clean install version of python on the Mac is python 3.9.6. I’m running Sequoia 15.5 on an M4 chip. The default for the OS install of python is ‘/usr/bin/python3’.
Version 1.1.10 references python when creating a uf2 file. Changing that reference to ‘python3’ allows the system to compile.
Aliasing the python3 in the .zshrc file didn’t seem to work, and I couldn’t create a link in the /usr/bin/ folder. I’m not fully satisfied with the fix, but here are the steps.