Skip to content

Babel dependency is missing since macros have been moved into Task SDK #56552

@dabla

Description

@dabla

Apache Airflow version

3.1.0

If "Other Airflow 2/3 version" selected, which one?

No response

What happened?

Since macro's have now been moved to the Task SDK, and Airflow isn't depending on Flask anymore and thus also the flask-babel dependency, the babel dependency is missing since macro's like ds_format_locale depend on it.

What you think should happen instead?

The babel dependency should be added in the Task SDK.

How to reproduce

Use the macros.ds_format_locale in your jinja expressions and you will get an ModuleNotFoundError: No module named 'babel' error.

logs.txt

Operating System

Linux

Versions of Apache Airflow Providers

No response

Deployment

Other 3rd-party Helm chart

Deployment details

No response

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:corekind:bugThis is a clearly a bugneeds-triagelabel for new issues that we didn't triage yet

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions