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

west init fails due to failed mkdir

PS C:\ncs> west init
Initializing in C:\ncs
=== Cloning manifest repository from https://github.com/zephyrproject-rtos/zephyr, rev. master into C:\ncs\.west\tmp
fatal: cannot mkdir C:\ncs\.west\tmp: No such file or directory
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 501, in main
    init(wrap_argv[1:])
  File "c:\python37\lib\site-packages\west\_bootstrap\main.py", line 257, in init
    bootstrap(args)
  File "c:\python37\lib\site-packages\west\_bootstrap\main.py", line 323, in bootstrap
    exist_ok=True)
  File "c:\python37\lib\site-packages\west\_bootstrap\main.py", line 126, in clone
    subprocess.check_call(('git', 'init', dest))
  File "c:\python37\lib\subprocess.py", line 347, in check_call
    raise CalledProcessError(retcode, cmd)
subprocess.CalledProcessError: Command '('git', 'init', 'C:\\ncs\\.west\\tmp')' returned non-zero exit status 128.
PS C:\ncs>

I am running Powershell as administrator and have ensured that all user types have full control of this folder.

Related