[
https://issues.apache.org/jira/browse/AIRFLOW-4901?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16892582#comment-16892582
]
Allan Lewis commented on AIRFLOW-4901:
--------------------------------------
{{pip-tools}} has some helpful output:
{noformat}
➜ python3.7 -m pip show pip-tools | grep ^Version:
Version: 3.9.0
➜ echo apache-airflow > requirements.in
➜ python3.7 -m piptools compile
Could not find a version that matches Jinja2<=2.10.0,>=2.10.1,>=2.7.3 (from
apache-airflow==1.10.3->-r requirements.in (line 1))
Tried: 2.0, 2.1, 2.1.1, 2.2, 2.2.1, 2.3, 2.3.1, 2.4, 2.4.1, 2.5, 2.5.1, 2.5.2,
2.5.3, 2.5.4, 2.5.5, 2.6, 2.7, 2.7.1, 2.7.2, 2.7.3, 2.8, 2.8, 2.8.1, 2.8.1,
2.9, 2.9, 2.9.1, 2.9.1, 2.9.2, 2.9.2, 2.9.3, 2.9.3, 2.9.4, 2.9.4, 2.9.5, 2.9.5,
2.9.6, 2.9.6, 2.10, 2.10, 2.10.1, 2.10.1
Skipped pre-versions: 2.0rc1
There are incompatible versions in the resolved dependencies:
Jinja2>=2.10.1 (from flask==1.1.1->apache-airflow==1.10.3->-r requirements.in
(line 1))
jinja2<=2.10.0,>=2.7.3 (from apache-airflow==1.10.3->-r requirements.in (line
1))
{noformat}
So Flask seems to be the cause. Maybe Flask needs to be restricted to {{<
1.1}}? See these commits:
* https://github.com/pallets/flask/commit/de01dfb7
* https://github.com/pallets/flask/commit/af32ea0b
> Jinja2 dependency resolution
> ----------------------------
>
> Key: AIRFLOW-4901
> URL: https://issues.apache.org/jira/browse/AIRFLOW-4901
> Project: Apache Airflow
> Issue Type: Bug
> Components: dependencies
> Affects Versions: 1.10.3
> Environment: MacOS / Linux
> Reporter: Mike Wallis
> Priority: Major
>
> We're using pipenv for dependency management and the current version of
> apache-airflow has internal dependency issues with Jinja2 so we cannot create
> a lockfile.
> The error message that we get is below.
> Could not find a version that matches
> jinja2<=2.10.0,==2.10,>=2.10,>=2.10.1,>=2.5,>=2.7.3
> This is an example Pipfile with just apache-airflow
> {code:java}
> [[source]]
> name = "pypi"
> url = "https://pypi.org/simple"
> verify_ssl = true
> [dev-packages]
> apache-airflow = "==1.10.3"
> [requires]
> python_version = "3.7"
> {code}
--
This message was sent by Atlassian JIRA
(v7.6.14#76016)