I want to show my python code in sphinx, however when I run "make html" it shows some errors. The main file name is Compliance_modular.py and the error is the next one:
WARNING: autodoc: failed to import module 'Compliance_modular'; the following exception was
raised:
No module named 'airflow'
It is because I am using a file which depend on other files at the beginning I don't know how to include or omit those missing modules.
from airflow import DAG
from airflow.operators.dummy_operator import DummyOperator
from airflow.operators.python_operator import PythonOperator
from airflow.operators.email_operator import EmailOperator