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

Since 2.0 sqlalchemy doesn't support py-postgresql. Unavailable to use library: ImportError #116

Open
mixa2130 opened this issue Apr 22, 2023 · 0 comments

Comments

@mixa2130
Copy link

Hello! Today I've installed asyncpgsa==0.27.1 which in turn installed asyncpg==0.27.0
In project I have sqlalchemy==2.0.9
When I'm doing basic import asyncpgsa
get error

Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/home/gree/PycharmProjects/web_api/venv/lib/python3.10/site-packages/asyncpgsa/__init__.py", line 1, in <module>

    from .pool import create_pool
  File "/home/gree/PycharmProjects/web_api/venv/lib/python3.10/site-packages/asyncpgsa/pool.py", line 6, in <module>

    from .connection import SAConnection as _SAConnection
  File "/home/gree/PycharmProjects/web_api/venv/lib/python3.10/site-packages/asyncpgsa/connection.py", line 3, in <module>

    from sqlalchemy.dialects.postgresql import pypostgresql
ImportError: cannot import name 'pypostgresql' from 'sqlalchemy.dialects.postgresql'

According sqlalchemy 2.0 docs pypostgresql dialecrt is no longer supported and was deleted

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

1 participant