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

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

Commit 68b1c982e048878ec9dd658072c147e4341bf2c2 in incubator-airflow's branch 
refs/heads/v1-8-test from Siddharth Anand
[ https://git-wip-us.apache.org/repos/asf?p=incubator-airflow.git;h=68b1c98 ]

[AIRFLOW-1054] Fix broken import in test_dag

Closes #2201 from
r39132/fix_broken_import_on_test_dag

(cherry picked from commit c64e876bd50eeb6c9e2600ac9d832c05eb5e9640)


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

Reply via email to