G

Untitled

public
Guest Jan 17, 2025 Never 8
Clone
Plaintext paste1.txt 42 lines (41 loc) | 2.77 KB
1
What are DAGs and how to overcome the following errors?
2
3
error DAG Import Errors (6)expand_less
4
expand_moreBroken DAG: [/opt/airflow/dags/repo/tutorial_taskflow_templates.py]
5
Traceback (most recent call last):
6
File "<frozen importlib._bootstrap>", line 488, in _call_with_frames_removed
7
File "/opt/airflow/dags/repo/tutorial_taskflow_templates.py", line 25, in <module>
8
from airflow.providers.standard.operators.python import get_current_context
9
ModuleNotFoundError: No module named 'airflow.providers.standard'
10
expand_moreBroken DAG: [/opt/airflow/dags/repo/tutorial_taskflow_api_virtualenv.py]
11
Traceback (most recent call last):
12
File "/home/airflow/.local/lib/python3.12/site-packages/airflow/models/baseoperator.py", line 485, in apply_defaults
13
result = func(self, **kwargs, default_args=default_args)
14
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
15
File "/home/airflow/.local/lib/python3.12/site-packages/airflow/models/baseoperator.py", line 882, in __init__
16
raise AirflowException(
17
airflow.exceptions.AirflowException: Invalid arguments were passed to _PythonVirtualenvDecoratedOperator (task_id: extract). Invalid arguments were:
18
**kwargs: {'serializer': 'dill'}
19
expand_moreBroken DAG: [/opt/airflow/dags/repo/tutorial.py]
20
Traceback (most recent call last):
21
File "<frozen importlib._bootstrap>", line 488, in _call_with_frames_removed
22
File "/opt/airflow/dags/repo/tutorial.py", line 35, in <module>
23
from airflow.providers.standard.operators.bash import BashOperator
24
ModuleNotFoundError: No module named 'airflow.providers.standard'
25
expand_moreBroken DAG: [/opt/airflow/dags/repo/tutorial_dag.py]
26
Traceback (most recent call last):
27
File "<frozen importlib._bootstrap>", line 488, in _call_with_frames_removed
28
File "/opt/airflow/dags/repo/tutorial_dag.py", line 36, in <module>
29
from airflow.providers.standard.operators.python import PythonOperator
30
ModuleNotFoundError: No module named 'airflow.providers.standard'
31
expand_moreBroken DAG: [/opt/airflow/dags/repo/example_dag_hello_kafka.py]
32
Traceback (most recent call last):
33
File "<frozen importlib._bootstrap>", line 488, in _call_with_frames_removed
34
File "/opt/airflow/dags/repo/example_dag_hello_kafka.py", line 31, in <module>
35
from airflow.providers.standard.operators.python import PythonOperator
36
ModuleNotFoundError: No module named 'airflow.providers.standard'
37
expand_moreBroken DAG: [/opt/airflow/dags/repo/example_dag_event_listener.py]
38
Traceback (most recent call last):
39
File "<frozen importlib._bootstrap>", line 488, in _call_with_frames_removed
40
File "/opt/airflow/dags/repo/example_dag_event_listener.py", line 34, in <module>
41
from airflow.providers.standard.operators.python import PythonOperator
42
ModuleNotFoundError: No module named 'airflow.providers.standard'