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

Error while creating project in NCS

Hi,

I am trying to open a project in SES, I have downloaded NCS v1.5.0 and followed the doc available for installing the required toolchain for linux. Attaching the log of the error.

Please help me to resolve the same.

Creating solution peripheral_lbs.emProject
cmake -GNinja -DBOARD=nrf52dk_nrf52832 -DBOARD_DIR=/home/shreya/ncs/zephyr/boards/arm/nrf52dk_nrf52832 -B/home/shreya/ncs/nrf/samples/bluetooth/peripheral_lbs/build_nrf52dk_nrf52832 -S/home/shreya/ncs/nrf/samples/bluetooth/peripheral_lbs -DZEPHYR_TOOLCHAIN_VARIANT=gnuarmemb -DGNUARMEMB_TOOLCHAIN_PATH=/home/shreya/gnuarmemb -DEXTRA_KCONFIG_TARGETS=menuconfig_ses -DEXTRA_KCONFIG_TARGET_COMMAND_FOR_menuconfig_ses=/home/shreya/Downloads/EmbeddedStudio_ARM_Nordic_v534a_linux_x64/arm_segger_embedded_studio_v534a_linux_x64_nordic/html/configure_nordic_project_menuconfig.py
-- Application: /home/shreya/ncs/nrf/samples/bluetooth/peripheral_lbs
-- Zephyr version: 2.4.99 (/home/shreya/ncs/zephyr)
-- Board: nrf52dk_nrf52832
-- Cache files will be written to: /home/shreya/.cache/zephyr
-- Found dtc: /usr/bin/dtc (found suitable version "1.5.0", minimum required is "1.4.6")
-- Found toolchain: gnuarmemb (/home/shreya/gnuarmemb)
-- Found BOARD.dts: /home/shreya/ncs/zephyr/boards/arm/nrf52dk_nrf52832/nrf52dk_nrf52832.dts
-- Configuring incomplete, errors occurred!
Including boilerplate (Zephyr base (cached)): /home/shreya/ncs/zephyr/cmake/app/boilerplate.cmake
Traceback (most recent call last):
  File "/home/shreya/ncs/zephyr/scripts/dts/gen_defines.py", line 30, in <module>
    import edtlib
  File "/home/shreya/ncs/zephyr/scripts/dts/edtlib.py", line 75, in <module>
    import yaml
ModuleNotFoundError: No module named 'yaml'
CMake Error at /home/shreya/ncs/zephyr/cmake/dts.cmake:229 (message):
  gen_defines.py failed with return code: 1
Call Stack (most recent call first):
  /home/shreya/ncs/zephyr/cmake/app/boilerplate.cmake:533 (include)
  /home/shreya/ncs/zephyr/share/zephyr-package/cmake/ZephyrConfig.cmake:24 (include)
  /home/shreya/ncs/zephyr/share/zephyr-package/cmake/ZephyrConfig.cmake:40 (include_boilerplate)
  CMakeLists.txt:8 (find_package)



error: cmake failed
create_nordic_project.py failed (1)

Related