ImportError: cannot import name 'Markup' from 'jinja2.utils'

I am upgrading from V2.3.2 to the latest version at this time 2.5.0. Everything seems to have upgraded fine, until I see DAG import errors on the home UX. The error is as follows:

Broken DAG: [/opt/airflow/dags/example_dag.py] Traceback (most recent call last):
  File "/home/airflow/.local/lib/python3.8/site-packages/jinjasql/__init__.py", line 1, in <module>
    from jinjasql.core import JinjaSql
  File "/home/airflow/.local/lib/python3.8/site-packages/jinjasql/core.py", line 6, in <module>
    from jinja2.utils import Markup
ImportError: cannot import name 'Markup' from 'jinja2.utils' (/home/airflow/.local/lib/python3.8/site-packages/jinja2/utils.py)

Wondering if anyone else encountered this issue?

Hi @Amphagory, Thanks for reaching our, Per GH issue - ImportError: cannot import name 'Markup' from 'jinja2.utils' · Issue #28549 · apache/airflow · GitHub, The error happens in jinjasql, the relevant issue open in their repo: sripathikrishnan/jinjasql#50.
However jinjasql is not a part of Airflow dependencies as well as community providers.

Hope this helps!