imx-android-13 repo error

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

imx-android-13 repo error

1,554 Views
saurabhprajapati
Contributor I

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
---------------------------------------------------

0 Kudos
4 Replies

1,281 Views
goodspeed
Contributor II

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. 

0 Kudos

1,296 Views
Alejandro_Salas
NXP TechSupport
NXP TechSupport

Hello @saurabhprajapati !

 

You can check this post to solve the issue:

 

repo issue "def print(self, *args, **kwargs):"

 

Best regards!

0 Kudos

1,464 Views
Harvey021
NXP TechSupport
NXP TechSupport

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

0 Kudos