Toolchain Not Installed correctly by Toolchain Manager (west not found)

I cannot get my nRF Connect SDK to install correctly such that VS Code nRF Connect extension works. On the Quick Setup, it complains that the nRF Connect Toolchain is invalid because "west is required but not found".

If I open a terminal and type 'west' - it runs.

Steps I took:

  1. Installed nRF Command-Line Tools v10.16.0
  2. Installed nRF Connect for Desktop v3.11.
  3. Installed Toolchain Manger v1.1.1 from nRF Connect for Desktop
  4. Installed nRF Connect SDK v2.0.0 from Toolchain Manager
  5. Clicked Open in VS Code
    1. Installed VS Code extensions
  6. Go to Welcome nRF Connect screen, Quick Setup:
    1. nRF Connect SDK: 2.0.0
    2. nRF Connect Toolchain: 2.0.0
  7. Red box: "Invalid toolchain installation" "west is required but not found. Make sure the 'west' executable is in your PATH"

(When I did all this on another computer, everything worked fine. Using that other computer for development is not an option for me though.)

Looking at the Toolchain Manager log, it looks like an issue with west's manifest file. Perhaps this is a Python issue on my machine, however, if that's the case I don't know how to fix it. I have uninstalled/re-installed Python along with all the Nordic software, SDKs. After all that, the same error occurs.

2022-07-06T16:44:57.155Z INFO Start to install toolchain v2.0.0
2022-07-06T16:44:57.156Z INFO Installing ncs-toolchain-windows-x86_64-v2.0.0-20220602T091202-9389261.tar.gz at C:\dev\sdk\nordic\toolchains\v2.0.0
2022-07-06T16:44:57.156Z DEBUG Install with toolchain version 20220602T091202
2022-07-06T16:44:57.157Z DEBUG Install with sha512 42d1ea1d332368798e13f475b2c72be92798bb638999e63bc7373852f9d5a3d8163fd2f8c0c00fdd6a703ab8a3eee287aef1c7dac883fdccfc886d58faf954a5
2022-07-06T16:50:29.804Z INFO Cloning nRF Connect SDK v2.0.0
2022-07-06T16:50:30.425Z DEBUG Traceback (most recent call last):
  File "runpy.py", line 193, in _run_module_as_main

2022-07-06T16:50:30.426Z DEBUG   File "runpy.py", line 86, in _run_code
  File "C:\dev\sdk\nordic\toolchains\v2.0.0\opt\bin\Scripts\west.exe\__main__.py", line 7, in <module>

2022-07-06T16:50:30.426Z DEBUG   File "C:\dev\sdk\nordic\toolchains\v2.0.0\opt\bin\Lib\site-packages\west\app\main.py", line 786, in main

2022-07-06T16:50:30.426Z DEBUG     app.run(argv or sys.argv[1:])
  File "C:\dev\sdk\nordic\toolchains\v2.0.0\opt\bin\Lib\site-packages\west\app\main.py", line 101, in run

2022-07-06T16:50:30.426Z DEBUG     self.load_manifest()
  File "C:\dev\sdk\nordic\toolchains\v2.0.0\opt\bin\Lib\site-packages\west\app\main.py", line 119, in load_manifest

