# Leaf getsrc swi-linux : repo error

**URL:** <https://forum.legato.io/t/leaf-getsrc-swi-linux-repo-error/6608>\
**Category:** Legato Linux distribution (Yocto project)\
**Created:** [October 19, 2023, 2:54pm UTC](https://forum.legato.io/t/leaf-getsrc-swi-linux-repo-error/6608 "2023-10-19T14:54:02Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![xgaillard](https://avatars.discourse-cdn.com/v4/letter/x/779978/32.png) [@xgaillard](https://forum.legato.io/u/xgaillard)\
**Post date:** [October 19, 2023, 2:54pm UTC](https://forum.legato.io/t/leaf-getsrc-swi-linux-repo-error/6608/1 "2023-10-19T14:54:02Z")

</div>

Trying to load linux source for yocto build, getting an error with repo :

**Ready to sync in /home/xavier/workspaceLegato/swi-linux-src directory:**  
**repo init -u ssh://git@github.com/legatoproject/manifest -m mdm9x28/tags/SWI9X07Y\_02.37.07.00/linux.xml -g default,-cache,proprietary ; repo sync**

**Proceed? (Y/n)**  
**Y**  
**Checking credentials…**  
\*\* File “/home/xavier/workspaceLegato/swi-linux-src/.repo/repo/main.py”, line 94\*\*  
\*\* )\*\*  
\*\* ^\*\*  
**SyntaxError: invalid syntax**  
**ERROR:**  
\*\* Something went wrong with `repo` command\*\*  
**HINTS:**  
\*\* Please check connection and credentials\*\*  
\*\* Then try again leaf getsrc swi-linux\*\*  
**cp: impossible d’évaluer ‘/home/xavier/workspaceLegato/swi-linux-src/.repo/manifests/legato/releases/19.11.5.xml’: Aucun fichier ou dossier de ce type**  
**Error while sync operation on fx30-cat1-li**

Any Idea ?

---

<div class="post-metadata">

**Author:** ![jyijyi](https://sea1.discourse-cdn.com/flex019/user_avatar/forum.legato.io/jyijyi/32/822_2.png) [@jyijyi](https://forum.legato.io/u/jyijyi)\
**Post date:** [October 19, 2023, 3:02pm UTC](https://forum.legato.io/t/leaf-getsrc-swi-linux-repo-error/6608/2 "2023-10-19T15:02:34Z")

</div>

see if this helps:

> <https://stackoverflow.com/questions/65193998/syntaxerror-invalid-syntax-to-repo-init-in-the-aosp-code>
