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

mssql+aioodbc sqlalchemy.exc.NoSuchModuleError: Can't load plugin: sqlalchemy.dialects:mssql.aioodbc #459

Open
biyani701 opened this issue Jun 25, 2024 · 5 comments

Comments

@biyani701
Copy link

While trying to create DB driver with sqlalchemy, i am getting below error

sqlalchemy.exc.NoSuchModuleError: Can't load plugin: sqlalchemy.dialects:mssql.aioodbc

I am running on windows 11 and python 3.9.10
aioodbc version 0.5.0

Please suggest how to fix this error

@biyani701
Copy link
Author

SQLAlchemy Version is 2.0.19

@gordthompson
Copy link

pip install aioodbc

@biyani701
Copy link
Author

The issue was resolved after i upgraded sqlalchemy to latest version (2.0.31). is there any minimum required version for aioodbc?

@gordthompson
Copy link

is there any minimum required version for aioodbc?

2.0.23

@danrayson
Copy link

I had a similar error. Turned out my dialectic was wrong. I was using aiosqlite when it should have been aioodbc (obviously).

Now my connection string looks more like: DATABASE_URL=mssql+aioodbc:

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

No branches or pull requests

3 participants