technexion-android / cookers

Please select your target branch first, then the detail instruction is inside the README.md
8 stars 9 forks source link

Repo init error #28

Closed ChatchaiBuekban closed 3 years ago

ChatchaiBuekban commented 3 years ago

repo init -u https://github.com/technexion-android/manifest -b tn-p9.0.0_2.0.1_8m-ga File "/home/..../ASOP/.repo/repo/main.py", line 79 file=sys.stderr) ^ SyntaxError: invalid syntax

How to fix this.

wigcheng commented 3 years ago

What's your Ubuntu revision on host PC? Google upgrade repo requirement using python 3.7+ since 2020 Q4, if your host PC is adapt Ubuntu 20.04, should be no problems, but if adapt 16.04 or 18.04, you need upgrade your default python revision first.

You can refer dockerfile of cookers, detail as follows commit: https://github.com/technexion-android/cookers/commit/220082a212ecd162ea6ae1e25e9aef391d5c1534

Thanks!

ChatchaiBuekban commented 3 years ago

Thank for your reply, I have solved, default my python is version 2.x and worked when I set default to version 3.x or run with $ python3 repo init ...