You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@airflow.apache.org by "Chris Riccomini (JIRA)" <ji...@apache.org> on 2017/04/03 20:12:41 UTC
[jira] [Closed] (AIRFLOW-1054) Fix broken import on test_dag
[ https://issues.apache.org/jira/browse/AIRFLOW-1054?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Chris Riccomini closed AIRFLOW-1054.
------------------------------------
Resolution: Fixed
> 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
> Fix For: 1.8.1
>
>
> Fixes the issue below
> {noformat}
> [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)
> {noformat}
--
This message was sent by Atlassian JIRA
(v6.3.15#6346)