How to fix breaking changes in MWAA 2.7.2

296 Views Asked by At

I created a new MWAA environment using v2.7.2 All my DAGs which were working fine in v2.6.3 are broken now.

from airflow.providers.slack.operators.slack_webhook import SlackWebhookOperator ModuleNotFoundError: No module named 'airflow.providers.slack'

I have updated my requirements file for this new environment, saw this in here

--constraint "https://raw.githubusercontent.com/apache/airflow/constraints-2.7.2/constraints-3.11.txt"

apache-airflow-providers-snowflake==5.0.1
apache-airflow-providers-mysql==5.3.1

I expected that would be sufficient. What do I need to change to install airflow.providers.slack correctly?

1

There are 1 best solutions below

3
Pankaj Singh On

The airflow slack provider is missing in your environment. Add below line in requirements.txt

apache-airflow-providers-slack==8.1.0

Full requirements.txt

--constraint "https://raw.githubusercontent.com/apache/airflow/constraints-2.7.2/constraints-3.11.txt"

apache-airflow-providers-snowflake==5.0.1
apache-airflow-providers-mysql==5.3.1
apache-airflow-providers-slack==8.1.0