You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@airflow.apache.org by "Catarina Silva (JIRA)" <ji...@apache.org> on 2019/07/05 12:55:00 UTC

[jira] [Updated] (AIRFLOW-4902) Flask 1.1.0 release breaks airflow 1.10.3

     [ https://issues.apache.org/jira/browse/AIRFLOW-4902?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Catarina Silva updated AIRFLOW-4902:
------------------------------------
    Description: 
When setting up an environment by installing airflow 1.10.3, the new version of flask breaks airflow:

 

*Command ran:*

{{pip install apache-airflow[crypto,kubernetes,postgres,hive,jdbc,ssh,s3]==1.10.3}}

 

*Installation output:*

{{ERROR: apache-airflow 1.10.3 has requirement jinja2<=2.10.0,>=2.7.3, but you'll have jinja2 2.10.1 which is incompatible.}}
 {{ERROR: apache-airflow 1.10.3 has requirement werkzeug<0.15.0,>=0.14.1, but you'll have werkzeug 0.15.4 which is incompatible.}}

 

*Command ran:*

{{airflow initdb}}

 

*Output:*

{{Traceback (most recent call last):}}
 \{{ File "/.Envs/airflow3/bin/airflow", line 21, in <module>}}
 \{{ from airflow import configuration}}
 {{ File "/.Envs/airflow3/lib/python3.6/site-packages/airflow/__init__.py", line 40, in <module>}}
 \{{ from flask_admin import BaseView}}
 {{ File "/.Envs/airflow3/lib/python3.6/site-packages/flask_admin/__init__.py", line 6, in <module>}}
 \{{ from .base import expose, expose_plugview, Admin, BaseView, AdminIndexView # noqa: F401}}
 \{{ File "/.Envs/airflow3/lib/python3.6/site-packages/flask_admin/base.py", line 6, in <module>}}
 \{{ from flask import Blueprint, current_app, render_template, abort, g, url_for}}
 {{ File ".Envs/airflow3/lib/python3.6/site-packages/flask/__init__.py", line 20, in <module>}}
 \{{ from .app import Flask}}
 \{{ File ".Envs/airflow3/lib/python3.6/site-packages/flask/app.py", line 69, in <module>}}
 \{{ from .wrappers import Request}}
 \{{ File ".Envs/airflow3/lib/python3.6/site-packages/flask/wrappers.py", line 14, in <module>}}
 \{{ from werkzeug.wrappers.json import JSONMixin as _JSONMixin}}
 {{ModuleNotFoundError: No module named 'werkzeug.wrappers.json'; 'werkzeug.wrappers' is not a package}}

 

{{After forcing flask to 1.0.4 the command "airflow initdb" works. I believe removing the restriction of werkzeug version might solve this problem, since the error at installation seems to point to that}}

 

*NOTE*: not sure which priority to assign to this, added major since it breaks without explicitly adding the flask version

 

  was:
When setting up an environment by installing airflow 1.10.3, the new version of flask breaks airflow:

 

*Command ran:*

{{pip install apache-airflow[crypto,kubernetes,postgres,hive,jdbc,ssh,s3]==1.10.3}}

 

*Installation output:*

{{ERROR: apache-airflow 1.10.3 has requirement jinja2<=2.10.0,>=2.7.3, but you'll have jinja2 2.10.1 which is incompatible.}}
{{ERROR: apache-airflow 1.10.3 has requirement werkzeug<0.15.0,>=0.14.1, but you'll have werkzeug 0.15.4 which is incompatible.}}

 

*Command ran:*

{{airflow initdb}}

 

*Output:*

{{Traceback (most recent call last):}}
{{ File "/.Envs/airflow3/bin/airflow", line 21, in <module>}}
{{ from airflow import configuration}}
{{ File "/.Envs/airflow3/lib/python3.6/site-packages/airflow/__init__.py", line 40, in <module>}}
{{ from flask_admin import BaseView}}
{{ File "/.Envs/airflow3/lib/python3.6/site-packages/flask_admin/__init__.py", line 6, in <module>}}
{{ from .base import expose, expose_plugview, Admin, BaseView, AdminIndexView # noqa: F401}}
{{ File "/.Envs/airflow3/lib/python3.6/site-packages/flask_admin/base.py", line 6, in <module>}}
{{ from flask import Blueprint, current_app, render_template, abort, g, url_for}}
{{ File ".Envs/airflow3/lib/python3.6/site-packages/flask/__init__.py", line 20, in <module>}}
{{ from .app import Flask}}
{{ File ".Envs/airflow3/lib/python3.6/site-packages/flask/app.py", line 69, in <module>}}
{{ from .wrappers import Request}}
{{ File ".Envs/airflow3/lib/python3.6/site-packages/flask/wrappers.py", line 14, in <module>}}
{{ from werkzeug.wrappers.json import JSONMixin as _JSONMixin}}
{{ModuleNotFoundError: No module named 'werkzeug.wrappers.json'; 'werkzeug.wrappers' is not a package}}

 

{{After forcing flask to 1.0.4 the command "airflow initdb" works. I believe removing the restriction of werkzeug version might solve this problem, since the warning at installation seems to point to that}}

 

note: not sure which priority to assign to this, added major since it breaks without explicitly adding the flask version

 


> Flask 1.1.0 release breaks airflow 1.10.3
> -----------------------------------------
>
>                 Key: AIRFLOW-4902
>                 URL: https://issues.apache.org/jira/browse/AIRFLOW-4902
>             Project: Apache Airflow
>          Issue Type: Bug
>          Components: cli
>    Affects Versions: 1.10.3
>            Reporter: Catarina Silva
>            Priority: Major
>
> When setting up an environment by installing airflow 1.10.3, the new version of flask breaks airflow:
>  
> *Command ran:*
> {{pip install apache-airflow[crypto,kubernetes,postgres,hive,jdbc,ssh,s3]==1.10.3}}
>  
> *Installation output:*
> {{ERROR: apache-airflow 1.10.3 has requirement jinja2<=2.10.0,>=2.7.3, but you'll have jinja2 2.10.1 which is incompatible.}}
>  {{ERROR: apache-airflow 1.10.3 has requirement werkzeug<0.15.0,>=0.14.1, but you'll have werkzeug 0.15.4 which is incompatible.}}
>  
> *Command ran:*
> {{airflow initdb}}
>  
> *Output:*
> {{Traceback (most recent call last):}}
>  \{{ File "/.Envs/airflow3/bin/airflow", line 21, in <module>}}
>  \{{ from airflow import configuration}}
>  {{ File "/.Envs/airflow3/lib/python3.6/site-packages/airflow/__init__.py", line 40, in <module>}}
>  \{{ from flask_admin import BaseView}}
>  {{ File "/.Envs/airflow3/lib/python3.6/site-packages/flask_admin/__init__.py", line 6, in <module>}}
>  \{{ from .base import expose, expose_plugview, Admin, BaseView, AdminIndexView # noqa: F401}}
>  \{{ File "/.Envs/airflow3/lib/python3.6/site-packages/flask_admin/base.py", line 6, in <module>}}
>  \{{ from flask import Blueprint, current_app, render_template, abort, g, url_for}}
>  {{ File ".Envs/airflow3/lib/python3.6/site-packages/flask/__init__.py", line 20, in <module>}}
>  \{{ from .app import Flask}}
>  \{{ File ".Envs/airflow3/lib/python3.6/site-packages/flask/app.py", line 69, in <module>}}
>  \{{ from .wrappers import Request}}
>  \{{ File ".Envs/airflow3/lib/python3.6/site-packages/flask/wrappers.py", line 14, in <module>}}
>  \{{ from werkzeug.wrappers.json import JSONMixin as _JSONMixin}}
>  {{ModuleNotFoundError: No module named 'werkzeug.wrappers.json'; 'werkzeug.wrappers' is not a package}}
>  
> {{After forcing flask to 1.0.4 the command "airflow initdb" works. I believe removing the restriction of werkzeug version might solve this problem, since the error at installation seems to point to that}}
>  
> *NOTE*: not sure which priority to assign to this, added major since it breaks without explicitly adding the flask version
>  



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)