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

[jira] [Comment Edited] (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:comment-tabpanel&focusedCommentId=16879234#comment-16879234 ] 

Venkadeshwaran K edited comment on AIRFLOW-4902 at 7/5/19 1:55 PM:
-------------------------------------------------------------------

Facing the same issue. 

Not sure about the complete dependencies but hope [https://github.com/apache/airflow/blob/master/setup.py#L343] restricting the flask version below 1.0.4 will at least solve this temporarily. Also noticing Flask==1.0.2 was the latest verified version as per github.


was (Author: venkad):
Facing the same issue. 

Not sure about the complete dependencies but hope [https://github.com/apache/airflow/blob/master/setup.py#L343] restricting the flask version below 1.0.4 will at least solve this temporarily.  

> 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:*
>  
> {code:java}
> pip install apache-airflow[crypto,kubernetes,postgres,hive,jdbc,ssh,s3]==1.10.3 
> {code}
>  
> *Installation output:*
>  
> {code:java}
> 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.
> {code}
>  
> *Command ran:*
>  
> {code:java}
> airflow initdb
> {code}
>  
> *Output:*
>  
> {code:java}
> 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
>  
> {code}
>  
> {{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)