You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@airflow.apache.org by "Amasa Amos (JIRA)" <ji...@apache.org> on 2016/06/13 19:55:30 UTC

[jira] [Created] (AIRFLOW-237) AttributeError: type object 'TaskInstance' has no attribute 'log'

Amasa Amos created AIRFLOW-237:
----------------------------------

             Summary: 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)