FWIW I have hit similar problems on at least Ubuntu 20.04 most recently.

To avoid the problem I follow the instruction on what I think is the
official repo release page:

https://android.googlesource.com/tools/repo

Specifically:

$ mkdir -p ~/.bin
$ PATH="${HOME}/.bin:${PATH}"
$ curl https://storage.googleapis.com/git-repo-downloads/repo > ~/.bin/repo
$ chmod a+rx ~/.bin/repo

The apt installed version does not work (for me) on at least Ubuntu 20.04.

Cheers,

Ben

On Mon, 1 Feb 2021 at 10:16, Millar, Curtis (Data61, Kensington NSW) <
[email protected]> wrote:

> On Fri, 2021-01-29 at 15:38 +0300, abdi mahmud haji wrote:
> > hi  sorry for bothering you but i get some problem with sel4 tutorial
> > when i trying to get starting with
> > "repo init -u https://github.com/SEL4PROJ/sel4-tutorials-manifest";
> > i got down bellow error and how can i fix it pls
> >
> > Traceback (most recent call last):
> >   File "/home/sel4/sel4-tutorials-manifest/.repo/repo/main.py", line
> > 56, in
> > <module>
> >     from subcmds.version import Version
> >   File "/home/sel4/sel4-tutorials-
> > manifest/.repo/repo/subcmds/__init__.py",
> > line s 38, in <module>
> >     ['%s' % name])
> >   File "/home/sel4/sel4-tutorials-
> > manifest/.repo/repo/subcmds/upload.py",
> > line 27, in <module>
> >     from hooks import RepoHook
> >   File "/home/sel4/sel4-tutorials-manifest/.repo/repo/hooks.py", line
> > 472
> >     file=sys.stderr)
> >         ^
> > SyntaxError: invalid syntax
>
> This appears to be an issue with repo. Make sure you have the
> latestversion of the repo command line tool installed and python 3.7 or
> later.
>
> This may be a problem if the `python` application in your PATH referrs
> to Python 2 rather than Python 3.
>
> Cheers,
> Curtis
> _______________________________________________
> Devel mailing list -- [email protected]
> To unsubscribe send an email to [email protected]
>
_______________________________________________
Devel mailing list -- [email protected]
To unsubscribe send an email to [email protected]

Reply via email to