Apologies for this question, as it has been asked a number of times but I've not found anything to help so far.
As at the time of writing, I believe I've got the latest of everything (Segger IDE, nRF Connect etc). On attempting to open an nRF Connect Project then Segger is reporting the following:
Creating solution peripheral_lbs.emProject/usr/local/bin/cmake -GNinja -DBOARD=nrf9160dk_nrf9160ns -DBOARD_DIR=/opt/nordic/ncs/zephyr/boards/arm/nrf9160dk_nrf9160 -B/opt/nordic/ncs/nrf/samples/bluetooth/peripheral_lbs/build_nrf9160dk_nrf9160ns -S/opt/nordic/ncs/nrf/samples/bluetooth/peripheral_lbs -DZEPHYR_TOOLCHAIN_VARIANT=gnuarmemb -DGNUARMEMB_TOOLCHAIN_PATH=/usr/local -DPYTHON_EXECUTABLE=/usr/local/bin/python3 -DCMAKE_MAKE_PROGRAM=/usr/local/bin/ninja -DDTC=/usr/local/bin/dtc -D WEST=/usr/local/bin/west -DEXTRA_KCONFIG_TARGETS=menuconfig_ses -DEXTRA_KCONFIG_TARGET_COMMAND_FOR_menuconfig_ses=/Applications/arm_segger_embedded_studio_v534a_macos_x64_nordic/html/configure_nordic_project_menuconfig.py-- Application: /opt/nordic/ncs/nrf/samples/bluetooth/peripheral_lbs-- Zephyr version: 2.5.99 (/opt/nordic/ncs/zephyr)-- Board: nrf9160dk_nrf9160ns, Revision: 0.7.0-- Cache files will be written to: /Users/myuser/Library/Caches/zephyr-- Found dtc: /usr/local/bin/dtc (found suitable version "1.6.0", minimum required is "1.4.6")-- Found toolchain: gnuarmemb (/usr/local)-- Found BOARD.dts: /opt/nordic/ncs/zephyr/boards/arm/nrf9160dk_nrf9160/nrf9160dk_nrf9160ns.dts-- Configuring incomplete, errors occurred!Including boilerplate (Zephyr base (cached)): /opt/nordic/ncs/zephyr/cmake/app/boilerplate.cmakenrf9160dk_nrf9160ns.dts.pre.tmp:367.32-371.5: Warning (simple_bus_reg): /soc/cryptocell-sw: missing or empty reg/ranges propertyTraceback (most recent call last): File "/opt/nordic/ncs/zephyr/scripts/dts/gen_defines.py", line 33, in <module> from devicetree import edtlib File "/opt/nordic/ncs/zephyr/scripts/dts/python-devicetree/src/devicetree/edtlib.py", line 76, in <module> import yamlModuleNotFoundError: No module named 'yaml'CMake Error at /opt/nordic/ncs/zephyr/cmake/dts.cmake:240 (message): gen_defines.py failed with return code: 1Call Stack (most recent call first): /opt/nordic/ncs/zephyr/cmake/app/boilerplate.cmake:554 (include) /opt/nordic/ncs/zephyr/share/zephyr-package/cmake/ZephyrConfig.cmake:24 (include) /opt/nordic/ncs/zephyr/share/zephyr-package/cmake/ZephyrConfig.cmake:40 (include_boilerplate) CMakeLists.txt:8 (find_package)error: cmake failedcreate_nordic_project.py failed (1)
Hi, Christopher!Thanks for reaching out. The error indicates that you are missing the "yaml" python module. Did you install the nRF Connect SDK (NCS) using the Toolchain Manager or manually? If the latter could you try to install the Python dependencies again entering the ncs directory and calling:
pip3 install -r zephyr/scripts/requirements.txt
pip3 install -r nrf/scripts/requirements.txt
pip3 install -r bootloader/mcuboot/scripts/requirements.txt
Hi Carl. Thanks for the reply. I installed via nRF Connect's Getting Started app and followed its instructions. All appeared to install well (I also used --user to avoid permission issues). I've even attempted a manual install of pyyaml - pip3 told me that it is already installed. Any more ideas? Thanks again.
Hi again!Understood. Could you share your PATH environment variable? It may be that the path to the packages must be added.Best regards,Carl Richard
Alternatively, installing using the Toolchain Manager app of nRF Connect for Desktop should be quite reliable for MacOS now so you could try that as well.Best regards,Carl Richard
My PATH env:
Thanks for the PATH. I will compare this with a working installation on a Mac here at the office. Have you made sure to run the "source <ncs_root>/zephyr/zephyr-env.sh" command as well?Best regards,Carl Richard