Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix import error for dummy operator #39

Merged
merged 1 commit into from
Dec 19, 2018
Merged

Conversation

msumit
Copy link
Contributor

@msumit msumit commented Dec 18, 2018

To fix below error

[2018-12-17 18:20:02,048] {plugins_manager.py:100} ERROR - cannot import name 'DummyOperator'
Traceback (most recent call last):
  File "/Users/sumitm/work/incubator-airflow/airflow/plugins_manager.py", line 89, in <module>
    m = imp.load_source(namespace, filepath)
  File "/Users/sumitm/work/incubator-airflow/venv3/lib/python3.6/imp.py", line 172, in load_source
    module = _load(spec)
  File "<frozen importlib._bootstrap>", line 684, in _load
  File "<frozen importlib._bootstrap>", line 665, in _load_unlocked
  File "<frozen importlib._bootstrap_external>", line 678, in exec_module
  File "<frozen importlib._bootstrap>", line 219, in _call_with_frames_removed
  File "/Users/sumitm/airflow/plugins/prometheus_exporter/tests/dags/dummy_dag.py", line 3, in <module>
    from airflow.operators import DummyOperator
ImportError: cannot import name 'DummyOperator'```

@elephantum
Copy link
Contributor

Interesting that this test is passing. Do you use development Airflow branch?

@elephantum elephantum merged commit d46a031 into epoch8:master Dec 19, 2018
@msumit
Copy link
Contributor Author

msumit commented Dec 20, 2018

@elephantum no it was even failing for me on Airflow 1.8.2 and python 2.7 as well.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants