gpt4 book ai didi

python - AWS-CLI 抛出基于 Python 的意外 'Session' 错误

转载 作者:行者123 更新时间:2023-11-28 18:37:00 26 4
gpt4 key购买 nike

我已经在 Ubuntu 上使用 AWS CLI 一个月了。但是今天 AWS CLI 抛出一个 python 错误,我以前没见过:

sashank@sashank:~$ aws configure
Traceback (most recent call last):
File "/usr/local/bin/aws", line 27, in <module>
sys.exit(main())
File "/usr/local/bin/aws", line 23, in main
return awscli.clidriver.main()
File "/usr/local/lib/python2.7/dist-packages/awscli/clidriver.py", line 48, in main
return driver.main()
File "/usr/local/lib/python2.7/dist-packages/awscli/clidriver.py", line 173, in main
parser = self._create_parser()
File "/usr/local/lib/python2.7/dist-packages/awscli/clidriver.py", line 154, in _create_parser
command_table['help'] = self.create_help_command()
File "/usr/local/lib/python2.7/dist-packages/awscli/clidriver.py", line 149, in create_help_command
cli_data.get('help_usage', None))
File "/usr/local/lib/python2.7/dist-packages/awscli/help.py", line 259, in __init__
HelpCommand.__init__(self, session, session.provider,
AttributeError: 'Session' object has no attribute 'provider'

我已尝试清除 AWS CLI 并删除所有包文件并重新安装,但错误仍然存​​在。请帮助!谢谢。

最佳答案

可能您已经升级了您的 virtualenv/setuptools,现在您的实用程序被搞砸了。我遇到了一个错误设置的 Chef,它升级了这两个包,之后该实用程序停止工作。

关于python - AWS-CLI 抛出基于 Python 的意外 'Session' 错误,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/31422205/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com