Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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. 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.

Any idea? Thanks!

like image 399
Julián Cortés Avatar asked Nov 17 '16 21:11

Julián Cortés


2 Answers

you can upgrade your boto3 and will fix it: pip install --upgrade boto3

like image 161
Tian Liu Avatar answered Nov 01 '22 23:11

Tian Liu


Upgrade boto3 using: pip install --upgrade boto3 and restart the runtime environment. This works for me.

like image 40
saran sasidharan Avatar answered Nov 01 '22 21:11

saran sasidharan