$ leaf getsrc legato Run sync steps for fx30-cat1-legato-src_19.11.5
Ready to sync in /home/suneel/myWorkspace/legato-src directory: repo init -u ssh://git@github.com/legatoproject/manifest -m legato/releases/19.11.5/legato.xml -g default,proprietary ; repo sync
Proceed? (Y/n) Y Checking credentials…
File “/home/suneel/myWorkspace/legato-src/.repo/repo/main.py”, line 79*
file=sys.stderr)*
SyntaxError: invalid syntax ERROR:
Something went wrong with repo command* HINTS:
Please check connection and credentials*
Then try again leaf getsrc legato*
I found that the python2.7 is the problem when I changed to python3 I got the following error :
$ leaf getsrc legato Run sync steps for fx30-cat1-legato-src_19.11.5
Ready to sync in /home/suneel/myWorkspace/legato-src directory: repo init -u ssh://git@github.com/legatoproject/manifest -m legato/releases/19.11.5/legato.xml -g default,proprietary ; repo sync
Proceed? (Y/n) Y Checking credentials… warning: Python 3 support is currently experimental. YMMV. Please use Python 2.6 - 2.7 instead. Traceback (most recent call last):
File “/home/suneel/myWorkspace/legato-src/.repo/repo/main.py”, line 38, in *
from color import SetDefaultColoring*
File “/home/suneel/myWorkspace/legato-src/.repo/repo/color.py”, line 18, in *
import pager*
File “/home/suneel/myWorkspace/legato-src/.repo/repo/pager.py”, line 63*
The solution is to use python3 with repo. Which means I will have to change a lot of scripts in legeto framework which I dont want to do as it demands maintenance.
What is the official statement on this issue ? I see with leaf it should just work. Is this a known issue and is someone working on it ?
By Legato framework I mean the legato development environment which is basically leaf. Leaf internally uses repo. It creates a dir .repo in legaro-src dir when you enter leaf getsrc legato and the solution above is to change this .repo to point to python3. This is a hack which I want to avoid . As there is no where in the documentation it is mentioned that python3 is needed. Infact leaf has dependencies on python2 not python3.
Anyways I tried the above solution as well. But I am getting other errors:
Run sync steps for fx30-cat1-legato-src_19.11.5
Ready to sync in /home/suneel/myWorkspace/legato-src directory:
repo init -u ssh://git@github.com/legatoproject/manifest -m legato/releases/19.11.5/legato.xml -g default,proprietary ; repo sync
Proceed? (Y/n)
Y
Checking credentials…
Traceback (most recent call last):
File “/home/suneel/myWorkspace/legato-src/.repo/repo/main.py”, line 38, in
from color import SetDefaultColoring
File “/home/suneel/myWorkspace/legato-src/.repo/repo/color.py”, line 18, in
import pager
File “/home/suneel/myWorkspace/legato-src/.repo/repo/pager.py”, line 63
sys.exit(f’fatal: cannot start pager “{pager}”')
^
SyntaxError: invalid syntax
ERROR:
Something went wrong with repo command
HINTS:
Please check connection and credentials
Then try again leaf getsrc legato