Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Missing dependency methodtools when using microsoft-mssql==3.8.0 with airflow==2.7.3 #41330

Closed
1 of 2 tasks
rawwar opened this issue Aug 8, 2024 · 1 comment · Fixed by #41392
Closed
1 of 2 tasks

Comments

@rawwar
Copy link
Collaborator

rawwar commented Aug 8, 2024

Apache Airflow version

main (development)

If "Other Airflow 2 version" selected, which one?

No response

What happened?

apache-airflow-providers-microsoft-mssql documentation mentions that it 3.8.0 supports airflow>2.7.0. But, it causes the following import error.

from airflow.providers.microsoft.mssql.hooks.mssql import MsSqlHook
  File "/usr/local/lib/python3.11/site-packages/airflow/providers/microsoft/mssql/hooks/mssql.py", line 26, in <module>
    from methodtools import lru_cache
ModuleNotFoundError: No module named 'methodtools'

What you think should happen instead?

methodtools is not part of the requirements in Airflow 2.7.3. Documentation should be updated for apache-airflow-providers-microsoft-mssql to show the compatible Airflow version.

How to reproduce

Use apache-airflow-providers-microsoft-mssql==3.8.0 along with airflow==2.7.3. Then, try to import from airflow.providers.microsoft.mssql.hooks.mssql import MsSqlHook

Operating System

ubuntu-22.04

Versions of Apache Airflow Providers

No response

Deployment

Astronomer

Deployment details

No response

Anything else?

No response

Are you willing to submit PR?

  • Yes I am willing to submit a PR!

Code of Conduct

@rawwar rawwar added area:core kind:bug This is a clearly a bug needs-triage label for new issues that we didn't triage yet labels Aug 8, 2024
@vatsrahul1001 vatsrahul1001 added good first issue and removed needs-triage label for new issues that we didn't triage yet labels Aug 9, 2024
@vatsrahul1001 vatsrahul1001 self-assigned this Aug 9, 2024
@potiuk
Copy link
Member

potiuk commented Aug 12, 2024

Indeed

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants