5

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!

4

2 Answers 2

12

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

Sign up to request clarification or add additional context in comments.

1 Comment

the upgrade didn't influence for me, still got this issue
4

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

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.