Hi,
I am building android-13 for imx8 target on ubuntu 20.04.6 and I am not able to initialize the repo for the same I am find below error after executing the source command
umi@zumi:~/A13$ source ~/imx-automotive-13.0.0_1.1.0/imx_android_setup.sh
Start fetching the source for android build
Setting REL_PACKAGE_DIR to /home/zumi/imx-automotive-13.0.0_1.1.0
File "/home/zumi/bin/repo", line 51
def print(self, *args, **kwargs):
^
SyntaxError: invalid syntax
---------------------------------------------------
-----Repo Init failure
---------------------------------------------------
It is very simple issue, because of the python version is not the repo(this version) wants.
Please install python 3 and try again.
And please set the python 3 as 1st priority after python 3 installation, if there are several versions of python.
Hello @saurabhprajapati !
You can check this post to solve the issue:
repo issue "def print(self, *args, **kwargs):"
Best regards!
By checking the error, please try to clean the current repo and then run again: curl https://storage.googleapis.com/git-repo-downloads/repo > ~/bin/repo
And not leaving the settings for the execute permission and PATH env variable as documented.
Best regards
Harvey