airflow-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Siddharth Anand (JIRA)" <j...@apache.org>
Subject [jira] [Updated] (AIRFLOW-1054) Fix broken import on test_dag
Date Thu, 30 Mar 2017 06:41:41 GMT

     [ https://issues.apache.org/jira/browse/AIRFLOW-1054?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Siddharth Anand updated AIRFLOW-1054:
-------------------------------------
    Description: 
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}


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



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

Mime
View raw message