I have a file survey_monkey.py and a directory surveymonkey in the dag folder. There is a python script named surveys.py in the directory surveymonkey.
from surveys import Surveys
# defining DAG arguments
# You can override them on a per-task basis during operator initialization
default_args = {
'owner': 'survey_monkey',
'start_date': days_ago(0),
'email': ['[email protected]'],
'email_on_failure': False,
'email_on_retry': False,
'retries': 1,
'retry_delay': timedelta(minutes=5),
}
This givs me an error saying
Broken DAG: [/home/ubuntu/airflow/dags/survey_tools/survey_monkey.py] Traceback (most recent call last):
File "<frozen importlib._bootstrap>", line 219, in _call_with_frames_removed
File "/home/ubuntu/airflow/dags/survey_tools/survey_monkey.py", line 11, in <module>
from surveys import Surveys
ModuleNotFoundError: No module named 'surveys'
How can I fix it?