본문 바로가기

개발중/AirFlow

[Airflow] example_datasets.py 에러

728x90
반응형

ERROR

Broken DAG: [/opt/airflow/airflow_env_38/lib/python3.8/site-packages/airflow/example_dags/example_datasets.py] Traceback (most recent call last): File "/opt/airflow/airflow_env_38/lib/python3.8/site-packages/airflow/example_dags/example_datasets.py", line 60, in <module> from airflow.timetables.datasets import DatasetOrTimeSchedule File "/opt/airflow/airflow_env_38/lib/python3.8/site-packages/airflow/timetables/datasets.py", line 22, in <module> from airflow.datasets import BaseDataset, DatasetAll ImportError: cannot import name 'BaseDataset' from 'airflow.datasets' (/opt/airflow/airflow_env_38/lib/python3.8/site-packages/airflow/datasets/__init__.py)

 

 

난 이렇게 해결했는데, 아 어렵다.

pip uninstall apache-airflow
pip install apache-airflow

 

그냥 리셋 시킨거지 근본적인 문제를 해결한건 아닌 듯,

airflow db init
728x90
반응형