aio-libs / aio-libs/aiopg

Failing import with newer version of sqlalchemy

Open
#734 1 comment 0 reactions 0 assignees View on GitHub
Dominant language
Python
Stars
1.4k
Forks
170
PR merge metrics
No merged PRs in 30d

Description

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

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.