[英]repo init -u https://android.googlesource.com/platform/manifest error
I tried downloading the android source code as followed in the steps of https://source.android.com/source/downloading 我尝试按照https://source.android.com/source/downloading的步骤下载android源代码
but in the step: 但在步骤中:
repo init -u https://android.googlesource.com/platform/manifest
I get the following error. 我收到以下错误。
warning: Python 3 support is currently experimental. 警告:Python 3支持目前处于试验阶段。 YMMV. YMMV。 Please use Python 2.6 - 2.7 instead. 请改用Python 2.6-2.7。 Traceback (most recent call last): File "/home/marios/bin/repo", line 883, in main(sys.argv[1:]) 追溯(最近一次通话):文件“ / home / marios / bin / repo”,行883,位于main(sys.argv [1:])中
File "/home/marios/bin/repo", line 851, in main _Init(args, gitc_init=(cmd == 'gitc-init')) File "/home/marios/bin/repo", line 337, in _Init _CheckGitVersion() File "/home/marios/bin/repo", line 391, in _CheckGitVersion ver_act = ParseGitVersion(ver_str) File "/home/marios/bin/repo", line 361, in ParseGitVersion if not ver_str.startswith('git version '): TypeError: startswith first arg must be bytes or a tuple of bytes, not str 在主_Init(args,gitc_init =(cmd =='gitc-init'))中的文件``/ home / marios / bin / repo'',行851,在文件``/ home / marios / bin / repo'',行337, _Init _CheckGitVersion()在_CheckGitVersion中的文件“ / home / marios / bin / repo”,第391行ver_act = ParseGitVersion(ver_str)在ParseGitVersion中的文件“ / home / marios / bin / repo”,第361行,如果不是ver_str.startswith( 'git version'):TypeError:开头为第一个arg必须是字节或字节元组,而不是str
Why? 为什么?
You are using Python 3. You must use Python version 2.6-2.7. 您正在使用Python3。必须使用Python版本2.6-2.7。 Please visit python.org to learn how to install the correction version of Python on your system. 请访问python.org以了解如何在系统上安装Python的更正版本。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.