简体   繁体   English

回购init -u https://android.googlesource.com/platform/manifest错误

[英]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.

相关问题 从https://android.googlesource.com检出项目 - Checkout projects from https://android.googlesource.com 致命:无法获取 https://gerrit.googlesource.com/git-repo/clone.bundle 致命:错误 [Errno 110] 连接超时 - fatal: Cannot get https://gerrit.googlesource.com/git-repo/clone.bundle fatal: error [Errno 110] Connection timed out Android AOSP Repo Init致命:错误未知网址类型:https - Android AOSP Repo Init fatal: error unknown url type: https 使用Git REPO实现Android EventSource https://github.com/streamdataio/eventsource-android/ private onConnect错误 - Implementation of Android EventSource Using Git REPO https://github.com/streamdataio/eventsource-android/ private onConnect Error 关于.git / HEAD的回购:错误:显示缺失或不可读 - 请运行init - repo about .git/HEAD: error: manifest missing or unreadable — please run init Android 回购初始化失败 - Android Repo init failed Android repo init:SSL_CERTIFICATE_VERIFY_FAILED 错误 - Android repo init : SSL_CERTIFICATE_VERIFY_FAILED error 与 com.google.android.material:material 的清单合并错误 - Manifest merger error with com.google.android.material:material 如何回购初始化清单文件而忽略注释标记? - How to repo init a manifest file ignoring annotation tag? 使用cygwin在Windows 7中使用repo init错误 - repo init error in windows 7 with cygwin
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM