I am new to Airflow, and I am trying to create a Python pipeline scheduling automation process. My project youtubecollection01 utilizes custom created modules, so when I run the DAG it fails with ModuleNotFoundError: No module named 'Authentication'.
This is how my project is structured:
This is my dag file:
# This to intialize the file as a dag file from airflow import DAG from datetime import datetime, timedelta from airflow.operators.python import PythonOperator # from airflow.utils.dates import days_ago from youtubecollectiontier01.src.__main__ import main default_args = { 'owner': 'airflow', 'depends_on_past': False, # 'start_date': days_ago(1), 'email': ['[email protected]'], 'email_on_failure': False, 'email_on_retry': False, 'retries': 1, 'retry_delay': timedelta(minutes=5), # 'priority_weight': 10, # 'end_date': datetime(2016, 1, 1), } # curate dag with DAG('collect_layer_01', start_date=datetime(2022,7,25), schedule_interval='@daily', catchup=False, default_args=default_args) as dag: curate = PythonOperator( task_id='collect_tier_01', # name for the task you would like to execute python_callable=main, # the name of your python function provide_context=True, dag=dag) I am importing main function from the __main__.py, however inside the main I am importing other classes such as Authentication.py, ChannelClass.py, Common.py and that's where Airflow is not recognizing.
Why it is failing for the imports, is it a directory issue or an Airflow issue? I tried moving the project under plugins and run it, but it did not work, any feedback would be highly appreciated!
Thank you!

