airflow-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "dud (JIRA)" <j...@apache.org>
Subject [jira] [Created] (AIRFLOW-1565) Incompatibility with Flask-Login-0.4.0
Date Tue, 05 Sep 2017 14:59:00 GMT
dud created AIRFLOW-1565:
----------------------------

             Summary: Incompatibility with Flask-Login-0.4.0
                 Key: AIRFLOW-1565
                 URL: https://issues.apache.org/jira/browse/AIRFLOW-1565
             Project: Apache Airflow
          Issue Type: Bug
    Affects Versions: 1.8.2
            Reporter: dud
            Priority: Minor


Hello

I've notice that Airflow v1.8.2 isn't playing well with flask_login v0.4.0 :
{code}
$ pip install --user flask_login==0.4.0
Collecting flask_login==0.4.0
  Using cached Flask_Login-0.4.0-py2.py3-none-any.whl
Requirement already satisfied: Flask in ./.local/lib/python2.7/site-packages (from flask_login==0.4.0)
Requirement already satisfied: itsdangerous>=0.21 in ./.local/lib/python2.7/site-packages
(from Flask->flask_login==0.4.0)
Requirement already satisfied: Jinja2>=2.4 in ./.local/lib/python2.7/site-packages (from
Flask->flask_login==0.4.0)
Requirement already satisfied: Werkzeug>=0.7 in ./.local/lib/python2.7/site-packages (from
Flask->flask_login==0.4.0)
Requirement already satisfied: click>=2.0 in ./.local/lib/python2.7/site-packages (from
Flask->flask_login==0.4.0)
Requirement already satisfied: MarkupSafe>=0.23 in ./.local/lib/python2.7/site-packages
(from Jinja2>=2.4->Flask->flask_login==0.4.0)
Installing collected packages: flask-login
  Found existing installation: Flask-Login 0.3.2
    Uninstalling Flask-Login-0.3.2:
      Successfully uninstalled Flask-Login-0.3.2
Successfully installed flask-login-0.4.0

$ airflow webserver
[2017-09-05 14:30:50,130] {dag_processing.py:627} INFO - Started a process (PID: 22751) to
generate tasks for /home/airflow/dags/metadsp/APB_process_table/airflow.py - logging into
/var/log/airflow/scheduler/2017-09-05
[2017-09-05 14:30:50,133] {dag_processing.py:627} INFO - Started a process (PID: 22752) to
generate tasks for /home/airflow/dags/metadsp/APN_segment_manager/segment_manager_factory.py
- logging into /var/log/airflow/sc
[2017-09-05 14:30:50,134] {jobs.py:1443} INFO - Heartbeating the executor
2017-09-05 14:30:50,192] {__init__.py:57} INFO - Using executor CeleryExecutor
[2017-09-05 14:30:50,252] {driver.py:120} INFO - Generating grammar tables from /usr/lib/python2.7/lib2to3/Grammar.txt
[2017-09-05 14:30:50,273] {driver.py:120} INFO - Generating grammar tables from /usr/lib/python2.7/lib2to3/PatternGrammar.txt
/home/airflow/.local/lib/python2.7/site-packages/airflow/www/app.py:23: FlaskWTFDeprecationWarning:
"flask_wtf.CsrfProtect" has been renamed to "CSRFProtect" and will be removed in 1.0.
csrf = CsrfProtect()
/home/airflow/.local/lib/python2.7/site-packages/flask_cache/jinja2ext.py:33: ExtDeprecationWarning:
Importing flask.ext.cache is deprecated, use flask_cache instead.
from flask.ext.cache import make_template_fragment_key
____________       _____________
____    |__( )_________  __/__  /________      __
____  /| |_  /__  ___/_  /_ __  /_  __ \_ | /| / /
___  ___ |  / _  /   _  __/ _  / / /_/ /_ |/ |/ /
_/_/  |_/_/  /_/    /_/    /_/  \____/____/|__/
Traceback (most recent call last):
File "/home/airflow/bin/airflow", line 28, in <module>
args.func(args)
File "/home/airflow/.local/lib/python2.7/site-packages/airflow/bin/cli.py", line 734, in webserver
app = cached_app(conf)
File "/home/airflow/.local/lib/python2.7/site-packages/airflow/www/app.py", line 161, in cached_app
app = create_app(config)
File "/home/airflow/.local/lib/python2.7/site-packages/airflow/www/app.py", line 60, in create_app
from airflow.www import views
File "/home/airflow/.local/lib/python2.7/site-packages/airflow/www/views.py", line 41, in
<module>
from flask_login import flash
ImportError: cannot import name flash


$ python -c "from flask_login import flash"
Traceback (most recent call last):
  File "<string>", line 1, in <module>
ImportError: cannot import name flash
{code}

Downgrading to flask_login==0.3.2 fixes the issue.

dud



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)

Mime
View raw message