Fatal Error during setup of Zephyr #67654
-
Hi All, I am following the page to setup Zephyr https://docs.zephyrproject.org/latest/develop/getting_started/index.html I am facing following error (.venv) C:\Users\m3n1iz>west init zephyrproject C:\Users\m3n1iz.west Here is the list of commands that are executed step by step. C:\Windows\System32>choco install cmake --installargs 'ADD_CMAKE_TO_PATH=System' Chocolatey installed 0/1 packages. Warnings:
C:\Windows\System32>choco install ninja gperf python311 git dtc-msys2 wget 7zip Chocolatey installed 0/7 packages. Warnings:
C:\Windows\System32>cd %HOMEPATH% C:\Users\m3n1iz>python -m venv zephyrproject.venv C:\Users\m3n1iz>zephyrproject.venv\Scripts\activate.bat (.venv) C:\Users\m3n1iz>pip install west (.venv) C:\Users\m3n1iz>west init zephyrproject C:\Users\m3n1iz.west (.venv) C:\Users\m3n1iz>` |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 3 replies
-
Removed .west folder present in "C:\Users\m3n1iz" and executed the following command again. But now got the following error. (.venv) C:\Users\m3n1iz>west init zephyrproject |
Beta Was this translation helpful? Give feedback.
-
Again removed .west folder present in "C:\Users\m3n1iz\zephyrproject" and executed the following command again. west init zephyrproject will post the result once completed. |
Beta Was this translation helpful? Give feedback.
Fixed the problem.
Updated the project.py file located at "C:\Users\m3n1iz\zephyrproject.venv\Lib\site-packages\west\app" as
self.check_call(['git', 'clone', '--depth=1'] + branch_opt +
[manifest_url, os.fspath(tempdir)])
By setting the depth=1 in git clone command, west init zephyrproject is successfully completed.
=== Initializing in C:\Users\m3n1iz\zephyrproject
--- Cloning manifest repository from https://github.com/zephyrproject-rtos/zephyr
Cloning into 'C:\Users\m3n1iz\zephyrproject.west\manifest-tmp'...
remote: Enumerating objects: 36447, done.
remote: Counting objects: 100% (36447/36447), done.
remote: Compressing objects: 100% (28225/28225), done.
remote: Total 36447 (delta 8453)…