You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@airflow.apache.org by "Siddharth Anand (JIRA)" <ji...@apache.org> on 2017/03/30 01:12:41 UTC

[jira] [Created] (AIRFLOW-1054) Fix broken import on test_dag

Siddharth Anand created AIRFLOW-1054:
----------------------------------------

             Summary: Fix broken import on test_dag
                 Key: AIRFLOW-1054
                 URL: https://issues.apache.org/jira/browse/AIRFLOW-1054
             Project: Apache Airflow
          Issue Type: Bug
    Affects Versions: Airflow 1.8
            Reporter: Siddharth Anand
            Assignee: Siddharth Anand
            Priority: Minor


Fixes the issue below


[2017-03-29 18:08:54,355] [30387] {models.py:271} ERROR - Failed to import: /Users/siddharth/Projects/airflow/dags/test_dag.py
Traceback (most recent call last):
  File "/Users/siddharth/Projects/airflow/airflow/models.py", line 268, in process_file
    m = imp.load_source(mod_name, filepath)
  File "/Users/siddharth/Projects/airflow/dags/test_dag.py", line 27, in <module>
    'start_date': airflow.utils.dates.days_ago(2)
NameError: name 'airflow' is not defined
[2017-03-29 18:08:54,406] [30388] {models.py:172} INFO - Filling up the DagBag from /Users/siddharth/Projects/airflow/dags
[2017-03-29 18:08:54,408] [30388] {models.py:271} ERROR - Failed to import: /Users/siddharth/Projects/airflow/dags/test_dag.py
Traceback (most recent call last):
  File "/Users/siddharth/Projects/airflow/airflow/models.py", line 268, in process_file
    m = imp.load_source(mod_name, filepath)
  File "/Users/siddharth/Projects/airflow/dags/test_dag.py", line 27, in <module>
    'start_date': airflow.utils.dates.days_ago(2)




--
This message was sent by Atlassian JIRA
(v6.3.15#6346)