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

project fails to load after I used git to update nrf9160 SDK from 1.0.0 to 1.1.0

I am using windows 10 and have been able to work with the FOTA sample for the nrf9160 for several months.

I needed to update the SDK from 1.0.0 to 1.1.0. I followed the instructions in the nrfConnect tool including

updating to the latest version of the compiler. 

I get the following in the output window in SES. I get a similar error when I try to load in the ble_gateway project

Loading solution aws_fota.emProject
Executing load commands
cmake -GNinja -DBOARD=nrf9160_pca10090ns -DBOARD_DIR=C:/Projects/PCDWorks/nRF9160/ncs/zephyr/boards/arm/nrf9160_pca10090 -DZEPHYR_TOOLCHAIN_VARIANT=gnuarmemb -DGNUARMEMB_TOOLCHAIN_PATH=C:/gnuarmemb -BC:/Projects/PCDWorks/nRF9160/ncs/nrf/samples/nrf9160/aws_fota/build_nrf9160_pca10090ns -HC:/Projects/PCDWorks/nRF9160/ncs/nrf/samples/nrf9160/aws_fota -DEXTRA_KCONFIG_TARGETS=menuconfig_ses -DEXTRA_KCONFIG_TARGET_COMMAND_FOR_menuconfig_ses=C:/Program Files/SEGGER/arm_segger_embedded_studio_v430c_win_x64_nordic/html/configure_nordic_project_menuconfig.py
-- Using application from 'C:/Projects/PCDWorks/nRF9160/ncs/nrf/samples/nrf9160/aws_fota'
Zephyr version: 1.14.99
-- Selected BOARD nrf9160_pca10090ns
-- Found west: C:/Python37/Scripts/west.exe (found suitable version "0.5.8", minimum required is "0.5.6")
validation.invalid
 --- All found errors ---
["Key 'repo-path' was not defined. Path: '/projects/0'", "Key 'repo-path' was not defined. Path: '/projects/3'", "Key 'repo-path' was not defined. Path: '/projects/4'", "Key 'repo-path' was not defined. Path: '/projects/5'", "Key 'repo-path' was not defined. Path: '/projects/6'", "Key 'repo-path' was not defined. Path: '/projects/12'"]
Traceback (most recent call last):
  File "C:\Projects\PCDWorks\nRF9160\ncs\.west\west\src\west\manifest.py", line 153, in __init__
    schema_files=[_SCHEMA_PATH[key]]
  File "c:\python37\lib\site-packages\pykwalify\core.py", line 167, in validate
    error_msg=u'.\n - '.join(self.validation_errors)))
pykwalify.errors.SchemaError: <SchemaError: error code 2: Schema validation failed:
 - Key 'repo-path' was not defined. Path: '/projects/0'.
 - Key 'repo-path' was not defined. Path: '/projects/3'.
 - Key 'repo-path' was not defined. Path: '/projects/4'.
 - Key 'repo-path' was not defined. Path: '/projects/5'.
 - Key 'repo-path' was not defined. Path: '/projects/6'.
 - Key 'repo-path' was not defined. Path: '/projects/12'.: Path: '/'>
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
  File "c:\python37\lib\runpy.py", line 193, in _run_module_as_main
    "__main__", mod_spec)
  File "c:\python37\lib\runpy.py", line 85, in _run_code
    exec(code, run_globals)
  File "C:\Python37\Scripts\west.exe\__main__.py", line 9, in <module>
  File "c:\python37\lib\site-packages\west\_bootstrap\main.py", line 499, in main
    wrap(wrap_argv)
  File "c:\python37\lib\site-packages\west\_bootstrap\main.py", line 485, in wrap
    west.main.main(argv)
  File "C:\Projects\PCDWorks\nRF9160\ncs\.west\west\src\west\main.py", line 569, in main
    extensions = get_extension_commands()
  File "C:\Projects\PCDWorks\nRF9160\ncs\.west\west\src\west\main.py", line 531, in get_extension_commands
    extensions = extension_commands()
  File "C:\Projects\PCDWorks\nRF9160\ncs\.west\west\src\west\commands\command.py", line 181, in extension_commands
    manifest = Manifest.from_file()
  File "C:\Projects\PCDWorks\nRF9160\ncs\.west\west\src\west\manifest.py", line 91, in from_file
    return Manifest(source_file=source_file, sections=sections)
  File "C:\Projects\PCDWorks\nRF9160\ncs\.west\west\src\west\manifest.py", line 156, in __init__
    self._malformed(e, key)
  File "C:\Projects\PCDWorks\nRF9160\ncs\.west\west\src\west\manifest.py", line 226, in _malformed
    complaint))
west.manifest.MalformedManifest: Malformed manifest file C:\Projects\PCDWorks\nRF9160\ncs\nrf\west.yml (schema: C:\Projects\PCDWorks\nRF9160\ncs\.west\west\src\west\manifest-schema.yml):
<SchemaError: error code 2: Schema validation failed:
 - Key 'repo-path' was not defined. Path: '/projects/0'.
 - Key 'repo-path' was not defined. Path: '/projects/3'.
 - Key 'repo-path' was not defined. Path: '/projects/4'.
 - Key 'repo-path' was not defined. Path: '/projects/5'.
 - Key 'repo-path' was not defined. Path: '/projects/6'.
 - Key 'repo-path' was not defined. Path: '/projects/12'.: Path: '/'>

CMake Error at C:/Projects/PCDWorks/nRF9160/ncs/zephyr/cmake/zephyr_module.cmake:45 (message):
  Traceback (most recent call last):
    File "C:/Projects/PCDWorks/nRF9160/ncs/zephyr/scripts/zephyr_module.py", line 168, in <module>
      main()
    File "C:/Projects/PCDWorks/nRF9160/ncs/zephyr/scripts/zephyr_module.py", line 142, in main
      returncode=p.returncode)
  subprocess.CalledProcessError: Command '['C:/Python37/Scripts/west.exe',
  'list', '--format={posixpath}']' returned non-zero exit status 1.
