0
respostas

ModuleNotFoundError: No module named 'airflow.operators.alura'

A versão do meu airflow é 1.10.14, mas por algum motivo me retorna um erro como se meu airflow fosse o 2.0

O erro que me retorna no webserver é esse:

RROR - Failed to import: /home/giuseppe/datapipeline/airflow/dags/twitter_dag.py
Traceback (most recent call last):
  File "/home/giuseppe/datapipeline/.env/lib/python3.8/site-packages/airflow/models/dagbag.py", line 256, in process_file
    m = imp.load_source(mod_name, filepath)
  File "/usr/lib/python3.8/imp.py", line 171, in load_source
    module = _load(spec)
  File "<frozen importlib._bootstrap>", line 702, in _load
  File "<frozen importlib._bootstrap>", line 671, in _load_unlocked
  File "<frozen importlib._bootstrap_external>", line 848, in exec_module
  File "<frozen importlib._bootstrap>", line 219, in _call_with_frames_removed
  File "/home/giuseppe/datapipeline/airflow/dags/twitter_dag.py", line 4, in <module>
    from airflow.operators.alura import TwitterOperator
ModuleNotFoundError: No module named 'airflow.operators.alura'