美文网首页
repo sync except DownloadError,

repo sync except DownloadError,

作者: 小田BSP | 来源:发表于2021-04-07 21:55 被阅读0次

使用vmware重装ubuntu 18.04虚拟机后,按照下面方法配置repo

curl https://storage.googleapis.com/git-repo-downloads/repo > /bin/repo
chmod a+x /bin/repo

在同步代码时,出现下面问题:

root@ubuntu:/home/run/code# repo sync -l
  File "/home/run/code/.repo/repo/main.py", line 147
    except DownloadError, e:
                        ^
SyntaxError: invalid syntax

删除repo,使用apt-get重新安装repo,可同步代码。解决方法如下:

rm /bin/repo
apt-get install repo

相关文章

网友评论

      本文标题:repo sync except DownloadError,

      本文链接:https://www.haomeiwen.com/subject/nojpkltx.html