Call Stack (most recent call first):
  C:/Projects/PCDWorks/nRF9160/ncs/zephyr/cmake/app/boilerplate.cmake:249 (include)
  CMakeLists.txt:10 (include)

-- Configuring incomplete, errors occurred!
Project load failed
Reported error: solution load command failed (1)
Parents
  • Here is additional information. The following is the output from the command line from attempting to update the project using west

    Microsoft Windows [Version 10.0.17763.973]
    (c) 2018 Microsoft Corporation. All rights reserved.
    C:\Projects\PCDWorks\nRF9160\ncs\nrf>git fetch origin
    C:\Projects\PCDWorks\nRF9160\ncs\nrf>git checkout v1.1.0
    HEAD is now at d3130d77 manifest: Use v1.1.0 release tags
    M       samples/nrf9160/aws_fota/CMakeLists.txt
    M       subsys/net/lib/aws_fota/src/aws_fota.c
    C:\Projects\PCDWorks\nRF9160\ncs\nrf>west update
    validation.invalid
     --- All found errors ---
    ["Key 'repo-path' was not defined. Path: '/projects/0'", "Key 'repo-path' was not defined. Path: '/projects/3'", "Key 'repo-path' was not defined. Path: '/projects/4'", "Key 'repo-path' was not defined. Path: '/projects/5'", "Key 'repo-path' was not defined. Path: '/projects/6'", "Key 'repo-path' was not defined. Path: '/projects/12'"]
    Traceback (most recent call last):
      File "C:\Projects\PCDWorks\nRF9160\ncs\.west\west\src\west\manifest.py", line 153, in __init__
        schema_files=[_SCHEMA_PATH[key]]
      File "c:\python37\lib\site-packages\pykwalify\core.py", line 167, in validate
        error_msg=u'.\n - '.join(self.validation_errors)))
    pykwalify.errors.SchemaError: <SchemaError: error code 2: Schema validation failed:
     - Key 'repo-path' was not defined. Path: '/projects/0'.
     - Key 'repo-path' was not defined. Path: '/projects/3'.
     - Key 'repo-path' was not defined. Path: '/projects/4'.
     - Key 'repo-path' was not defined. Path: '/projects/5'.
     - Key 'repo-path' was not defined. Path: '/projects/6'.
     - Key 'repo-path' was not defined. Path: '/projects/12'.: Path: '/'>
    During handling of the above exception, another exception occurred:
    Traceback (most recent call last):
      File "c:\python37\lib\runpy.py", line 193, in _run_module_as_main
        "__main__", mod_spec)
      File "c:\python37\lib\runpy.py", line 85, in _run_code
        exec(code, run_globals)
      File "C:\Python37\Scripts\west.exe\__main__.py", line 9, in <module>
      File "c:\python37\lib\site-packages\west\_bootstrap\main.py", line 499, in main
        wrap(wrap_argv)
      File "c:\python37\lib\site-packages\west\_bootstrap\main.py", line 485, in wrap
        west.main.main(argv)
      File "C:\Projects\PCDWorks\nRF9160\ncs\.west\west\src\west\main.py", line 569, in main
        extensions = get_extension_commands()
      File "C:\Projects\PCDWorks\nRF9160\ncs\.west\west\src\west\main.py", line 531, in get_extension_commands
        extensions = extension_commands()
      File "C:\Projects\PCDWorks\nRF9160\ncs\.west\west\src\west\commands\command.py", line 181, in extension_commands
        manifest = Manifest.from_file()
      File "C:\Projects\PCDWorks\nRF9160\ncs\.west\west\src\west\manifest.py", line 91, in from_file
        return Manifest(source_file=source_file, sections=sections)
      File "C:\Projects\PCDWorks\nRF9160\ncs\.west\west\src\west\manifest.py", line 156, in __init__
        self._malformed(e, key)
      File "C:\Projects\PCDWorks\nRF9160\ncs\.west\west\src\west\manifest.py", line 226, in _malformed
        complaint))
    west.manifest.MalformedManifest: Malformed manifest file C:\Projects\PCDWorks\nRF9160\ncs\nrf\west.yml (schema: C:\Projects\PCDWorks\nRF9160\ncs\.west\west\src\west\manifest-schema.yml):
    <SchemaError: error code 2: Schema validation failed:
     - Key 'repo-path' was not defined. Path: '/projects/0'.
     - Key 'repo-path' was not defined. Path: '/projects/3'.
     - Key 'repo-path' was not defined. Path: '/projects/4'.
     - Key 'repo-path' was not defined. Path: '/projects/5'.
     - Key 'repo-path' was not defined. Path: '/projects/6'.
     - Key 'repo-path' was not defined. Path: '/projects/12'.: Path: '/'>
    C:\Projects\PCDWorks\nRF9160\ncs\nrf>
  • Also if I try to use west in a new folder parallel to my existing working folder I get the following:

    Receiving objects: 100% (23039/23039), 9.03 MiB | 3.58 MiB/s, done.
    Resolving deltas: 100% (15895/15895), done.
    From github.com/.../fw-nrfconnect-nrf
     * tag               v1.1.0      -> FETCH_HEAD
     * [new branch]      master      -> origin/master
     * [new branch]      v1.0-branch -> origin/v1.0-branch
     * [new branch]      v1.1-branch -> origin/v1.1-branch
     * [new tag]         v0.1.0      -> v0.1.0
     * [new tag]         v0.1.0-rc1  -> v0.1.0-rc1
     * [new tag]         v0.3.0      -> v0.3.0
     * [new tag]         v0.3.0-rc1  -> v0.3.0-rc1
     * [new tag]         v0.3.0-rc2  -> v0.3.0-rc2
     * [new tag]         v0.4.0      -> v0.4.0
     * [new tag]         v0.4.0-rc1  -> v0.4.0-rc1
     * [new tag]         v0.4.0-rc2  -> v0.4.0-rc2
     * [new tag]         v1.0.0      -> v1.0.0
     * [new tag]         v1.0.0-rc1  -> v1.0.0-rc1
     * [new tag]         v1.0.0-rc2  -> v1.0.0-rc2
     * [new tag]         v1.0.0-rc3  -> v1.0.0-rc3
     * [new tag]         v1.0.0-rc4  -> v1.0.0-rc4
     * [new tag]         v1.1.0      -> v1.1.0
     * [new tag]         v1.1.0-rc1  -> v1.1.0-rc1
     * [new tag]         v1.1.0-rc2  -> v1.1.0-rc2
     * [new tag]         v1.1.0-rc3  -> v1.1.0-rc3
    8c94096fa7cfca9970b531e30dcf7b116c78782b refs/tags/v1.1.0
    Checking out files: 100% (1238/1238), done.
    Note: checking out 'v1.1.0'.
    You are in 'detached HEAD' state. You can look around, make experimental
    changes and commit them, and you can discard any commits you make in this
    state without impacting any branches by performing another checkout.
    If you want to create a new branch to retain commits you create, you may
    do so (now or later) by using -b with the checkout command again. Example:
      git checkout -b <new-branch-name>
    HEAD is now at d3130d77 manifest: Use v1.1.0 release tags
    cloning github.com/.../west at revision master
    [92m=== Cloning west repository from https://github.com/zephyrproject-rtos/west, rev. master into C:\Projects\PCDWorks\nrf9160_110\ncs\.west\west
    [0mInitialized empty Git repository in C:/Projects/PCDWorks/nrf9160_110/ncs/.west/west/.git/
    remote: Enumerating objects: 3276, done.
    Receiving objects:  99% (3244/3276)d 0 (delta 0), pack-reused 3276R
    Receiving objects: 100% (3276/3276), 932.94 KiB | 3.75 MiB/s, done.
    Resolving deltas: 100% (1945/1945), done.
    From https://github.com/zephyrproject-rtos/west
     * branch            master       -> FETCH_HEAD
     * [new branch]      master       -> origin/master
     * [new branch]      v0.6-branch  -> origin/v0.6-branch
     * [new tag]         v0.1.0       -> v0.1.0
     * [new tag]         v0.2.0       -> v0.2.0
     * [new tag]         v0.2.0rc1    -> v0.2.0rc1
     * [new tag]         v0.2.0rc2    -> v0.2.0rc2
     * [new tag]         v0.2.0rc3    -> v0.2.0rc3
     * [new tag]         v0.3.0       -> v0.3.0
     * [new tag]         v0.3.0rc1    -> v0.3.0rc1
     * [new tag]         v0.4.0       -> v0.4.0
     * [new tag]         v0.4.0rc1    -> v0.4.0rc1
     * [new tag]         v0.5.0       -> v0.5.0
     * [new tag]         v0.5.1       -> v0.5.1
     * [new tag]         v0.5.2       -> v0.5.2
     * [new tag]         v0.5.3       -> v0.5.3
     * [new tag]         v0.5.4       -> v0.5.4
     * [new tag]         v0.5.5       -> v0.5.5
     * [new tag]         v0.5.6       -> v0.5.6
     * [new tag]         v0.5.7       -> v0.5.7
     * [new tag]         v0.5.8       -> v0.5.8
     * [new tag]         v0.6.0       -> v0.6.0
     * [new tag]         v0.6.0rc1    -> v0.6.0rc1
     * [new tag]         v0.6.0rc2    -> v0.6.0rc2
     * [new tag]         v0.6.0rc3    -> v0.6.0rc3
     * [new tag]         v0.6.1       -> v0.6.1
     * [new tag]         v0.6.2       -> v0.6.2
     * [new tag]         v0.6.3       -> v0.6.3
     * [new tag]         v0.6.99.dev3 -> v0.6.99.dev3
     * [new tag]         v0.6.99.dev4 -> v0.6.99.dev4
    2101a7af38bedf2a3ea2c6cb1f70834b7151a9fb refs/remotes/origin/master
    Already on 'master'
    Branch 'master' set up to track remote branch 'master' from 'origin'.
    Error: no west.main in C:\Projects\PCDWorks\nrf9160_110\ncs\.west\west
    C:\Projects\PCDWorks\nrf9160_110\ncs>west update
    Error: "C:\Projects\PCDWorks\nrf9160_110\ncs" is not in a west installation.
    Things to try:
     - Set ZEPHYR_BASE to a zephyr repository path in a west installation.
     - Run "west init" to set up an installation here.
     - Run "west init -h" for additional information.
    C:\Projects\PCDWorks\nrf9160_110\ncs>west init
    Initializing in C:\Projects\PCDWorks\nrf9160_110\ncs
    [92m=== Cloning manifest repository from https://github.com/zephyrproject-rtos/zephyr, rev. master into C:\Projects\PCDWorks\nrf9160_110\ncs\.west\tmp
    [0mInitialized empty Git repository in C:/Projects/PCDWorks/nrf9160_110/ncs/.west/tmp/.git/
    remote: Enumerating objects: 18, done.
    remote: Counting objects: 100% (18/18), done.
    remote: Compressing objects: 100% (18/18), done.
    remote: Total 410928 (delta 5), reused 1 (delta 0), pack-reused 410910
    Receiving objects: 100% (410928/410928), 291.95 MiB | 2.99 MiB/s, done.
    Resolving deltas: 100% (307876/307876), done.
    From https://github.com/zephyrproject-rtos/zephyr
     * branch            master                 -> FETCH_HEAD
     * [new branch]      add_rgb565_font        -> origin/add_rgb565_font
     * [new branch]      arm                    -> origin/arm
     * [new branch]      backport-17058-to-v1.14-branch -> origin/backport-17058-to-v1.14-branch
     * [new branch]      backport-17066-to-v1.14-branch -> origin/backport-17066-to-v1.14-branch
     * [new branch]      backport-17067-to-v1.14-branch -> origin/backport-17067-to-v1.14-branch
     * [new branch]      backport-17141-to-v1.14-branch -> origin/backport-17141-to-v1.14-branch
     * [new branch]      backport-17159-to-v1.14-branch -> origin/backport-17159-to-v1.14-branch
     * [new branch]      backport-17227-to-v1.14-branch -> origin/backport-17227-to-v1.14-branch
     * [new branch]      backport-17263-to-v1.14-branch -> origin/backport-17263-to-v1.14-branch
     * [new branch]      backport-17474-to-v1.14-branch -> origin/backport-17474-to-v1.14-branch
     * [new branch]      backport-17847-to-v1.14-branch -> origin/backport-17847-to-v1.14-branch
     * [new branch]      backport-18040-to-v1.14-branch -> origin/backport-18040-to-v1.14-branch
     * [new branch]      backport-18744-to-v1.14-branch -> origin/backport-18744-to-v1.14-branch
     * [new branch]      backport-19020-to-v1.14-branch -> origin/backport-19020-to-v1.14-branch
     * [new branch]      backport-19166-to-v2.0-branch -> origin/backport-19166-to-v2.0-branch
     * [new branch]      backport-19185-to-v2.0-branch -> origin/backport-19185-to-v2.0-branch
     * [new branch]      backport-19194-to-v2.0-branch -> origin/backport-19194-to-v2.0-branch
     * [new branch]      backport-19211-to-v2.0-branch -> origin/backport-19211-to-v2.0-branch
     * [new branch]      backport-19266-to-v2.0-branch -> origin/backport-19266-to-v2.0-branch
     * [new branch]      backport-19268-to-v2.0-branch -> origin/backport-19268-to-v2.0-branch
     * [new branch]      backport-19533-to-v1.14-branch -> origin/backport-19533-to-v1.14-branch
     * [new branch]      backport-19580-to-v2.0-branch -> origin/backport-19580-to-v2.0-branch
     * [new branch]      backport-19789-to-v2.0-branch -> origin/backport-19789-to-v2.0-branch
     * [new branch]      backport-19792-to-v2.0-branch -> origin/backport-19792-to-v2.0-branch
     * [new branch]      backport-19819-to-v2.0-branch -> origin/backport-19819-to-v2.0-branch
     * [new branch]      backport-19920-to-v2.0-branch -> origin/backport-19920-to-v2.0-branch
     * [new branch]      backport-20354-to-v2.0-branch -> origin/backport-20354-to-v2.0-branch
     * [new branch]      bugfix/log_strdup_gatt -> origin/bugfix/log_strdup_gatt
     * [new branch]      master                 -> origin/master
     * [new branch]      topic-ble-llcp         -> origin/topic-ble-llcp
     * [new branch]      topic-gpio             -> origin/topic-gpio
     * [new branch]      topic-sensors          -> origin/topic-sensors
     * [new branch]      v1.10-branch           -> origin/v1.10-branch
     * [new branch]      v1.11-branch           -> origin/v1.11-branch
     * [new branch]      v1.12-branch           -> origin/v1.12-branch
     * [new branch]      v1.13-branch           -> origin/v1.13-branch
     * [new branch]      v1.14-branch           -> origin/v1.14-branch
     * [new branch]      v1.5-branch            -> origin/v1.5-branch
     * [new branch]      v1.6-branch            -> origin/v1.6-branch
     * [new branch]      v1.7-branch            -> origin/v1.7-branch
     * [new branch]      v1.8-branch            -> origin/v1.8-branch
     * [new branch]      v1.9-branch            -> origin/v1.9-branch
     * [new branch]      v2.0-branch            -> origin/v2.0-branch
     * [new branch]      v2.1-branch            -> origin/v2.1-branch
     * [new tag]         v1.0.0                 -> v1.0.0
     * [new tag]         v1.1.0                 -> v1.1.0
     * [new tag]         v1.1.0-rc1             -> v1.1.0-rc1
     * [new tag]         v1.10.0                -> v1.10.0
     * [new tag]         v1.10.0-rc1            -> v1.10.0-rc1
     * [new tag]         v1.10.0-rc2            -> v1.10.0-rc2
     * [new tag]         v1.10.0-rc3            -> v1.10.0-rc3
     * [new tag]         v1.11.0                -> v1.11.0
     * [new tag]         v1.11.0-rc1            -> v1.11.0-rc1
     * [new tag]         v1.11.0-rc2            -> v1.11.0-rc2
     * [new tag]         v1.11.0-rc3            -> v1.11.0-rc3
     * [new tag]         v1.12.0                -> v1.12.0
     * [new tag]         v1.12.0-rc1            -> v1.12.0-rc1
     * [new tag]         v1.12.0-rc2            -> v1.12.0-rc2
     * [new tag]         v1.12.0-rc3            -> v1.12.0-rc3
     * [new tag]         v1.13.0                -> v1.13.0
     * [new tag]         v1.13.0-rc1            -> v1.13.0-rc1
     * [new tag]         v1.13.0-rc2            -> v1.13.0-rc2
     * [new tag]         v1.13.0-rc3            -> v1.13.0-rc3
     * [new tag]         v1.14.0                -> v1.14.0
     * [new tag]         v1.14.0-rc1            -> v1.14.0-rc1
     * [new tag]         v1.14.0-rc2            -> v1.14.0-rc2
     * [new tag]         v1.14.0-rc3            -> v1.14.0-rc3
     * [new tag]         v1.14.1                -> v1.14.1
     * [new tag]         v1.14.1-rc1            -> v1.14.1-rc1
     * [new tag]         v1.14.1-rc2            -> v1.14.1-rc2
     * [new tag]         v1.14.1-rc3            -> v1.14.1-rc3
     * [new tag]         v1.2.0                 -> v1.2.0
     * [new tag]         v1.2.0-rc1             -> v1.2.0-rc1
     * [new tag]         v1.2.0-rc2             -> v1.2.0-rc2
     * [new tag]         v1.3.0                 -> v1.3.0
     * [new tag]         v1.3.0-rc1             -> v1.3.0-rc1
     * [new tag]         v1.3.0-rc2             -> v1.3.0-rc2
     * [new tag]         v1.4.0                 -> v1.4.0
     * [new tag]         v1.4.0-rc1             -> v1.4.0-rc1
     * [new tag]         v1.4.0-rc2             -> v1.4.0-rc2
     * [new tag]         v1.4.0-rc3             -> v1.4.0-rc3
     * [new tag]         v1.5.0                 -> v1.5.0
     * [new tag]         v1.5.0-rc0             -> v1.5.0-rc0
     * [new tag]         v1.5.0-rc1             -> v1.5.0-rc1
     * [new tag]         v1.5.0-rc2             -> v1.5.0-rc2
     * [new tag]         v1.5.0-rc3             -> v1.5.0-rc3
     * [new tag]         v1.5.0-rc4             -> v1.5.0-rc4
     * [new tag]         v1.6.0                 -> v1.6.0
     * [new tag]         v1.6.0-rc1             -> v1.6.0-rc1
     * [new tag]         v1.6.0-rc2             -> v1.6.0-rc2
     * [new tag]         v1.6.0-rc3             -> v1.6.0-rc3
     * [new tag]         v1.6.0-rc4             -> v1.6.0-rc4
     * [new tag]         v1.6.1                 -> v1.6.1
     * [new tag]         v1.6.1-rc              -> v1.6.1-rc
     * [new tag]         v1.6.99                -> v1.6.99
     * [new tag]         v1.7.0                 -> v1.7.0
     * [new tag]         v1.7.0-rc1             -> v1.7.0-rc1
     * [new tag]         v1.7.0-rc2             -> v1.7.0-rc2
     * [new tag]         v1.7.0-rc3             -> v1.7.0-rc3
     * [new tag]         v1.7.0-rc4             -> v1.7.0-rc4
     * [new tag]         v1.7.1                 -> v1.7.1
     * [new tag]         v1.7.1-rc              -> v1.7.1-rc
     * [new tag]         v1.7.99                -> v1.7.99
     * [new tag]         v1.8.0                 -> v1.8.0
     * [new tag]         v1.8.0-rc1             -> v1.8.0-rc1
     * [new tag]         v1.8.0-rc2             -> v1.8.0-rc2
     * [new tag]         v1.8.0-rc3             -> v1.8.0-rc3
     * [new tag]         v1.8.0-rc4             -> v1.8.0-rc4
     * [new tag]         v1.8.99                -> v1.8.99
     * [new tag]         v1.9.0                 -> v1.9.0
     * [new tag]         v1.9.0-rc1             -> v1.9.0-rc1
     * [new tag]         v1.9.0-rc2             -> v1.9.0-rc2
     * [new tag]         v1.9.0-rc3             -> v1.9.0-rc3
     * [new tag]         v1.9.0-rc4             -> v1.9.0-rc4
     * [new tag]         v1.9.1                 -> v1.9.1
     * [new tag]         v1.9.2                 -> v1.9.2
     * [new tag]         v2.0.0                 -> v2.0.0
     * [new tag]         v2.0.0-rc1             -> v2.0.0-rc1
     * [new tag]         v2.0.0-rc2             -> v2.0.0-rc2
     * [new tag]         v2.0.0-rc3             -> v2.0.0-rc3
     * [new tag]         v2.1.0                 -> v2.1.0
     * [new tag]         v2.1.0-rc1             -> v2.1.0-rc1
     * [new tag]         v2.1.0-rc2             -> v2.1.0-rc2
     * [new tag]         v2.1.0-rc3             -> v2.1.0-rc3
     * [new tag]         zephyr-v1.0.0          -> zephyr-v1.0.0
     * [new tag]         zephyr-v1.1.0          -> zephyr-v1.1.0
     * [new tag]         zephyr-v1.10.0         -> zephyr-v1.10.0
     * [new tag]         zephyr-v1.11.0         -> zephyr-v1.11.0
     * [new tag]         zephyr-v1.12.0         -> zephyr-v1.12.0
     * [new tag]         zephyr-v1.13.0         -> zephyr-v1.13.0
     * [new tag]         zephyr-v1.14.0         -> zephyr-v1.14.0
     * [new tag]         zephyr-v1.14.1         -> zephyr-v1.14.1
     * [new tag]         zephyr-v1.2.0          -> zephyr-v1.2.0
     * [new tag]         zephyr-v1.3.0          -> zephyr-v1.3.0
     * [new tag]         zephyr-v1.4.0          -> zephyr-v1.4.0
     * [new tag]         zephyr-v1.5.0          -> zephyr-v1.5.0
     * [new tag]         zephyr-v1.6.0          -> zephyr-v1.6.0
     * [new tag]         zephyr-v1.6.1          -> zephyr-v1.6.1
     * [new tag]         zephyr-v1.7.0          -> zephyr-v1.7.0
     * [new tag]         zephyr-v1.7.1          -> zephyr-v1.7.1
     * [new tag]         zephyr-v1.8.0          -> zephyr-v1.8.0
     * [new tag]         zephyr-v1.9.0          -> zephyr-v1.9.0
     * [new tag]         zephyr-v1.9.1          -> zephyr-v1.9.1
     * [new tag]         zephyr-v1.9.2          -> zephyr-v1.9.2
     * [new tag]         zephyr-v2.0.0          -> zephyr-v2.0.0
     * [new tag]         zephyr-v2.1.0          -> zephyr-v2.1.0
    05f0d85b6a93ff1471e2fd9133a940a50cc11666 refs/remotes/origin/master
    Checking out files: 100% (10837/10837), done.
    Already on 'master'
    Branch 'master' set up to track remote branch 'master' from 'origin'.
    cloning github.com/.../west at revision master
    [92m=== Cloning west repository from https://github.com/zephyrproject-rtos/west, rev. master into C:\Projects\PCDWorks\nrf9160_110\ncs\.west\west
    [0mInitialized empty Git repository in C:/Projects/PCDWorks/nrf9160_110/ncs/.west/west/.git/
    remote: Enumerating objects: 3276, done.
    Receiving objects: 100% (3276/3276), 935.02 KiB | 5.67 MiB/s, done.
    Resolving deltas: 100% (1945/1945), done.
    From https://github.com/zephyrproject-rtos/west
     * branch            master       -> FETCH_HEAD
     * [new branch]      master       -> origin/master
     * [new branch]      v0.6-branch  -> origin/v0.6-branch
     * [new tag]         v0.1.0       -> v0.1.0
     * [new tag]         v0.2.0       -> v0.2.0
     * [new tag]         v0.2.0rc1    -> v0.2.0rc1
     * [new tag]         v0.2.0rc2    -> v0.2.0rc2
     * [new tag]         v0.2.0rc3    -> v0.2.0rc3
     * [new tag]         v0.3.0       -> v0.3.0
     * [new tag]         v0.3.0rc1    -> v0.3.0rc1
     * [new tag]         v0.4.0       -> v0.4.0
     * [new tag]         v0.4.0rc1    -> v0.4.0rc1
     * [new tag]         v0.5.0       -> v0.5.0
     * [new tag]         v0.5.1       -> v0.5.1
     * [new tag]         v0.5.2       -> v0.5.2
     * [new tag]         v0.5.3       -> v0.5.3
     * [new tag]         v0.5.4       -> v0.5.4
     * [new tag]         v0.5.5       -> v0.5.5
     * [new tag]         v0.5.6       -> v0.5.6
     * [new tag]         v0.5.7       -> v0.5.7
     * [new tag]         v0.5.8       -> v0.5.8
     * [new tag]         v0.6.0       -> v0.6.0
     * [new tag]         v0.6.0rc1    -> v0.6.0rc1
     * [new tag]         v0.6.0rc2    -> v0.6.0rc2
     * [new tag]         v0.6.0rc3    -> v0.6.0rc3
     * [new tag]         v0.6.1       -> v0.6.1
     * [new tag]         v0.6.2       -> v0.6.2
     * [new tag]         v0.6.3       -> v0.6.3
     * [new tag]         v0.6.99.dev3 -> v0.6.99.dev3
     * [new tag]         v0.6.99.dev4 -> v0.6.99.dev4
    2101a7af38bedf2a3ea2c6cb1f70834b7151a9fb refs/remotes/origin/master
    Already on 'master'
    Branch 'master' set up to track remote branch 'master' from 'origin'.
    Error: no west.main in C:\Projects\PCDWorks\nrf9160_110\ncs\.west\west
    C:\Projects\PCDWorks\nrf9160_110\ncs>west update
    Error: no west.main in C:\Projects\PCDWorks\nrf9160_110\ncs\.west\west
    C:\Projects\PCDWorks\nrf9160_110\ncs>
  • Hi, 

    I had those error messages like you.

    In the beginning, it is the python version. It seems you already fixed that.  

    You could refer to this tutorial to update the NCS version. 

    The error while initiating a new ncs folder:

    hmichel said:
    Error: no west.main in C:\Projects\PCDWorks\nrf9160_110\ncs\.west\west

     I would suggest that create a new folder named ncs and Initialize west with the revision of the nRF Connect SDK that you want to check out. Please see Getting the nRF Connect SDK code

    pip3 install west
    west init -m https://github.com/NordicPlayground/fw-nrfconnect-nrf --mr v1.1.0
    west update

    -Amanda H.

Reply
  • Hi, 

    I had those error messages like you.

    In the beginning, it is the python version. It seems you already fixed that.  

    You could refer to this tutorial to update the NCS version. 

    The error while initiating a new ncs folder:

    hmichel said:
    Error: no west.main in C:\Projects\PCDWorks\nrf9160_110\ncs\.west\west

     I would suggest that create a new folder named ncs and Initialize west with the revision of the nRF Connect SDK that you want to check out. Please see Getting the nRF Connect SDK code

    pip3 install west
    west init -m https://github.com/NordicPlayground/fw-nrfconnect-nrf --mr v1.1.0
    west update

    -Amanda H.

Children
  • I am following the steps you have provided

    1) Create a new folder named ncs

    2) pip3 install west

    Microsoft Windows [Version 10.0.17763.973]
    (c) 2018 Microsoft Corporation. All rights reserved.
    C:\Projects\PCDWorks\nrf9160_110\ncs>pip3 install west
    Requirement already satisfied: west in c:\python37\lib\site-packages (0.5.8)
    Requirement already satisfied: colorama in c:\python37\lib\site-packages (from west) (0.4.1)
    Requirement already satisfied: PyYAML in c:\python37\lib\site-packages (from west) (4.2b4)
    Requirement already satisfied: pykwalify in c:\python37\lib\site-packages (from west) (1.7.0)
    Requirement already satisfied: configobj in c:\python37\lib\site-packages (from west) (5.0.6)
    Requirement already satisfied: python-dateutil>=2.4.2 in c:\python37\lib\site-packages (from pykwalify->west) (2.8.0)
    Requirement already satisfied: docopt>=0.6.2 in c:\python37\lib\site-packages (from pykwalify->west) (0.6.2)
    Requirement already satisfied: six in c:\python37\lib\site-packages (from configobj->west) (1.12.0)
    WARNING: You are using pip version 19.2.1, however version 20.0.1 is available.
    You should consider upgrading via the 'python -m pip install --upgrade pip' command.
    C:\Projects\PCDWorks\nrf9160_110\ncs>
    3) west init -m github.com/.../fw-nrfconnect-nrf --mr v1.1.0
    This gives errors that you see at the end
    C:\Projects\PCDWorks\nrf9160_110\ncs>west init -m github.com/.../fw-nrfconnect-nrf --mr v1.1.0
    Initializing in C:\Projects\PCDWorks\nrf9160_110\ncs
    [92m=== Cloning manifest repository from https://github.com/NordicPlayground/fw-nrfconnect-nrf, rev. v1.1.0 into C:\Projects\PCDWorks\nrf9160_110\ncs\.west\tmp
    [0mInitialized empty Git repository in C:/Projects/PCDWorks/nrf9160_110/ncs/.west/tmp/.git/
    remote: Enumerating objects: 35, done.
    remote: Counting objects: 100% (35/35), done.
    remote: Compressing objects: 100% (34/34), done.
    remote: Total 23083 (delta 9), reused 3 (delta 0), pack-reused 23048
    Receiving objects: 100% (23083/23083), 9.05 MiB | 4.85 MiB/s, done.
    Resolving deltas: 100% (15920/15920), done.
    From https://github.com/NordicPlayground/fw-nrfconnect-nrf
     * tag               v1.1.0      -> FETCH_HEAD
     * [new branch]      master      -> origin/master
     * [new branch]      v1.0-branch -> origin/v1.0-branch
     * [new branch]      v1.1-branch -> origin/v1.1-branch
     * [new tag]         v0.1.0      -> v0.1.0
     * [new tag]         v0.1.0-rc1  -> v0.1.0-rc1
     * [new tag]         v0.3.0      -> v0.3.0
     * [new tag]         v0.3.0-rc1  -> v0.3.0-rc1
     * [new tag]         v0.3.0-rc2  -> v0.3.0-rc2
     * [new tag]         v0.4.0      -> v0.4.0
     * [new tag]         v0.4.0-rc1  -> v0.4.0-rc1
     * [new tag]         v0.4.0-rc2  -> v0.4.0-rc2
     * [new tag]         v1.0.0      -> v1.0.0
     * [new tag]         v1.0.0-rc1  -> v1.0.0-rc1
     * [new tag]         v1.0.0-rc2  -> v1.0.0-rc2
     * [new tag]         v1.0.0-rc3  -> v1.0.0-rc3
     * [new tag]         v1.0.0-rc4  -> v1.0.0-rc4
     * [new tag]         v1.1.0      -> v1.1.0
     * [new tag]         v1.1.0-rc1  -> v1.1.0-rc1
     * [new tag]         v1.1.0-rc2  -> v1.1.0-rc2
     * [new tag]         v1.1.0-rc3  -> v1.1.0-rc3
    8c94096fa7cfca9970b531e30dcf7b116c78782b refs/tags/v1.1.0
    Checking out files: 100% (1238/1238), done.
    Note: checking out 'v1.1.0'.
    You are in 'detached HEAD' state. You can look around, make experimental
    changes and commit them, and you can discard any commits you make in this
    state without impacting any branches by performing another checkout.
    If you want to create a new branch to retain commits you create, you may
    do so (now or later) by using -b with the checkout command again. Example:
      git checkout -b <new-branch-name>
    HEAD is now at d3130d77 manifest: Use v1.1.0 release tags
    cloning github.com/.../west at revision master
    [92m=== Cloning west repository from https://github.com/zephyrproject-rtos/west, rev. master into C:\Projects\PCDWorks\nrf9160_110\ncs\.west\west
    [0mInitialized empty Git repository in C:/Projects/PCDWorks/nrf9160_110/ncs/.west/west/.git/
    remote: Enumerating objects: 3276, done.
    remote: Total 3276 (delta 0), reused 0 (delta 0), pack-reused 3276
    Receiving objects: 100% (3276/3276), 935.02 KiB | 4.12 MiB/s, done.
    Resolving deltas: 100% (1945/1945), done.
    From https://github.com/zephyrproject-rtos/west
     * branch            master       -> FETCH_HEAD
     * [new branch]      master       -> origin/master
     * [new branch]      v0.6-branch  -> origin/v0.6-branch
     * [new tag]         v0.1.0       -> v0.1.0
     * [new tag]         v0.2.0       -> v0.2.0
     * [new tag]         v0.2.0rc1    -> v0.2.0rc1
     * [new tag]         v0.2.0rc2    -> v0.2.0rc2
     * [new tag]         v0.2.0rc3    -> v0.2.0rc3
     * [new tag]         v0.3.0       -> v0.3.0
     * [new tag]         v0.3.0rc1    -> v0.3.0rc1
     * [new tag]         v0.4.0       -> v0.4.0
     * [new tag]         v0.4.0rc1    -> v0.4.0rc1
     * [new tag]         v0.5.0       -> v0.5.0
     * [new tag]         v0.5.1       -> v0.5.1
     * [new tag]         v0.5.2       -> v0.5.2
     * [new tag]         v0.5.3       -> v0.5.3
     * [new tag]         v0.5.4       -> v0.5.4
     * [new tag]         v0.5.5       -> v0.5.5
     * [new tag]         v0.5.6       -> v0.5.6
     * [new tag]         v0.5.7       -> v0.5.7
     * [new tag]         v0.5.8       -> v0.5.8
     * [new tag]         v0.6.0       -> v0.6.0
     * [new tag]         v0.6.0rc1    -> v0.6.0rc1
     * [new tag]         v0.6.0rc2    -> v0.6.0rc2
     * [new tag]         v0.6.0rc3    -> v0.6.0rc3
     * [new tag]         v0.6.1       -> v0.6.1
     * [new tag]         v0.6.2       -> v0.6.2
     * [new tag]         v0.6.3       -> v0.6.3
     * [new tag]         v0.6.99.dev3 -> v0.6.99.dev3
     * [new tag]         v0.6.99.dev4 -> v0.6.99.dev4
    2101a7af38bedf2a3ea2c6cb1f70834b7151a9fb refs/remotes/origin/master
    Already on 'master'
    Branch 'master' set up to track remote branch 'master' from 'origin'.
    Error: no west.main in C:\Projects\PCDWorks\nrf9160_110\ncs\.west\west
    C:\Projects\PCDWorks\nrf9160_110\ncs>
  • Also note the following link where I reported a similar error when trying to load in a project:

    devzone.nordicsemi.com/.../compile-error-for-nrf9160-lte_ble_gateway-project

    The only difference is that I updated the SDK from v1.0.0 to v1.1.0

    I was instructed to build at the command using the following command which did actually build:

    west build -b nrf9160_pca10090ns -d build -p

    but I get the following error when I use this command

    Microsoft Windows [Version 10.0.17763.973]
    (c) 2018 Microsoft Corporation. All rights reserved.
    C:\Projects\PCDWorks\nRF9160\ncs\nrf\samples\nrf9160\aws_fota>west build -b nrf9160_pca10090ns -d build -p
    validation.invalid
     --- All found errors ---
    ["Key 'repo-path' was not defined. Path: '/projects/0'", "Key 'repo-path' was not defined. Path: '/projects/3'", "Key 'repo-path' was not defined. Path: '/projects/4'", "Key 'repo-path' was not defined. Path: '/projects/5'", "Key 'repo-path' was not defined. Path: '/projects/6'", "Key 'repo-path' was not defined. Path: '/projects/12'"]
    Traceback (most recent call last):
      File "C:\Projects\PCDWorks\nRF9160\ncs\.west\west\src\west\manifest.py", line 153, in __init__
        schema_files=[_SCHEMA_PATH[key]]
      File "c:\python37\lib\site-packages\pykwalify\core.py", line 167, in validate
        error_msg=u'.\n - '.join(self.validation_errors)))
    pykwalify.errors.SchemaError: <SchemaError: error code 2: Schema validation failed:
     - Key 'repo-path' was not defined. Path: '/projects/0'.
     - Key 'repo-path' was not defined. Path: '/projects/3'.
     - Key 'repo-path' was not defined. Path: '/projects/4'.
     - Key 'repo-path' was not defined. Path: '/projects/5'.
     - Key 'repo-path' was not defined. Path: '/projects/6'.
     - Key 'repo-path' was not defined. Path: '/projects/12'.: Path: '/'>
    During handling of the above exception, another exception occurred:
    Traceback (most recent call last):
      File "c:\python37\lib\runpy.py", line 193, in _run_module_as_main
        "__main__", mod_spec)
      File "c:\python37\lib\runpy.py", line 85, in _run_code
        exec(code, run_globals)
      File "C:\Python37\Scripts\west.exe\__main__.py", line 9, in <module>
      File "c:\python37\lib\site-packages\west\_bootstrap\main.py", line 499, in main
        wrap(wrap_argv)
      File "c:\python37\lib\site-packages\west\_bootstrap\main.py", line 485, in wrap
        west.main.main(argv)
      File "C:\Projects\PCDWorks\nRF9160\ncs\.west\west\src\west\main.py", line 569, in main
        extensions = get_extension_commands()
      File "C:\Projects\PCDWorks\nRF9160\ncs\.west\west\src\west\main.py", line 531, in get_extension_commands
        extensions = extension_commands()
      File "C:\Projects\PCDWorks\nRF9160\ncs\.west\west\src\west\commands\command.py", line 181, in extension_commands
        manifest = Manifest.from_file()
      File "C:\Projects\PCDWorks\nRF9160\ncs\.west\west\src\west\manifest.py", line 91, in from_file
        return Manifest(source_file=source_file, sections=sections)
      File "C:\Projects\PCDWorks\nRF9160\ncs\.west\west\src\west\manifest.py", line 156, in __init__
        self._malformed(e, key)
      File "C:\Projects\PCDWorks\nRF9160\ncs\.west\west\src\west\manifest.py", line 226, in _malformed
        complaint))
    west.manifest.MalformedManifest: Malformed manifest file C:\Projects\PCDWorks\nRF9160\ncs\nrf\west.yml (schema: C:\Projects\PCDWorks\nRF9160\ncs\.west\west\src\west\manifest-schema.yml):
    <SchemaError: error code 2: Schema validation failed:
     - Key 'repo-path' was not defined. Path: '/projects/0'.
     - Key 'repo-path' was not defined. Path: '/projects/3'.
     - Key 'repo-path' was not defined. Path: '/projects/4'.
     - Key 'repo-path' was not defined. Path: '/projects/5'.
     - Key 'repo-path' was not defined. Path: '/projects/6'.
     - Key 'repo-path' was not defined. Path: '/projects/12'.: Path: '/'>
    C:\Projects\PCDWorks\nRF9160\ncs\nrf\samples\nrf9160\aws_fota>

  • Hi,

    You have an outdated west tool.

    Please upgrade with the command: 

    pip install west -U

    Then to check the version:

    west --version

    -Amanda H.

  • Hi Amanda,

    That would make sense. Here is what I just tried

    1) Run west --version (first before I update it)

    2) update west

    I get an error about Python version 2.7. However, you will see west is claiming to use python 3.7

    Microsoft Windows [Version 10.0.17763.973]
    (c) 2018 Microsoft Corporation. All rights reserved.
    C:\Projects\PCDWorks\nRF9160\ncs>west --version
    West bootstrapper version: v0.5.8 (c:\python37\lib\site-packages\west\_bootstrap)
    West repository version: v0.5.8 (C:\Projects\PCDWorks\nRF9160\ncs\.west\west)
    C:\Projects\PCDWorks\nRF9160\ncs>pip install west -U
    DEPRECATION: Python 2.7 reached the end of its life on January 1st, 2020. Please upgrade your Python as Python 2.7 is no longer maintained. A future version of pip will drop support for Python 2.7. More details about Python 2 support in pip, can be found at pip.pypa.io/.../
    ERROR: Could not find a version that satisfies the requirement west (from versions: none)
    ERROR: No matching distribution found for west
    C:\Projects\PCDWorks\nRF9160\ncs>
  • Which version of Python are you using?

    You should install Python 3.7. 

    Please check by:

    >python -V
    Python 3.7.2

    -Amanda H

Related