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

Can't open project in SES (error 1)

I'm trying to open a NCS project in SES but I'm getting error 1 from create_nordic_project.py. NCS 1.5.0 installed with toolchain manager on macOS 11.2.2

The error in SES log:

Creating solution peripheral_hids_keyboard.emProject
  /opt/nordic/ncs/v1.5.0/toolchain/bin/cmake -GNinja -DBOARD=nrf52dk_nrf52832 -DBOARD_DIR=/opt/nordic/ncs/v1.5.0/zephyr/boards/arm/nrf52dk_nrf52832 -B/Users/nick/Desktop/peripheral_hids_keyboard/build_nrf52dk_nrf52832 -S/Users/nick/Desktop/peripheral_hids_keyboard -DNCS_TOOLCHAIN_VERSION=1.5.0 -DWEST=/opt/nordic/ncs/v1.5.0-rc1/toolchain/bin/west -DEXTRA_KCONFIG_TARGETS=menuconfig_ses -DEXTRA_KCONFIG_TARGET_COMMAND_FOR_menuconfig_ses=/opt/nordic/ncs/v1.5.0/toolchain/segger_embedded_studio/html/configure_nordic_project_menuconfig.py
  -- Application: /Users/nick/Desktop/peripheral_hids_keyboard
  -- Zephyr version: 2.4.99 (/opt/nordic/ncs/v1.5.0/zephyr)
  -- Found Python3: /opt/nordic/ncs/v1.5.0/toolchain/bin/python3 (found suitable exact version "3.8.2") found components: Interpreter 
  -- Found west (found suitable version "0.9.0", minimum required is "0.7.1")
  -- Configuring incomplete, errors occurred!
  Including boilerplate (Zephyr base): /opt/nordic/ncs/v1.5.0/zephyr/cmake/app/boilerplate.cmake
  -- Using NCS Toolchain 1.5.0 for building. (/opt/nordic/ncs/v1.5.0/toolchain/cmake)
  CMake Error at /opt/nordic/ncs/v1.5.0/zephyr/cmake/zephyr_module.cmake:61 (message):
    Traceback (most recent call last):
  
      File "/opt/nordic/ncs/v1.5.0/zephyr/scripts/zephyr_module.py", line 378, in <module>
        main()
      File "/opt/nordic/ncs/v1.5.0/zephyr/scripts/zephyr_module.py", line 283, in main
        manifest = Manifest.from_file()
      File "/opt/nordic/ncs/v1.5.0/toolchain/Cellar/[email protected]/3.8.2/Frameworks/Python.framework/Versions/3.8/lib/python3.8/site-packages/west/manifest.py", line 1084, in from_file
        return Manifest(**kwargs)
      File "/opt/nordic/ncs/v1.5.0/toolchain/Cellar/[email protected]/3.8.2/Frameworks/Python.framework/Versions/3.8/lib/python3.8/site-packages/west/manifest.py", line 1273, in __init__
        self._load(source_data['manifest'],
      File "/opt/nordic/ncs/v1.5.0/toolchain/Cellar/[email protected]/3.8.2/Frameworks/Python.framework/Versions/3.8/lib/python3.8/site-packages/west/manifest.py", line 1527, in _load
        self._load_projects(manifest, url_bases, defaults, ctx)
      File "/opt/nordic/ncs/v1.5.0/toolchain/Cellar/[email protected]/3.8.2/Frameworks/Python.framework/Versions/3.8/lib/python3.8/site-packages/west/manifest.py", line 1859, in _load_projects
        self._import_from_project(project, imp, ctx)
      File "/opt/nordic/ncs/v1.5.0/toolchain/Cellar/[email protected]/3.8.2/Frameworks/Python.framework/Versions/3.8/lib/python3.8/site-packages/west/manifest.py", line 2047, in _import_from_project
        self._import_path_from_project(project, imap.file,
      File "/opt/nordic/ncs/v1.5.0/toolchain/Cellar/[email protected]/3.8.2/Frameworks/Python.framework/Versions/3.8/lib/python3.8/site-packages/west/manifest.py", line 2059, in _import_path_from_project
        imported = self._import_content_from_project(project, path)
      File "/opt/nordic/ncs/v1.5.0/toolchain/Cellar/[email protected]/3.8.2/Frameworks/Python.framework/Versions/3.8/lib/python3.8/site-packages/west/manifest.py", line 2105, in _import_content_from_project
        project.is_cloned():
      File "/opt/nordic/ncs/v1.5.0/toolchain/Cellar/[email protected]/3.8.2/Frameworks/Python.framework/Versions/3.8/lib/python3.8/site-packages/west/manifest.py", line 850, in is_cloned
        res = self.git('rev-parse --show-cdup', check=False, cwd=cwd,
      File "/opt/nordic/ncs/v1.5.0/toolchain/Cellar/[email protected]/3.8.2/Frameworks/Python.framework/Versions/3.8/lib/python3.8/site-packages/west/manifest.py", line 747, in git
        popen = subprocess.Popen(
      File "/opt/nordic/ncs/v1.5.0/toolchain/Cellar/[email protected]/3.8.2/Frameworks/Python.framework/Versions/3.8/lib/python3.8/subprocess.py", line 854, in __init__
        self._execute_child(args, executable, preexec_fn, close_fds,
      File "/opt/nordic/ncs/v1.5.0/toolchain/Cellar/[email protected]/3.8.2/Frameworks/Python.framework/Versions/3.8/lib/python3.8/subprocess.py", line 1702, in _execute_child
        raise child_exception_type(errno_num, err_msg, err_filename)
  
    FileNotFoundError: [Errno 2] No such file or directory: 'git'
  
  Call Stack (most recent call first):
    /opt/nordic/ncs/v1.5.0/zephyr/cmake/app/boilerplate.cmake:183 (include)
    /opt/nordic/ncs/v1.5.0/zephyr/share/zephyr-package/cmake/ZephyrConfig.cmake:24 (include)
    /opt/nordic/ncs/v1.5.0/zephyr/share/zephyr-package/cmake/ZephyrConfig.cmake:35 (include_boilerplate)
    CMakeLists.txt:31 (find_package)
  
  
  
  error: cmake failed
  create_nordic_project.py failed (1)

What I've tried:

rm -r ~/Library/Caches/zephyr
rm -r ~/.cmake/packages/Zephyr*
west zephyr-export

Related