I tried to run a command Zephyr command, and it sent me a message saying the terminal “west update” failed to launch, followed up with terminal will be reused by tasks. Previously I tried to run init repo command through visual studio and opened it in a destination folder,however the problem still persists. Any help would be greatly appreciated.

Thanks.

    Hi GoharKhan

    Make sure you follow the instructions here to a tee.

    west update only work if you’ve run the Zephyr Tools: Setup command and then the Zephyr Tools: Init Repo to initialize the repository you’re working with. Once initialized you shouldn’t have to change or open a new directory.

    I did that and it showed me this following code…
    Executing task: west init -m https://github.com/circuitdojo/nrf9160-feather-examples-and-drivers.git –mr west.yml

    Traceback (most recent call last):
    File “C:\Users\gohar\AppData\Local\Programs\Python\Python39\lib\runpy.py”, line 197, in _run_module_as_main
    return _run_code(code, main_globals, None,
    File “C:\Users\gohar\AppData\Local\Programs\Python\Python39\lib\runpy.py”, line 87, in run_code
    exec(code, run_globals)
    File “C:\Users\gohar.zephyrtools\env\Scripts\west.exe__main__.py”, line 7, in <module>
    File “C:\Users\gohar.zephyrtools\env\lib\site-packages\west\app\main.py”, line 786, in main
    app.run(argv or sys.argv[1:])
    File “C:\Users\gohar.zephyrtools\env\lib\site-packages\west\app\main.py”, line 101, in run
    self.load_manifest()
    File “C:\Users\gohar.zephyrtools\env\lib\site-packages\west\app\main.py”, line 119, in load_manifest
    self.manifest = Manifest.from_topdir(topdir=self.topdir,
    File “C:\Users\gohar.zephyrtools\env\lib\site-packages\west\manifest.py”, line 1105, in from_topdir
    return Manifest(topdir=topdir, config=config,
    File “C:\Users\gohar.zephyrtools\env\lib\site-packages\west\manifest.py”, line 1373, in init
    self.
    ctx = self._top_level_init(source_data,
    File “C:\Users\gohar.zephyrtools\env\lib\site-packages\west\manifest.py”, line 1715, in top_level_init
    manifest_path_option = get_option(‘manifest.path’)
    File “C:\Users\gohar.zephyrtools\env\lib\site-packages\west\manifest.py”, line 1712, in get_option
    return config.get(option, default=default,
    File “C:\Users\gohar.zephyrtools\env\lib\site-packages\west\configuration.py”, line 169, in get
    return self.
    get(lambda cf: cf.get(option), default, configfile)
    File “C:\Users\gohar.zephyrtools\env\lib\site-packages\west\configuration.py”, line 208, in get
    for cf in self.
    whence(configfile):
    File “C:\Users\gohar.zephyrtools\env\lib\site-packages\west\configuration.py”, line 229, in _whence
    raise RuntimeError(‘local configuration file not found’)
    RuntimeError: local configuration file not found

    Traceback (most recent call last):
    File “C:\Users\gohar\AppData\Local\Programs\Python\Python39\lib\runpy.py”, line 197, in _run_module_as_main
    return _run_code(code, main_globals, None,
    File “C:\Users\gohar\AppData\Local\Programs\Python\Python39\lib\runpy.py”, line 87, in run_code
    exec(code, run_globals)
    File “C:\Users\gohar.zephyrtools\env\Scripts\west.exe__main__.py”, line 7, in <module>
    File “C:\Users\gohar.zephyrtools\env\lib\site-packages\west\app\main.py”, line 786, in main
    app.run(argv or sys.argv[1:])
    File “C:\Users\gohar.zephyrtools\env\lib\site-packages\west\app\main.py”, line 101, in run
    self.load_manifest()
    File “C:\Users\gohar.zephyrtools\env\lib\site-packages\west\app\main.py”, line 119, in load_manifest
    self.manifest = Manifest.from_topdir(topdir=self.topdir,
    File “C:\Users\gohar.zephyrtools\env\lib\site-packages\west\manifest.py”, line 1105, in from_topdir
    return Manifest(topdir=topdir, config=config,
    File “C:\Users\gohar.zephyrtools\env\lib\site-packages\west\manifest.py”, line 1373, in init
    self.
    ctx = self._top_level_init(source_data,
    File “C:\Users\gohar.zephyrtools\env\lib\site-packages\west\manifest.py”, line 1715, in top_level_init
    manifest_path_option = get_option(‘manifest.path’)
    File “C:\Users\gohar.zephyrtools\env\lib\site-packages\west\manifest.py”, line 1712, in get_option
    return config.get(option, default=default,
    File “C:\Users\gohar.zephyrtools\env\lib\site-packages\west\configuration.py”, line 169, in get
    return self.
    get(lambda cf: cf.get(option), default, configfile)
    File “C:\Users\gohar.zephyrtools\env\lib\site-packages\west\configuration.py”, line 208, in get
    for cf in self.
    whence(configfile):
    File “C:\Users\gohar.zephyrtools\env\lib\site-packages\west\configuration.py”, line 229, in _whence
    raise RuntimeError(‘local configuration file not found’)
    RuntimeError: local configuration file not found

    • The terminal process “C:\WINDOWS\System32\WindowsPowerShell\v1.0\powershell.exe -Command west update” terminated with exit code: 1.
    • Terminal will be reused by tasks, press any key to close it.

    Is this possibly because I may have initialized it to multiple empty folders, because I did put in the setup command, however the error
    Task Zephyr Tools: Init Repo exited with code 1

    I’m also seeing the same issue. However, tracing the error to the top it looks like the “west.yml” branch isn’t in the remote repository:

    ` * Executing task: west init -m https://github.com/circuitdojo/nrf9160-feather-examples-and-drivers.git –mr west.yml

    === Initializing in C:\Users\mbilloo\Documents\nRF Feather
    — Cloning manifest repository from https://github.com/circuitdojo/nrf9160-feather-examples-and-drivers.git, rev. west.yml
    Cloning into ‘C:\Users\mbilloo\Documents\nRF Feather.west\manifest-tmp’…
    fatal: Remote branch west.yml not found in upstream origin
    FATAL ERROR: command exited with status 128: git clone –branch west.yml https://github.com/circuitdojo/nrf9160-feather-examples-and-drivers.git ‘C:\Users\mbilloo\Documents\nRF Feather.west\manifest-tmp’

    Traceback (most recent call last):
    File “C:\Users\mbilloo\AppData\Local\Programs\Python\Python39\lib\runpy.py”, line 197, in _run_module_as_main
    return _run_code(code, main_globals, None,
    File “C:\Users\mbilloo\AppData\Local\Programs\Python\Python39\lib\runpy.py”, line 87, in run_code
    exec(code, run_globals)
    File “C:\Users\mbilloo.zephyrtools\env\Scripts\west.exe__main__.py”, line 7, in <module>
    File “C:\Users\mbilloo.zephyrtools\env\lib\site-packages\west\app\main.py”, line 786, in main
    app.run(argv or sys.argv[1:])
    File “C:\Users\mbilloo.zephyrtools\env\lib\site-packages\west\app\main.py”, line 101, in run
    self.load_manifest()
    File “C:\Users\mbilloo.zephyrtools\env\lib\site-packages\west\app\main.py”, line 119, in load_manifest
    self.manifest = Manifest.from_topdir(topdir=self.topdir,
    File “C:\Users\mbilloo.zephyrtools\env\lib\site-packages\west\manifest.py”, line 1105, in from_topdir
    return Manifest(topdir=topdir, config=config,
    File “C:\Users\mbilloo.zephyrtools\env\lib\site-packages\west\manifest.py”, line 1373, in init
    self.
    ctx = self._top_level_init(source_data,
    File “C:\Users\mbilloo.zephyrtools\env\lib\site-packages\west\manifest.py”, line 1715, in top_level_init
    manifest_path_option = get_option(‘manifest.path’)
    File “C:\Users\mbilloo.zephyrtools\env\lib\site-packages\west\manifest.py”, line 1712, in get_option
    return config.get(option, default=default,
    File “C:\Users\mbilloo.zephyrtools\env\lib\site-packages\west\configuration.py”, line 169, in get
    return self.
    get(lambda cf: cf.get(option), default, configfile)
    File “C:\Users\mbilloo.zephyrtools\env\lib\site-packages\west\configuration.py”, line 208, in get
    for cf in self.
    whence(configfile):
    File “C:\Users\mbilloo.zephyrtools\env\lib\site-packages\west\configuration.py”, line 229, in _whence
    raise RuntimeError(‘local configuration file not found’)
    RuntimeError: local configuration file not found

    • The terminal process “C:\Windows\System32\WindowsPowerShell\v1.0\powershell.exe -Command west update” terminated with exit code: 1.
    • Terminal will be reused by tasks, press any key to close it. `

    This was all done in VS Code using the steps outlined in your documentation.

    Nit: Looks like git and python MUST be installed before installing the extension (or nRF’s Kconfig step fails)

    Looks like the issue is that the “main” branch must be given after the step to enter the repo URL (remember, Github doesn’t have a default branch of master anymore, which I assume west uses).

      Hi @mabembedded

      west uses what ever the default is defined in Github. The default it set to the v1.7.x branch at the moment. Have you tried switching your shell? Powershell seems to cause issues for folks.

      mabembedded @GoharKhan

      Sorry for the delay on this. I found the problem and I addressed it in version 0.1.27 of the plugin. Turns out one of the arguments for initializing using west was incorrect. It should be available for download shortly.

      Again, sorry I didn’t get to this sooner!

      Terms and Conditions | Privacy Policy