aioboto3
aioboto3 copied to clipboard
Crash: ImportError on LinuxAWS docker image with version 9.3.1
- Async AWS SDK for Python version:
- Python version: 3.8
- Operating System: Docker image -> public.ecr.aws/lambda/python:3.8
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:
Console output:
Request response data:
Im going to guess that the versions of botocore / aiobotocore/ boto3 dont align.
Can you get me the output of pip freeze?