iamapez opened a new issue, #59267:
URL: https://github.com/apache/airflow/issues/59267

   **Apache Airflow version**: 3.1.1
   
   **Affected providers**:
   - `apache-airflow-providers-amazon==9.18.0` 
   - `apache-airflow-providers-common-compat==1.10.0`
   
   **What happened**:
   
   Amazon provider 9.18.0 fails on import with:
   ```
   ImportError: cannot import name 'AirflowException' from 
'airflow.providers.common.compat.sdk'
   ```
   
   The problem is in 
`providers/amazon/src/airflow/providers/amazon/aws/exceptions.py:20`:
   ```python
   from airflow.providers.common.compat.sdk import AirflowException
   ```
   
   This import doesn't exist in any released version of common-compat.
   
   **Timeline**:
   - Nov 30: common-compat 1.10.0 released (latest on PyPI) - doesn't export 
AirflowException in sdk.py
   - Dec 2: amazon provider 9.18.0 released - tries to import AirflowException 
from sdk.py
   - Dec 8: Commit bfb99f5f adds AirflowException to sdk.py (main branch only, 
unreleased)
   
   **The issue**: 
   Amazon provider 9.18.0 was released expecting a feature that didn't exist in 
any released version at the time, and still doesn't exist in the latest PyPI 
release.
   
   **How to reproduce**:
   ```bash
   pip install apache-airflow==3.1.1
   pip install apache-airflow-providers-amazon==9.18.0  # Uses common-compat 
1.10.0
   airflow version  # Crashes with ImportError
   ```
   
   **Workaround**:
   ```bash
   pip install 
git+https://github.com/apache/airflow.git@main#subdirectory=providers/common/compat
   ```
   
   **Fix needed**:
   Release common-compat 1.11.0 (or 1.10.1) that includes the Dec 8 commit with 
AirflowException support.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to