This usually has to do with how Airflow is configured.
In airflow.cfg
, make sure the path in airflow_home
is correctly set to the path the Airflow directory strucure is in.
Then Airflow scans all subfolders and populates them so that modules can be found.
Otherwise, just make sure the folder you are trying to import is in the Python path: How to use PYTHONPATH