<p>在从<a href="https://mirror.tuna.tsinghua.edu.cn/help/AOSP/" rel="nofollow noreferrer">mirro.tuna</a>下载tar文件后,我已经初始化了AOSP repo,但是在执行<code>repo sync</code>时遇到了以下错误。在</p>
<pre><code>ERROR:root:code for hash md5 was not found.
Traceback (most recent call last):
File "/usr/local/Cellar/python@2/2.7.15_1/Frameworks/Python.framework/Versions/2.7/lib/python2.7/hashlib.py", line 147, in <module>
globals()[__func_name] = __get_hash(__func_name)
File "/usr/local/Cellar/python@2/2.7.15_1/Frameworks/Python.framework/Versions/2.7/lib/python2.7/hashlib.py", line 97, in __get_builtin_constructor
raise ValueError('unsupported hash type ' + name)
ValueError: unsupported hash type sha512
Traceback (most recent call last):
File "/Volumes/Android/Source/aosp/.repo/repo/main.py", line 50, in <module>
from git_config import init_ssh, close_ssh
File "/Volumes/Android/Source/aosp/.repo/repo/git_config.py", line 24, in <module>
import ssl
File "/usr/local/Cellar/python@2/2.7.15_1/Frameworks/Python.framework/Versions/2.7/lib/python2.7/ssl.py", line 98, in <module>
import _ssl # if we can't import it, let the error propagate
ImportError: dlopen(/usr/local/Cellar/python@2/2.7.15_1/Frameworks/Python.framework/Versions/2.7/lib/python2.7/lib-dynload/_ssl.so, 2): Library not loaded: /usr/local/opt/openssl/lib/libssl.1.0.0.dylib
Referenced from: /usr/local/Cellar/python@2/2.7.15_1/Frameworks/Python.framework/Versions/2.7/lib/python2.7/lib-dynload/_ssl.so
Reason: image not found
</code></pre>