aioboto3 icon indicating copy to clipboard operation
aioboto3 copied to clipboard

Crash: ImportError on LinuxAWS docker image with version 9.3.1

Open AlexisCra opened this issue 3 years ago • 1 comments

  • 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: 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

AlexisCra avatar Jan 24 '22 16:01 AlexisCra

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

Can you get me the output of pip freeze?

terricain avatar Mar 13 '22 10:03 terricain