AWS CLI:ERROR:根:哈希MD5码未找到

保罗:

当试图运行AWS CLI,我得到这个错误:

aws
ERROR:root:code for hash md5 was not found.
Traceback (most recent call last):
  File "/usr/local/Cellar/[email protected]/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/[email protected]/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 md5
ERROR:root:code for hash sha1 was not found.
Traceback (most recent call last):
  File "/usr/local/Cellar/[email protected]/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/[email protected]/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 sha1
ERROR:root:code for hash sha224 was not found.
Traceback (most recent call last):
  File "/usr/local/Cellar/[email protected]/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/[email protected]/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 sha224
ERROR:root:code for hash sha256 was not found.
Traceback (most recent call last):
  File "/usr/local/Cellar/[email protected]/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/[email protected]/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 sha256
ERROR:root:code for hash sha384 was not found.
Traceback (most recent call last):
  File "/usr/local/Cellar/[email protected]/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/[email protected]/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 sha384
ERROR:root:code for hash sha512 was not found.
Traceback (most recent call last):
  File "/usr/local/Cellar/[email protected]/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/[email protected]/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 "/usr/local/bin/aws", line 19, in <module>
    import awscli.clidriver
  File "/usr/local/lib/python2.7/site-packages/awscli/clidriver.py", line 17, in <module>
    import botocore.session
  File "/usr/local/lib/python2.7/site-packages/botocore/session.py", line 29, in <module>
    import botocore.configloader
  File "/usr/local/lib/python2.7/site-packages/botocore/configloader.py", line 19, in <module>
    from botocore.compat import six
  File "/usr/local/lib/python2.7/site-packages/botocore/compat.py", line 25, in <module>
    from botocore.exceptions import MD5UnavailableError
  File "/usr/local/lib/python2.7/site-packages/botocore/exceptions.py", line 15, in <module>
    from botocore.vendored import requests
  File "/usr/local/lib/python2.7/site-packages/botocore/vendored/requests/__init__.py", line 58, in <module>
    from . import utils
  File "/usr/local/lib/python2.7/site-packages/botocore/vendored/requests/utils.py", line 26, in <module>
    from .compat import parse_http_list as _parse_list_header
  File "/usr/local/lib/python2.7/site-packages/botocore/vendored/requests/compat.py", line 7, in <module>
    from .packages import chardet
  File "/usr/local/lib/python2.7/site-packages/botocore/vendored/requests/packages/__init__.py", line 3, in <module>
    from . import urllib3
  File "/usr/local/lib/python2.7/site-packages/botocore/vendored/requests/packages/urllib3/__init__.py", line 10, in <module>
    from .connectionpool import (
  File "/usr/local/lib/python2.7/site-packages/botocore/vendored/requests/packages/urllib3/connectionpool.py", line 31, in <module>
    from .connection import (
  File "/usr/local/lib/python2.7/site-packages/botocore/vendored/requests/packages/urllib3/connection.py", line 45, in <module>
    from .util.ssl_ import (
  File "/usr/local/lib/python2.7/site-packages/botocore/vendored/requests/packages/urllib3/util/__init__.py", line 5, in <module>
    from .ssl_ import (
  File "/usr/local/lib/python2.7/site-packages/botocore/vendored/requests/packages/urllib3/util/ssl_.py", line 2, in <module>
    from hashlib import md5, sha1, sha256
ImportError: cannot import name md5

我试图解决这个问题,但他们不工作:

brew reinstall [email protected]
==> Reinstalling [email protected]
Error: An exception occurred within a child process:
  FormulaUnavailableError: No available formula with the name "/usr/local/opt/[email protected]/.brew/[email protected]"

我认为它可能没有安装,但它已经是:

brew install [email protected]
Warning: [email protected] 2.7.15_1 is already installed and up-to-date
To reinstall 2.7.15_1, run `brew reinstall [email protected]`

运行brew doctor该节目python被取消喜欢,但运行brew link python失败,因为属于一个符号链接[email protected]

brew link python
Linking /usr/local/Cellar/python/3.7.6_1...
Error: Could not symlink Frameworks/Python.framework/Headers
Target /usr/local/Frameworks/Python.framework/Headers
is a symlink belonging to [email protected] You can unlink it:
  brew unlink [email protected]

To force the link and overwrite all conflicting files:
  brew link --overwrite python

To list all files that would be deleted:
  brew link --overwrite --dry-run python

推荐的命令似乎在圈子去和他们没有设法解决这个问题。我有点卡住 - 如何从这些错误中恢复?

Bao Yutong 鲍昱彤 :

冉与酿造类似的问题试图使用PIP时,安装python2错误。

这可能是因为

蟒蛇@ 2,从自制/核心删除了提交028f11f9e:
蟒蛇@ 2:删除(https://github.com/Homebrew/homebrew-core/issues/49796
EOL 1月2020。

看到这个帖子这里 https://github.com/Homebrew/homebrew-core/pull/49796了解更多详情。

为了解决这个问题,

  1. 运行brew uninstall [email protected]卸载酿造安装蟒蛇@ 2这应该使默认python2回落至python2带着MacOS的。
  2. 卸载当前AWS CLI中运行

    • sudo rm -rf /usr/local/bin/aws
    • sudo rm -rf /usr/local/aws
    • rm AWSCLIV2.pkg
  3. 安装AWS运行再次cli来

    • sudo curl "https://awscli.amazonaws.com/AWSCLIV2.pkg" -o "AWSCLIV2.pkg"
    • sudo installer -pkg AWSCLIV2.pkg -target /
  4. 如果你运行aws --version你应该看到它的链接python3,而不是python2

希望能帮助到你。

本文收集自互联网,转载请注明来源。

如有侵权,请联系 [email protected] 删除。

编辑于
0

我来说两句

0 条评论
登录 后参与评论

相关文章

来自分类Java

从Java运行AWS CLI

Andrey Yaskulsky:我正在尝试运行AWS CLI comm

20
来自分类Linux

如何使用cli更新〜/ .aws / credentials文件中的AWS密钥?

user1379280:所以我处于安全协议下

270
来自分类Java

如何生成MD5哈希?

Akshay:是否有任何生成MD5哈希的方法

210
来自分类Dev

在Elixir中哈希MD5

琼:在Elixir中,您可以获取字符串的md5:

50
来自分类Java

zip文件的MD5哈希

Priya是否可以为.zi生成MD5哈希

00
来自分类Java

使JAVA MD5哈希匹配C#MD5哈希

穆罕默德·拉贾比(Mohammad Rajabi):我的工作是重写一堆

160
来自分类Java

在scala中计算字符串的MD5哈希

james:可能重复:在中生成MD5哈希

90
来自分类Linux

AWS自动CLI输出被发送到六

莫尔德:我目前正在学习AWS CLI(V2

610
来自分类Dev

AWS Lambda http,在哪里可以找到URL?

安德斯(Anders):我对AWS Lambda相当陌生,但可以肯定

10
来自分类Java

计算Objective-C中字符串的MD5哈希值

丹尼尔:我在转换广告时遇到很多麻烦

60
来自分类Javascript

如何在PostMan中的预请求脚本中计算md5哈希?

昆汀:我必须在请求中设置参数

220
来自分类Java

MD5在Java中生成31个字符的哈希

divinedragon:我正在使用以下代码块

150
来自分类Dev

AWS MySQL RDS与AWS DynamoDB

亚当(Adam)我一直在使用MySQL,现在

10
来自分类Dev

如何使用aws cli设置S3存储桶中文件的权限?

阿曼达(Amanda):我是AWS CLI的新手,

30
来自分类Java

AWS SAM CLI java8运行时不支持

迈克尔DZ:我试图建立一个lambda APPLICA

240
来自分类Python

无法安装AWS Elastic Beanstalk CLI(Win10,Python 3.6,Pip 9.0.1)

阿米尔:我正在尝试在机器上安装awsebcli

250
来自分类Dev

如何在AWS CLI配置和凭证文件中注释掉行?

kellyfj:用于AWS CLI配置和credentia

10
来自分类Java

IntelliJ IDEA的配置不能找到AWS LAMBDA处理器在默认“的HelloWorld”应用程序

大卫:当设置为调试配置

220
来自分类Java

AWS的Java SDK - 无法通过区域供应商链,找到一个区域

Codistan:我已经通过了问题的标题不见了

170

TOP 榜单

热门标签

归档