airflow-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "ASF subversion and git services (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (AIRFLOW-740) jinja2 2.9 seems incompatible with current airflow
Date Sat, 07 Jan 2017 18:57:58 GMT

    [ https://issues.apache.org/jira/browse/AIRFLOW-740?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15807979#comment-15807979
] 

ASF subversion and git services commented on AIRFLOW-740:
---------------------------------------------------------

Commit 19ed9001b965066b16bd4b6282e64aa6dba846cc in incubator-airflow's branch refs/heads/v1-8-test
from [~bolke]
[ https://git-wip-us.apache.org/repos/asf?p=incubator-airflow.git;h=19ed900 ]

[AIRFLOW-740] Pin jinja2 to < 2.9.0

Jinja2 2.9.1 seems to have a conflict with flask-admin.


> jinja2 2.9 seems incompatible with current airflow
> --------------------------------------------------
>
>                 Key: AIRFLOW-740
>                 URL: https://issues.apache.org/jira/browse/AIRFLOW-740
>             Project: Apache Airflow
>          Issue Type: Bug
>            Reporter: Bolke de Bruin
>
> {code}
> ======================================================================
> ERROR: test_dag_views (tests.WebUiTests)
> ----------------------------------------------------------------------
> Traceback (most recent call last):
>   File "/home/travis/build/apache/incubator-airflow/tests/core.py", line 1423, in test_dag_views
>     '/admin/airflow/graph?dag_id=example_bash_operator')
>   File "/home/travis/build/apache/incubator-airflow/.tox/py27-cdh-airflow_backend_sqlite/lib/python2.7/site-packages/werkzeug/test.py",
line 778, in get
>     return self.open(*args, **kw)
>   File "/home/travis/build/apache/incubator-airflow/.tox/py27-cdh-airflow_backend_sqlite/lib/python2.7/site-packages/flask/testing.py",
line 127, in open
>     follow_redirects=follow_redirects)
>   File "/home/travis/build/apache/incubator-airflow/.tox/py27-cdh-airflow_backend_sqlite/lib/python2.7/site-packages/werkzeug/test.py",
line 751, in open
>     response = self.run_wsgi_app(environ, buffered=buffered)
>   File "/home/travis/build/apache/incubator-airflow/.tox/py27-cdh-airflow_backend_sqlite/lib/python2.7/site-packages/werkzeug/test.py",
line 668, in run_wsgi_app
>     rv = run_wsgi_app(self.application, environ, buffered=buffered)
>   File "/home/travis/build/apache/incubator-airflow/.tox/py27-cdh-airflow_backend_sqlite/lib/python2.7/site-packages/werkzeug/test.py",
line 871, in run_wsgi_app
>     app_rv = app(environ, start_response)
>   File "/home/travis/build/apache/incubator-airflow/.tox/py27-cdh-airflow_backend_sqlite/lib/python2.7/site-packages/flask/app.py",
line 1994, in __call__
>     return self.wsgi_app(environ, start_response)
>   File "/home/travis/build/apache/incubator-airflow/.tox/py27-cdh-airflow_backend_sqlite/lib/python2.7/site-packages/flask/app.py",
line 1985, in wsgi_app
>     response = self.handle_exception(e)
>   File "/home/travis/build/apache/incubator-airflow/.tox/py27-cdh-airflow_backend_sqlite/lib/python2.7/site-packages/flask/app.py",
line 1540, in handle_exception
>     reraise(exc_type, exc_value, tb)
>   File "/home/travis/build/apache/incubator-airflow/.tox/py27-cdh-airflow_backend_sqlite/lib/python2.7/site-packages/flask/app.py",
line 1982, in wsgi_app
>     response = self.full_dispatch_request()
>   File "/home/travis/build/apache/incubator-airflow/.tox/py27-cdh-airflow_backend_sqlite/lib/python2.7/site-packages/flask/app.py",
line 1614, in full_dispatch_request
>     rv = self.handle_user_exception(e)
>   File "/home/travis/build/apache/incubator-airflow/.tox/py27-cdh-airflow_backend_sqlite/lib/python2.7/site-packages/flask/app.py",
line 1517, in handle_user_exception
>     reraise(exc_type, exc_value, tb)
>   File "/home/travis/build/apache/incubator-airflow/.tox/py27-cdh-airflow_backend_sqlite/lib/python2.7/site-packages/flask/app.py",
line 1612, in full_dispatch_request
>     rv = self.dispatch_request()
>   File "/home/travis/build/apache/incubator-airflow/.tox/py27-cdh-airflow_backend_sqlite/lib/python2.7/site-packages/flask/app.py",
line 1598, in dispatch_request
>     return self.view_functions[rule.endpoint](**req.view_args)
>   File "/home/travis/build/apache/incubator-airflow/.tox/py27-cdh-airflow_backend_sqlite/lib/python2.7/site-packages/flask_admin/base.py",
line 69, in inner
>     return self._run_view(f, *args, **kwargs)
>   File "/home/travis/build/apache/incubator-airflow/.tox/py27-cdh-airflow_backend_sqlite/lib/python2.7/site-packages/flask_admin/base.py",
line 368, in _run_view
>     return fn(self, *args, **kwargs)
>   File "/home/travis/build/apache/incubator-airflow/.tox/py27-cdh-airflow_backend_sqlite/lib/python2.7/site-packages/flask_login.py",
line 755, in decorated_view
>     return func(*args, **kwargs)
>   File "/home/travis/build/apache/incubator-airflow/airflow/www/utils.py", line 221,
in view_func
>     return f(*args, **kwargs)
>   File "/home/travis/build/apache/incubator-airflow/airflow/www/utils.py", line 125,
in wrapper
>     return f(*args, **kwargs)
>   File "/home/travis/build/apache/incubator-airflow/airflow/www/views.py", line 1438,
in graph
>     edges=json.dumps(edges, indent=2),)
>   File "/home/travis/build/apache/incubator-airflow/.tox/py27-cdh-airflow_backend_sqlite/lib/python2.7/site-packages/flask_admin/base.py",
line 308, in render
>     return render_template(template, **kwargs)
>   File "/home/travis/build/apache/incubator-airflow/.tox/py27-cdh-airflow_backend_sqlite/lib/python2.7/site-packages/flask/templating.py",
line 134, in render_template
>     context, ctx.app)
>   File "/home/travis/build/apache/incubator-airflow/.tox/py27-cdh-airflow_backend_sqlite/lib/python2.7/site-packages/flask/templating.py",
line 116, in _render
>     rv = template.render(context)
>   File "/home/travis/build/apache/incubator-airflow/.tox/py27-cdh-airflow_backend_sqlite/lib/python2.7/site-packages/jinja2/environment.py",
line 1008, in render
>     return self.environment.handle_exception(exc_info, True)
>   File "/home/travis/build/apache/incubator-airflow/.tox/py27-cdh-airflow_backend_sqlite/lib/python2.7/site-packages/jinja2/environment.py",
line 780, in handle_exception
>     reraise(exc_type, exc_value, tb)
>   File "/home/travis/build/apache/incubator-airflow/airflow/www/templates/airflow/graph.html",
line 19, in top-level template code
>     {% import 'admin/lib.html' as lib with context %}
>   File "/home/travis/build/apache/incubator-airflow/.tox/py27-cdh-airflow_backend_sqlite/lib/python2.7/site-packages/jinja2/environment.py",
line 551, in _compile
>     return compile(source, filename, 'exec')
> SyntaxError: duplicate argument 'l_1_caller' in function definition (lib.html, line 255)
> {code}
> {code}
> change detected (content changed, file is created, or file is deleted):
> /home/travis/.wheelhouse/click-6.7-py2.py3-none-any.whl
> /home/travis/.wheelhouse/hdfs-2.0.15-py2-none-any.whl
> /home/travis/.wheelhouse/Jinja2-2.9.1-py2.py3-none-any.whl
> {code}



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Mime
View raw message