[英]python: boto3 _send_request() error
I want to user boto3 within docker but this error: TypeError: _send_request() takes 5 positional arguments but 6 were given
always responds to me.我想在 docker 中使用 boto3,但是这个错误:
TypeError: _send_request() takes 5 positional arguments but 6 were given
总是响应我。 For example:例如:
Out the docker:离开码头:
import boto3
s3 = boto3.resource('s3')
for bucket in s3.buckets.all():
print(bucket.name)
And everything works, but within docker python interpreter, it gives me the error.一切正常,但在 docker python 解释器中,它给了我错误。
Any idea?有什么想法吗? Thanks!
谢谢!
你可以升级你的 boto3 并修复它:pip install --upgrade boto3
Upgrade boto3 using: pip install --upgrade boto3 and restart the runtime environment.使用以下命令升级 boto3: pip install --upgrade boto3 并重新启动运行时环境。 This works for me.
这对我有用。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.