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

SES Import Error

Hello,

I installed Segger Embedded Studio v 5.34a following the online instructions AND the Getting Started Assistant instructions for a Mac.  I then tried to import a project as described in the "Set up a project in SEGGER Embedded Studio" section of the Getting Started Assistant.  I tried to open the "central_uart" project for "nrf5340dk_nrf5340_cpuapp" or "cpuappns", and almost immediately after clicking on the OK button, a "Cannot create project" error window pops up.

The output window shows the following:

Creating solution central_uart.emProject
  /usr/local/bin/cmake -GNinja -DBOARD=nrf5340dk_nrf5340_cpuapp -DBOARD_DIR=/Users/damon/ncs/zephyr/boards/arm/nrf5340dk_nrf5340 -B/Users/damon/ncs/nrf/samples/bluetooth/central_uart/build_nrf5340dk_nrf5340_cpuapp -S/Users/damon/ncs/nrf/samples/bluetooth/central_uart -DZEPHYR_TOOLCHAIN_VARIANT=gnuarmemb -DGNUARMEMB_TOOLCHAIN_PATH=/Users/damon/gnuarmemb -DPYTHON_EXECUTABLE=/usr/local/bin/python3 -DCMAKE_MAKE_PROGRAM=/usr/local/bin/ninja -DDTC=/usr/local/bin/dtc -DWEST=/usr/local/bin/west -DEXTRA_KCONFIG_TARGETS=menuconfig_ses -DEXTRA_KCONFIG_TARGET_COMMAND_FOR_menuconfig_ses=/Volumes/arm_segger_embedded_studio_v534a_macos_x64_nordic/arm_segger_embedded_studio_v534a_macos_x64_nordic/html/configure_nordic_project_menuconfig.py
  -- Application: /Users/damon/ncs/nrf/samples/bluetooth/central_uart
  -- Zephyr version: 2.4.99 (/Users/damon/ncs/zephyr)
  -- Configuring incomplete, errors occurred!
  Including boilerplate (Zephyr base (cached)): /Users/damon/ncs/zephyr/cmake/app/boilerplate.cmake
  CMake Error at /Users/damon/ncs/zephyr/cmake/zephyr_module.cmake:61 (message):
    Traceback (most recent call last):
  
      File "/Users/damon/ncs/zephyr/scripts/zephyr_module.py", line 25, in <module>
        import pykwalify.core
  
    ModuleNotFoundError: No module named 'pykwalify'
  
  Call Stack (most recent call first):
    /Users/damon/ncs/zephyr/cmake/app/boilerplate.cmake:183 (include)
    /Users/damon/ncs/zephyr/share/zephyr-package/cmake/ZephyrConfig.cmake:24 (include)
    /Users/damon/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)

The main error seems to be this line:
ModuleNotFoundError: No module named 'pykwalify'


I can launch python3 in a terminal and import pykwalify and pykwalify.core just fine, so I don't know why SES is having trouble with this.  I tried to import other projects and got the same error.

I also re-ran "pip3 install pykwalify" and "pip install pykwalify" in a terminal and all requirements were satisfied.  "pip3 list" shows pykwalify 1.8.0 is installed.

Any suggestions on how to fix or diagnose this would be appreciated.

Parents Reply Children
No Data
Related