terricain / aioboto3

Wrapper to use boto3 resources with the aiobotocore async backend
Apache License 2.0
719 stars 74 forks source link

Crash: ImportError on LinuxAWS docker image with version 9.3.1 #253

Closed AlexisCra closed 1 year ago

AlexisCra commented 2 years ago

Description

I'm trying to update a lambda function and required packages versions.

The lambda is crashing at the very beginning when importing aioboto3 (9.3.1) import aiototo3

The error is: ImportError: cannot import name 'is_valid_ipv6_endpoint_url' from 'botocore.endpoint' (/var/runtime/botocore/endpoint.py)

Everything is working well if I'm using aioboto3<=9.3.0

What I Did

Build and up the docker image then call the lambda by endpoint.

The stack trace is empty at this point.

Minimal project to reproduce: Screenshot 2022-01-24 at 17 22 07

Console output: Screenshot 2022-01-24 at 17 23 43

Request response data: Screenshot 2022-01-24 at 17 26 07

terricain commented 2 years ago

Im going to guess that the versions of botocore / aiobotocore/ boto3 dont align.

Can you get me the output of pip freeze?