Getting Error No module named 'airflow.providers'

HI,

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

apache-airflow[google]
apache-airflow-providers-http
apache-airflow-providers-jdbc

My DockerFile contains below entry

FROM quay.io/astronomer/ap-airflow:2.1.0-buster-onbuild

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.