terricain / aioboto3

Wrapper to use boto3 resources with the aiobotocore async backend

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Crash: ImportError on LinuxAWS docker image with version 9.3.1

AlexisCra opened this issue · 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

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

Can you get me the output of pip freeze?