Open lsabreu96 opened 1 year ago
Hi @lsabreu96, thanks for reporting an issue.
Looking at this line:
ImportError: cannot import name 'escape' from 'jinja2' (/home/airflow/.local/lib/python3.7/site-packages/jinja2/__init__.py)
I would imagine this is the related issue: https://stackoverflow.com/questions/71718167/importerror-cannot-import-name-escape-from-jinja2. Have you tried upgrading to Airflow 2.3 which bumps the Flask=1.1.2
constraint to Flask=2.2.2
? That should take care of the issue if my assessment is correct. If you are looking for reference versions, we test Airflow versions 2.4.3 and 2.5.1, with latest dbt (1.4) and Python >=3.7, and haven't had any issues.
This could be an incompatibility between the requirements between Airflow and dbt (as both appear to require jinja2
), so there's not much we can do from our end.
Specs: Docker image: apache/airflow:2.2.2-python3.7 I'm spinning the environment up using the docker-compose and specifying the package as such
The error is
But I'm receiving the above error. Under some investigation, the most useful threads seemed to be this one, which is related to some naming conflict.
I pinned the version as such
psutil==4.4.2
But no success still. Also tried pinning PyYaml to be under 6, but also without success
Any thoughts ?