airflow-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Msr Msr <>
Subject ImportError: cannot import name MySqlOperator
Date Mon, 20 Jun 2016 00:28:54 GMT

I have installed Airflow on Mac and trying to use  MySqlOperator.

It is giving below error message.


mms-MacBook-Pro:~ mm$ airflow initdb

[2016-06-19 17:21:06,794] {} INFO - Using executor

DB: sqlite:////Users/mm/airflow/airflow.db

[2016-06-19 17:21:07,345] {} 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:

Traceback (most recent call last):

  File "/Users/mm/anaconda/lib/python2.7/site-packages/airflow/",
line 247, in process_file

    m = imp.load_source(mod_name, filepath)

  File "/Users/mm/airflow/dags/", line 4, in <module>

    from airflow.operators import MySqlOperator

ImportError: cannot import name MySqlOperator


pip install airflow[mysql] always gives Requirements met

Could someone please suggest what could be the reason for this error and
how to resolve it



  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message