FIX: Added missing babel dependency in Task SDK#56553
Merged
kaxil merged 3 commits intoapache:mainfrom Oct 13, 2025
Merged
Conversation
2 tasks
kaxil
approved these changes
Oct 11, 2025
Member
|
huh Task SDK tests didn't run. Need to probably update the selective checks. |
hussein-awala
approved these changes
Oct 11, 2025
Member
hussein-awala
left a comment
There was a problem hiding this comment.
From your issue:
Use the
macros.ds_format_localein your jinja expressions and you will get an ModuleNotFoundError: No module named 'babel' error.
Could you create a unit test to reproduce the issue and ensure it's fixed by this change?
Contributor
Author
Normally there was an existing unit test for this before the move if I remember correctly, maybe I got removed? |
github-actions bot
pushed a commit
to aws-mwaa/upstream-to-airflow
that referenced
this pull request
Oct 13, 2025
After the [move of macros to the Task SDK](https://github.com/apache/airflow/pull/46867/files#diff-854d19db18bae58289f4ce996ca0fb34341bc0f22930620627afccbd9d6facfcL30), the babel dependency is missing. This is probably due to the fact that in the past, the babel dependency was available through the flask-babel dependency. This PR add the babel dependency to the Task SDK so that macro's depending on it can work again. (cherry picked from commit f96bb22) Co-authored-by: David Blain <info@dabla.be> closes: apache#56552
github-actions bot
pushed a commit
that referenced
this pull request
Oct 13, 2025
After the [move of macros to the Task SDK](https://github.com/apache/airflow/pull/46867/files#diff-854d19db18bae58289f4ce996ca0fb34341bc0f22930620627afccbd9d6facfcL30), the babel dependency is missing. This is probably due to the fact that in the past, the babel dependency was available through the flask-babel dependency. This PR add the babel dependency to the Task SDK so that macro's depending on it can work again. (cherry picked from commit f96bb22) Co-authored-by: David Blain <info@dabla.be> closes: #56552
Contributor
Parthsuii
added a commit
to Parthsuii/airflow
that referenced
this pull request
Oct 13, 2025
This reverts commit f96bb22.
potiuk
pushed a commit
that referenced
this pull request
Oct 16, 2025
After the [move of macros to the Task SDK](https://github.com/apache/airflow/pull/46867/files#diff-854d19db18bae58289f4ce996ca0fb34341bc0f22930620627afccbd9d6facfcL30), the babel dependency is missing. This is probably due to the fact that in the past, the babel dependency was available through the flask-babel dependency. This PR add the babel dependency to the Task SDK so that macro's depending on it can work again. (cherry picked from commit f96bb22) closes: #56552 Co-authored-by: David Blain <info@dabla.be>
TyrellHaywood
pushed a commit
to TyrellHaywood/airflow
that referenced
this pull request
Oct 22, 2025
After the [move of macros to the Task SDK](https://github.com/apache/airflow/pull/46867/files#diff-854d19db18bae58289f4ce996ca0fb34341bc0f22930620627afccbd9d6facfcL30), the babel dependency is missing. This is probably due to the fact that in the past, the babel dependency was available through the flask-babel dependency. This PR add the babel dependency to the Task SDK so that macro's depending on it can work again. closes: apache#56552
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
After the move of macros to the Task SDK, the babel dependency is missing. This is probably due to the fact that in the past, the babel dependency was available through the flask-babel dependency. This PR add the babel dependency to the Task SDK so that macro's depending on it can work again.
closes: #56552
^ Add meaningful description above
Read the Pull Request Guidelines for more information.
In case of fundamental code changes, an Airflow Improvement Proposal (AIP) is needed.
In case of a new dependency, check compliance with the ASF 3rd Party License Policy.
In case of backwards incompatible changes please leave a note in a newsfragment file, named
{pr_number}.significant.rstor{issue_number}.significant.rst, in airflow-core/newsfragments.