morgan-dgk opened a new issue, #52502:
URL: https://github.com/apache/airflow/issues/52502

   ### Apache Airflow Provider(s)
   
   microsoft-mssql
   
   ### Versions of Apache Airflow Providers
   
   apache-airflow-providers-microsoft-mssql==4.2.0
   
   
   ### Apache Airflow version
   
   2.9.3
   
   ### Operating System
   
   macOS Sequoia 15.5
   
   ### Deployment
   
   Google Cloud Composer
   
   ### Deployment details
   
   Issue occurred during local testing.
   
   ### What happened
   
   The dependencies for apache-airflow-providers-microsoft-mssql 4.2.0 appear 
to be incorrectly specified. The docs list the dependencies as:
   
   
   PIP package | Version required
   -- | --
   apache-airflow | >=2.9.0
   apache-airflow-providers-common-sql | >=1.20.0
   pymssql | >=2.3.0
   methodtools | >=0.4.7
   
   However, `apache-airflow-providers-common-sql` 1.20.0 does not appear to 
provide the dialects module. This results in `ModuleNotFoundErrors`
   
   ```
   
.venv/lib/python3.11/site-packages/airflow/providers/microsoft/mssql/dialects/mssql.py",
 line 21, in <module>
   from airflow.providers.common.sql.dialects.dialect import Dialect
   ModuleNotFoundError: No module named 'airflow.providers.common.sql.dialects'
   ```
   Though `apache-airflow-providers-microsoft-mssql` 4.0.0 lists the same 
version constraint for `apache-airflow-providers-common-sql`, manually 
downgrading to this version resolves ModuleImport errors related to the common 
sql provider.
   
   ### What you think should happen instead
   
   The correct version of the `apache-airflow-providers-common-sql` package 
should be specified for `apache-airflow-providers-microsoft-mssql` 4.2.0.
   
   ### How to reproduce
   
   I use poetry for dependency management / resolution. 
   
   Possible to recreate via `pip install apache-airflow-providers-common-sql == 
1.20.0 apache-airflow-providers-microsoft-mssql == 4.2.0`.
   
   
   
   ### Anything else
   
   Consistently occurs when `apache-airflow-providers-common-sql` = 1.20.0 and 
`apache-airflow-providers-microsoft-mssql` = 4.2.0.
   
   ### Are you willing to submit PR?
   
   - [x] Yes I am willing to submit a PR!
   
   ### Code of Conduct
   
   - [x] I agree to follow this project's [Code of 
Conduct](https://github.com/apache/airflow/blob/main/CODE_OF_CONDUCT.md)
   


-- 
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