[Python] botocore package in lambda python 3.9 runtime return error: "cannot import name...

Discussão em 'Python' iniciado por Stack, Maio 30, 2025.

  1. Stack

    Stack Membro Participativo

    I am using Lambda Python 3.9 runtimes. I also use boto3 and botocore default packages in Lambda.

    Today, I suddenly got this error: "cannot import name "'DEPRECATED_SERVICE_NAMES'" from 'botocore.docs'". I only succeeded in fixing it when I added the botocore package to the lambda runtime. I want to avoid it since it increases the size of the layer by 10 MB.

    Any help? thanks

    Continue reading...

Compartilhe esta Página