Wrong Python version with CMake on Mac OS

Hello, I've got a frustrating error on a fresh install of my environment on Mac OS 13: "Could NOT find Python3: Found unsuitable version "3.9.6", but required is at least "3.10"

The SDK 2.7 have been installed using nRF Connect for VSCode. In the toolchain files I see that Python 3.9 is installed alongside cmake 3.21.
The error is produced after creating the configuration graphically. I've tested other SDKs from 2.4 to 2.7 with the same result.

Do you have a solution? Thanks in advance

west build --build-dir /untitled/build_8 /untitled --pristine --board nrf5340dk_nrf5340_cpuapp --no-sysbuild --cmake-only -- -DNCS_TOOLCHAIN_VERSION=NONE

-- west build: generating a build system
Loading Zephyr default modules (Zephyr base).
-- Application: /untitled
-- CMake version: 3.21.0
CMake Error at /opt/nordic/ncs/toolchains/f8037e9b83/Cellar/cmake/3.21.0/share/cmake/Modules/FindPackageHandleStandardArgs.cmake:230 (message):
  Could NOT find Python3: Found unsuitable version "3.9.6", but required is
  at least "3.10" (found
  /opt/nordic/ncs/toolchains/f8037e9b83/opt/[email protected]/bin/python3.9, found
  components: Interpreter)
Call Stack (most recent call first):
  /opt/nordic/ncs/toolchains/f8037e9b83/Cellar/cmake/3.21.0/share/cmake/Modules/FindPackageHandleStandardArgs.cmake:592 (_FPHSA_FAILURE_MESSAGE)
  /opt/nordic/ncs/toolchains/f8037e9b83/Cellar/cmake/3.21.0/share/cmake/Modules/FindPython/Support.cmake:3165 (find_package_handle_standard_args)
  /opt/nordic/ncs/toolchains/f8037e9b83/Cellar/cmake/3.21.0/share/cmake/Modules/FindPython3.cmake:485 (include)

Parents Reply Children
Related