This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts

Installing Segger Embedded Studio on OSX with nRFConncet -> ModuleNotFoundError: No module named 'yaml'

Hello dear,

I am installing Embedded Studio on OSX (Catalina), and I following the nRF Connect step... all goes fine, but when I try to use "Open nRF Connect SDK Project", I select the project, the board name, I press... and the IDE give me an error. I am very sure that yaml is installed into my python environmental.

Someone can help me?

Regards

Marco

Creating solution blinky.emProject
/usr/local/bin/cmake -GNinja -DBOARD=nrf52kbd_nrf52832 -DBOARD_DIR=/Users/-/Projects/nRF_SDK/ncs/nrf/boards/arm/nrf52kbd_nrf52832 -B/Users/-/Projects/nRF_SDK/ncs/zephyr/samples/basic/blinky/build_nrf52kbd_nrf52832 -S/Users/-/Projects/nRF_SDK/ncs/zephyr/samples/basic/blinky -DZEPHYR_TOOLCHAIN_VARIANT=gnuarmemb -DGNUARMEMB_TOOLCHAIN_PATH=/opt/gnuarmemb -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/Nordic_EmbeddedStudio_v534a/html/configure_nordic_project_menuconfig.py
-- Application: /Users/-/Projects/nRF_SDK/ncs/zephyr/samples/basic/blinky
-- Zephyr version: 2.4.99 (/Users/-/Projects/nRF_SDK/ncs/zephyr)
-- Found Python3: /usr/bin/python3 (found suitable exact version "3.7.3") found components: Interpreter 
-- Board: nrf52kbd_nrf52832
-- Cache files will be written to: /Users/warcomeb/Library/Caches/zephyr
-- Found dtc: /usr/local/bin/dtc (found suitable version "1.6.0", minimum required is "1.4.6")
-- Found toolchain: gnuarmemb (/opt/gnuarmemb)
-- Found BOARD.dts: /Users/-/Projects/nRF_SDK/ncs/nrf/boards/arm/nrf52kbd_nrf52832/nrf52kbd_nrf52832.dts
-- Configuring incomplete, errors occurred!
Including boilerplate (Zephyr base): /Users/-/Projects/nRF_SDK/ncs/zephyr/cmake/app/boilerplate.cmake
Traceback (most recent call last):
  File "/Users/-/Projects/nRF_SDK/ncs/zephyr/scripts/dts/gen_defines.py", line 29, in 
    import edtlib
  File "/Users/-/Projects/nRF_SDK/ncs/zephyr/scripts/dts/edtlib.py", line 75, in 
    import yaml
ModuleNotFoundError: No module named 'yaml'
CMake Error at /Users/-/Projects/nRF_SDK/ncs/zephyr/cmake/dts.cmake:229 (message):
  gen_defines.py failed with return code: 1
Call Stack (most recent call first):
  /Users/-/Projects/nRF_SDK/ncs/zephyr/cmake/app/boilerplate.cmake:589 (include)
  /Users/-/Projects/nRF_SDK/ncs/zephyr/share/zephyr-package/cmake/ZephyrConfig.cmake:24 (include)
  /Users/-/Projects/nRF_SDK/ncs/zephyr/share/zephyr-package/cmake/ZephyrConfig.cmake:35 (include_boilerplate)
  CMakeLists.txt:4 (find_package)

error: cmake failed
create_nordic_project.py failed (1)


Parents
  • Hi Marco,

    Could you please try installing NCS with the Toolchain Manager in nRF Connect for Desktop instead? There are some issues with NCS and macOS that we're aware of and working on, both in Getting Started Assistant and Toolchain Manager, but we recently released v0.9.1 of Toolchain Manager, which had some bug fixes for macOS.

    If you're still experiencing problems, the issue could be with the python version you've installed. Please take a look at this case and this case where someone had similar problems to see whether the solutions there are of any help.

    Best regards,

    Marte

Reply
  • Hi Marco,

    Could you please try installing NCS with the Toolchain Manager in nRF Connect for Desktop instead? There are some issues with NCS and macOS that we're aware of and working on, both in Getting Started Assistant and Toolchain Manager, but we recently released v0.9.1 of Toolchain Manager, which had some bug fixes for macOS.

    If you're still experiencing problems, the issue could be with the python version you've installed. Please take a look at this case and this case where someone had similar problems to see whether the solutions there are of any help.

    Best regards,

    Marte

Children
Related