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] [Comment Edited] (AIRFLOW-80) `airflow initdb` fails for new environment
Date Mon, 09 May 2016 18:42:12 GMT

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

Siddharth Anand edited comment on AIRFLOW-80 at 5/9/16 6:41 PM:
----------------------------------------------------------------

The better workaround is to move this example to *airflow/contrib/example_dags*

Anytime we hit an example like this, a workaround won't suffice. 


was (Author: sanand):
The better workaround is to move this example to *airflow/contrib/example_dags*


> `airflow initdb` fails for new environment
> ------------------------------------------
>
>                 Key: AIRFLOW-80
>                 URL: https://issues.apache.org/jira/browse/AIRFLOW-80
>             Project: Apache Airflow
>          Issue Type: Bug
>            Reporter: Stephen Cattaneo
>
> I just created a new dev env with "setup.py develop "
> {code}
> (airflow)[scattaneo@scattaneo-mba ~/workspace/airflow]$ airflow initdb
> [2016-05-09 11:25:52,576] {__init__.py:36} INFO - Using executor SequentialExecutor
> DB: sqlite:////Users/scattaneo/airflow/airflow.db
> [2016-05-09 11:25:53,770] {db.py:222} INFO - Creating tables
> INFO  [alembic.runtime.migration] Context impl SQLiteImpl.
> INFO  [alembic.runtime.migration] Will assume non-transactional DDL.
> ERROR [airflow.models.DagBag] Failed to import: /Users/scattaneo/workspace/airflow/incubator-airflow/airflow/example_dags/example_twitter_dag.py
> Traceback (most recent call last):
>   File "/Users/scattaneo/workspace/airflow/incubator-airflow/airflow/models.py", line
250, in process_file
>     m = imp.load_source(mod_name, filepath)
>   File "/Users/scattaneo/workspace/airflow/incubator-airflow/airflow/example_dags/example_twitter_dag.py",
line 26, in <module>
>     from airflow.operators import BashOperator, HiveOperator, PythonOperator
> ImportError: cannot import name HiveOperator
> Done.
> {code}



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Mime
View raw message