airflow-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Chris Riccomini (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (AIRFLOW-237) AttributeError: type object 'TaskInstance' has no attribute 'log'
Date Tue, 14 Jun 2016 04:07:57 GMT

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

Chris Riccomini commented on AIRFLOW-237:
-----------------------------------------

This error seems to be popping up in PRs:

https://github.com/apache/incubator-airflow/pull/1587

That PR's test failed with the same error.

> AttributeError: type object 'TaskInstance' has no attribute 'log'
> -----------------------------------------------------------------
>
>                 Key: AIRFLOW-237
>                 URL: https://issues.apache.org/jira/browse/AIRFLOW-237
>             Project: Apache Airflow
>          Issue Type: Bug
>          Components: webserver
>    Affects Versions: Airflow 1.7.1, Airflow 1.7.0, Airflow 1.7.1.2
>            Reporter: Amasa Amos
>            Priority: Critical
>
> After following the "Quick Start" instructions found at `http://pythonhosted.org/airflow/start.html`,
executing the command `airflow webserver -p 8080` results in the following error:
> ```
> [2016-06-13 19:13:33,536] {__init__.py:36} INFO - Using executor SequentialExecutor
> [2016-06-13 19:13:33,649] {driver.py:120} INFO - Generating grammar tables from /usr/lib/python2.7/lib2to3/Grammar.txt
> [2016-06-13 19:13:33,669] {driver.py:120} INFO - Generating grammar tables from /usr/lib/python2.7/lib2to3/PatternGrammar.txt
>   ____________       _____________
>  ____    |__( )_________  __/__  /________      __
> ____  /| |_  /__  ___/_  /_ __  /_  __ \_ | /| / /
> ___  ___ |  / _  /   _  __/ _  / / /_/ /_ |/ |/ /
>  _/_/  |_/_/  /_/    /_/    /_/  \____/____/|__/
> [2016-06-13 19:13:33,875] {models.py:154} INFO - Filling up the DagBag from /home/vagrant/airflow/dags
> Traceback (most recent call last):
>   File "/usr/local/bin/airflow", line 15, in <module>
>     args.func(args)
>   File "/usr/local/lib/python2.7/dist-packages/airflow/bin/cli.py", line 393, in webserver
>     app = cached_app(conf)
>   File "/usr/local/lib/python2.7/dist-packages/airflow/www/app.py", line 133, in cached_app
>     app = create_app(config)
>   File "/usr/local/lib/python2.7/dist-packages/airflow/www/app.py", line 75, in create_app
>     Session, name="Task Instances", category="Browse"))
>   File "/usr/local/lib/python2.7/dist-packages/flask_admin/contrib/sqla/view.py", line
318, in __init__
>     menu_icon_value=menu_icon_value)
>   File "/usr/local/lib/python2.7/dist-packages/flask_admin/model/base.py", line 771,
in __init__
>     self._refresh_cache()
>   File "/usr/local/lib/python2.7/dist-packages/flask_admin/model/base.py", line 847,
in _refresh_cache
>     self._list_columns = self.get_list_columns()
>   File "/usr/local/lib/python2.7/dist-packages/flask_admin/model/base.py", line 980,
in get_list_columns
>     excluded_columns=self.column_exclude_list,
>   File "/usr/local/lib/python2.7/dist-packages/flask_admin/contrib/sqla/view.py", line
517, in get_column_names
>     column, path = tools.get_field_with_path(self.model, c)
>   File "/usr/local/lib/python2.7/dist-packages/flask_admin/contrib/sqla/tools.py", line
144, in get_field_with_path
>     value = getattr(current_model, attribute)
> AttributeError: type object 'TaskInstance' has no attribute 'log'
> ```



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

Mime
View raw message