dev-vcs/repo 2.10 was released, https://groups.google.com/g/repo-discuss/c/rpSfMCl83Sk. Starting from the release, repo does not support python2 any more. It means, its "stable" branch in the git repo, https://gerrit.googlesource.com/git-repo/+/refs/heads/stable, is not compatible with repo used by end-users, when the repo's version is 2.9 or older. That's why end users could end up seeing such issues, immediately after running "repo init". ===== Traceback (most recent call last): File "/mnt/host/source/.repo/repo/main.py", line 56, in <module> from subcmds.version import Version File "/mnt/host/source/.repo/repo/subcmds/__init__.py", line 38, in <module> ['%s' % name]) File "/mnt/host/source/.repo/repo/subcmds/upload.py", line 27, in <module> from hooks import RepoHook File "/mnt/host/source/.repo/repo/hooks.py", line 472 file=sys.stderr) ^ SyntaxError: invalid syntax ===== So we should update dev-vcs/repo to 2.10 in Gentoo.
please see the comment in the repo ebuild: # NB: The $PV tracks the *repo launcher version*, not the last signed release # of the repo project. The launcher only gets a new update when changes are # made in it. there are no differences between repo-2.8 & repo-2.10. if you look at the releases, repo-2.8 is the latest launcher: https://storage.googleapis.com/git-repo-downloads/repo-2.8 https://storage.googleapis.com/git-repo-downloads/repo-2.9 https://storage.googleapis.com/git-repo-downloads/repo-2.10