imx-android-13 repo error

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

imx-android-13 repo error

1,844件の閲覧回数
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 件の賞賛
返信
4 返答(返信)

1,571件の閲覧回数
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 件の賞賛
返信

1,586件の閲覧回数
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 件の賞賛
返信

1,544件の閲覧回数
goodspeed
Contributor II
0 件の賞賛
返信

1,754件の閲覧回数
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 件の賞賛
返信