2022-07-06T16:50:30.427Z DEBUG     self.manifest = Manifest.from_topdir(topdir=self.topdir,
  File "C:\dev\sdk\nordic\toolchains\v2.0.0\opt\bin\Lib\site-packages\west\manifest.py", line 1105, in from_topdir

2022-07-06T16:50:30.427Z DEBUG     return Manifest(topdir=topdir, config=config,
  File "C:\dev\sdk\nordic\toolchains\v2.0.0\opt\bin\Lib\site-packages\west\manifest.py", line 1373, in __init__

2022-07-06T16:50:30.427Z DEBUG     self._ctx = self._top_level_init(source_data,
  File "C:\dev\sdk\nordic\toolchains\v2.0.0\opt\bin\Lib\site-packages\west\manifest.py", line 1715, in _top_level_init

2022-07-06T16:50:30.428Z DEBUG     manifest_path_option = get_option('manifest.path')
  File "C:\dev\sdk\nordic\toolchains\v2.0.0\opt\bin\Lib\site-packages\west\manifest.py", line 1712, in get_option

2022-07-06T16:50:30.428Z DEBUG     return config.get(option, default=default,
  File "C:\dev\sdk\nordic\toolchains\v2.0.0\opt\bin\Lib\site-packages\west\configuration.py", line 169, in get

2022-07-06T16:50:30.428Z DEBUG     return self._get(lambda cf: cf.get(option), default, configfile)
  File "C:\dev\sdk\nordic\toolchains\v2.0.0\opt\bin\Lib\site-packages\west\configuration.py", line 208, in _get

2022-07-06T16:50:30.429Z DEBUG     for cf in self._whence(configfile):
  File "C:\dev\sdk\nordic\toolchains\v2.0.0\opt\bin\Lib\site-packages\west\configuration.py", line 229, in _whence

2022-07-06T16:50:30.429Z DEBUG     raise RuntimeError('local configuration file not found')
RuntimeError: local configuration file not found

2022-07-06T16:50:30.914Z DEBUG Traceback (most recent call last):
  File "runpy.py", line 193, in _run_module_as_main

2022-07-06T16:50:30.914Z DEBUG   File "runpy.py", line 86, in _run_code

2022-07-06T16:50:30.914Z DEBUG   File "C:\dev\sdk\nordic\toolchains\v2.0.0\opt\bin\Scripts\west.exe\__main__.py", line 7, in <module>

2022-07-06T16:50:30.915Z DEBUG   File "C:\dev\sdk\nordic\toolchains\v2.0.0\opt\bin\Lib\site-packages\west\app\main.py", line 786, in main

2022-07-06T16:50:30.915Z DEBUG     app.run(argv or sys.argv[1:])
  File "C:\dev\sdk\nordic\toolchains\v2.0.0\opt\bin\Lib\site-packages\west\app\main.py", line 101, in run
    
2022-07-06T16:50:30.915Z DEBUG self.load_manifest()
  File "C:\dev\sdk\nordic\toolchains\v2.0.0\opt\bin\Lib\site-packages\west\app\main.py", line 119, in load_manifest
    self.manifest = Manifest.from_topdir(topdir=self.topdir,
  File "C:\dev\sdk\nordic\toolchains\v2.0.0\opt\bin\Lib\site-packages\west\manifest.py", line 1105, in from_topdir

2022-07-06T16:50:30.916Z DEBUG     return Manifest(topdir=topdir, config=config,
  File "C:\dev\sdk\nordic\toolchains\v2.0.0\opt\bin\Lib\site-packages\west\manifest.py", line 1373, in __init__

2022-07-06T16:50:30.916Z DEBUG     self._ctx = self._top_level_init(source_data,
  File "C:\dev\sdk\nordic\toolchains\v2.0.0\opt\bin\Lib\site-packages\west\manifest.py", line 1715, in _top_level_init

2022-07-06T16:50:30.917Z DEBUG     manifest_path_option = get_option('manifest.path')
  File "C:\dev\sdk\nordic\toolchains\v2.0.0\opt\bin\Lib\site-packages\west\manifest.py", line 1712, in get_option

2022-07-06T16:50:30.918Z DEBUG     return config.get(option, default=default,
  File "C:\dev\sdk\nordic\toolchains\v2.0.0\opt\bin\Lib\site-packages\west\configuration.py", line 169, in get
    return self._get(lambda cf: cf.get(option), default, configfile)
  File "C:\dev\sdk\nordic\toolchains\v2.0.0\opt\bin\Lib\site-packages\west\configuration.py", line 208, in _get
    for cf in self._whence(configfile):
  File "C:\dev\sdk\nordic\toolchains\v2.0.0\opt\bin\Lib\site-packages\west\configuration.py", line 229, in _whence
    raise RuntimeError('local configuration file not found')
RuntimeError: local configuration file not found

2022-07-06T16:50:30.956Z INFO Finished cloning version v2.0.0 of the nRF Connect SDK after approximately 0 minute(s)

Parents Reply Children
  • May be related to the above: When going through Quick Setup to create a new project using the above nrfConnect extension, had a problem with the west manifest file - no tabs in the file leading west to report this message: 

    [west]: FATAL ERROR: Malformed manifest file: C:\src\Projects\one\one\full_modem_update\west.yml
    [west]:   Schema file: c:\ncs\toolchains\v2.0.0\opt\bin\Lib\site-packages\west\manifest-schema.yml
    [west]:   Hint: manifest:
    Was able to work around this by correctly fixing the YAML file and then running west update from the wsl command line.
Related