System: Ubuntu 18.04.5
Linux Version: L4.14.98-2.0.0.ga
When I do the commend showed below, the error happens as below:
1> commend: repo init -u https://source.codeaurora.org/external/imx/imx-manifest -b imx-linux-sumo -m imx-4.14.98-2.0.0_ga.xml
2> error:
ubuntu@ubuntu:~/yocto/imx6ull-yocto-bsp$ repo init -u https://source.codeaurora.org/external/imx/imx-manifest -b imx-linux-sumo -m imx-4.14.98-2.0.0_ga.xml
Get https://mirrors.tuna.tsinghua.edu.cn/git/git-repo remote: Counting objects: 6241, done.
remote: Compressing objects: 100% (3175/3175), done.
remote: Total 6241 (delta 4060), reused 4968 (delta 2997)
Receiving objects: 100% (6241/6241), 2.37 MiB | 4.01 MiB/s, done.
Resolving deltas: 100% (4060/4060), done.
From https://mirrors.tuna.tsinghua.edu.cn/git/git-repo
* [new branch] main -> origin/main
* [new branch] maint -> origin/maint
* [new branch] master -> origin/master
* [new branch] repo-1 -> origin/repo-1
* [new branch] stable -> origin/stable
....
* [new tag] v2.7 -> v2.7
* [new tag] v2.8 -> v2.8
* [new tag] v2.9 -> v2.9
File "/home/ubuntu/yocto/imx6ull-yocto-bsp/.repo/repo/main.py", line 79
file=sys.stderr) ^ SyntaxError: invalid syntax
I have installed the repo and basic configuration.
Hope you can help me.
Thanks.
sudo rm /usr/bin/python
sudo ln -s /usr/bin/python3.6 /usr/bin/python
Then repo init should work.
I have the same issue, Originally I use python2.7, the invalid syntax error occurs during repo init process. I changed to python3.6.6, the problem still there. Because the repo update itself automatically, there is no way to fix the repo version. I check the main.py file, the new one use python3, but the older one in my disk use python2. Is there any way to keep the older repo file?
Yes.
I have tried many ways, but failed.
So, now it is not way to fix the problem.
Maybe I have to download the source code by git instead of yocto.
Jimmyli,
I switched to release 5.4.24, and setup the host based on this release. I guess there is no way to support the old release after you do a repo sync (and you must do a repo init first because the site change to codeaurora.org) because the automatic repo update.
Hai
Hi Hai,
Switch to ubuntu 20.04 will fix the problem.
Hi Hai,
Thanks for your suggestion.
I will update to L5.4.24 version too.