AWS-CLI 抛出基于 Python 的意外 'Session' 错误
AWS-CLI throwing unexpected Python based 'Session' error
我已经在 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 升级了这两个包,之后该实用程序停止工作。
我已经在 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 升级了这两个包,之后该实用程序停止工作。