Skip to content

Amazon Provider v8.23.0 importlib_metadata module import error #40127

@aiell0

Description

@aiell0

Apache Airflow Provider(s)

amazon

Versions of Apache Airflow Providers

Amazon provider v8.23.0

Apache Airflow version

2.7.0

Operating System

Linux

Deployment

Other Docker-based deployment

Deployment details

We are deploying into ECS Fargate with the following Dockerfile and requirements.txt files:

Dockerfile gist: https://gist.github.com/aiell0/a8100691966186f09a5237a480ecf55e
requirements.txt gist: https://gist.github.com/aiell0/59c180a1c14afa736610e7b0261060e4

What happened

Container failed to deploy. When we looked into the logs we found the following error:

ValueError: Cannot resolve 'airflow.providers.amazon.aws.log.s3_task_handler.S3TaskHandler': No module named 'importlib_metadata'

What you think should happen instead

Container/Task should have stood up successfully.

How to reproduce

Attempt to deploy a container via ECS using Apache Airflow v2.7 and v8.23 of the Amazon Provider.

Anything else

No response

Are you willing to submit PR?

  • Yes I am willing to submit a PR!

Code of Conduct

Metadata

Metadata

Assignees

No one assigned

    Labels

    area:providerskind:bugThis is a clearly a bugneeds-triagelabel for new issues that we didn't triage yet

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions