After upgrading to Airflow 2, I got that error in some DAGs:
ImportError: cannot import name 'BashOperator' from 'airflow.operators'
I resolved by change the import.
from airflow.operators import BashOperator
from airflow.hooks import BashOperator
1.4m articles
1.4m replys
5 comments
57.0k users