Commit 16cd7992 authored by Vijayenthiran Subramaniam's avatar Vijayenthiran Subramaniam
Browse files

infra/common: additional fixes for repo command failure

Add troubleshooting steps fix `repo` command failure due to old python3
version (below 3.6).
Signed-off-by: Vijayenthiran Subramaniam's avatarVijayenthiran Subramaniam <>
Change-Id: I8d4f66841b22420bafccc8c6177c60efeecdbd8e
parent a02542b2
......@@ -37,6 +37,42 @@ and invoke the repo command from `/usr/bin/` with `python3` as listed below.
python3 /usr/bin/repo init -u -m pinned-rdv1.xml -b refs/tags/RD-INFRA-2021.02.24
python3 /usr/bin/repo sync -c -j $(nproc) --fetch-submodules --force-sync
On systems with python version less than 3.6, there could be further failures as
listed below.
Traceback (most recent call last):
File "<path-to-workspace>/.repo/repo/", line 42, in <module>
from git_config import RepoConfig
File "<path-to-workspace>/.repo/repo/", line 774
self._Set(f'superproject.{key}', value)
SyntaxError: invalid syntax
If `python3` version cannot be updated using the package manager, use the
following commands to build and install `python3.7.2` from the source.
sudo apt update
sudo apt install build-essential zlib1g-dev libncurses5-dev libgdbm-dev libnss3-dev libssl-dev libreadline-dev libffi-dev wget libsqlite3-dev python-openssl bzip2
cd /tmp
tar -xf Python-3.7.2.tar.xz
cd Python-3.7.2
make -j
sudo make altinstall
This will install install `python3.7` in `/usr/local/bin/` path and the `repo`
command can be invoked using this version.
/usr/local/bin/python3.7 /usr/bin/repo init -u -m pinned-rdv1.xml -b refs/tags/RD-INFRA-2021.02.24
/usr/local/bin/python3.7 /usr/bin/repo sync -c -j $(nproc) --fetch-submodules --force-sync
Builds do not progress to completion
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment