Skip to content

Bug: ImportError: libc.musl-x86_64.so.1 after latest AWS Lambda Python 3.9 release #297

@simone-macri

Description

@simone-macri

Description:

After the latest AWS Lambda runtime release for Python 3.9 (based on the amazon/aws-lambda-python:3.9 base image), our Lambda function fails to run and immediately raises an ImportError related to a missing shared object:

ImportError: libc.musl-x86_64.so.1: cannot open shared object file: No such file or directory
This issue was not present in the previous version.

Steps to reproduce:

  1. Use the latest AWS Lambda runtime for Python 3.9 (based on amazon/aws-lambda-python:3.9).
  2. Deploy a previously functioning Lambda function.
  3. Invoke the function.
  4. Observe the runtime failure.

Observed result:

ImportError: libc.musl-x86_64.so.1: cannot open shared object file: No such file or directory

Expected result:

The function should execute normally without failing due to missing system dependencies.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions