上記のサイトを参考にcloud-sdkを64bit版macOSにインストールしましたが、
Terminal
1./google-cloud-sdk/install.sh
を実行すると
Terminal
1Welcome to the Google Cloud SDK! 2ERROR:root:code for hash md5 was not found. 3Traceback (most recent call last): 4 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> 5 globals()[__func_name] = __get_hash(__func_name) 6 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 7 raise ValueError('unsupported hash type ' + name) 8ValueError: unsupported hash type md5 9ERROR:root:code for hash sha1 was not found. 10Traceback (most recent call last): 11 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> 12 globals()[__func_name] = __get_hash(__func_name) 13 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 14 raise ValueError('unsupported hash type ' + name) 15ValueError: unsupported hash type sha1 16ERROR:root:code for hash sha224 was not found. 17Traceback (most recent call last): 18 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> 19 globals()[__func_name] = __get_hash(__func_name) 20 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 21 raise ValueError('unsupported hash type ' + name) 22ValueError: unsupported hash type sha224 23ERROR:root:code for hash sha256 was not found. 24Traceback (most recent call last): 25 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> 26 globals()[__func_name] = __get_hash(__func_name) 27 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 28 raise ValueError('unsupported hash type ' + name) 29ValueError: unsupported hash type sha256 30ERROR:root:code for hash sha384 was not found. 31Traceback (most recent call last): 32 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> 33 globals()[__func_name] = __get_hash(__func_name) 34 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 35 raise ValueError('unsupported hash type ' + name) 36ValueError: unsupported hash type sha384 37ERROR:root:code for hash sha512 was not found. 38Traceback (most recent call last): 39 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> 40 globals()[__func_name] = __get_hash(__func_name) 41 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 42 raise ValueError('unsupported hash type ' + name) 43ValueError: unsupported hash type sha512 44Traceback (most recent call last): 45 File "/Users/nomad-lab/./google-cloud-sdk/bin/bootstrapping/install.py", line 12, in <module> 46 import bootstrapping 47 File "/Users/nomad-lab/google-cloud-sdk/bin/bootstrapping/bootstrapping.py", line 39, in <module> 48 from googlecloudsdk.core import config 49 File "/Users/nomad-lab/google-cloud-sdk/lib/googlecloudsdk/core/config.py", line 29, in <module> 50 from googlecloudsdk.core.util import files as file_utils 51 File "/Users/nomad-lab/google-cloud-sdk/lib/googlecloudsdk/core/util/files.py", line 596, in <module> 52 class Checksum(object): 53 File "/Users/nomad-lab/google-cloud-sdk/lib/googlecloudsdk/core/util/files.py", line 599, in Checksum 54 def __init__(self, algorithm=hashlib.sha256): 55AttributeError: 'module' object has no attribute 'sha256'
と表示されて正常にPATHを追加することができません。エラーメッセージの内容を検索して、色々と試してみましたが、情報が古いものが多く、意図する結果になりませんでした。
どなたかご教示していただけないでしょうか?
バッドをするには、ログインかつ
こちらの条件を満たす必要があります。