Getting Error No module named 'airflow.providers'


After installing astronomer locally using google cloud shell, I deployed couple of DAGs which is already working in prod astronomer cloud, in the local astronomer cloud to make some changes…

But i am getting Broken DAG error
“No module named ‘airflow.providers’”

Even though i have added below libraries to install in requirement.txt


My DockerFile contains below entry


Kindly help me to get rid of this

Try removing apache-airflow[google] and adding apache-airflow-providers-google instead. You should not include an apache-airflow line in requirements.txt, as that is controlled by the version of the image you select in your FROM statement. You should be getting a warning about this from astro cli.