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

Failing import with newer version of sqlalchemy #734

Open
jachymb opened this issue Sep 26, 2020 · 1 comment
Open

Failing import with newer version of sqlalchemy #734

jachymb opened this issue Sep 26, 2020 · 1 comment

Comments

@jachymb
Copy link

jachymb commented Sep 26, 2020

When I try to call from aiopg.sa import create_engine I get an error like this: ModuleNotFoundError: No module named 'sqlalchemy.sql.ddl'. It is caused by the from sqlalchemy.sql.ddl import DDLElement command in connection.py.

I believe it should do the following instead for newer versions of sqlalchemy:

from sqlalchemy.schema import DDLElement
@jachymb
Copy link
Author

jachymb commented Sep 26, 2020

To clarify, the error occurs with sqlalchemy >= 1.3, but not with sqlalchemy 1.2

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