aio-libs / aio-libs/aiopg

Failing import with newer version of sqlalchemy

未關閉
#734 1 則留言 0 個 reaction 已指派 0 人 在 GitHub 檢視
主要語言
Python
星號
1.4k
分支
170
PR 合併指標
30 天內沒有已合併 PR

描述

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

貢獻指南

開啟貢獻指南

研究方向

Start in connection.py at the import of DDLElement and reproduce the reported create_engine import with the newer SQLAlchemy version. Compare the available import path with the issue's proposed path, then verify that `from aiopg.sa import create_engine` succeeds without ModuleNotFoundError.

由索引模型根據 Issue 內容生成。

評估

技術堆疊
postgresql, python, sqlalchemy
領域
databases
Issue 類型
缺陷
難度
1/5
預估耗時
1 小時以內
活躍度
停滯
描述清晰度
描述清楚
新手友好度
45/100

把新 issue 寄到你的電子郵件信箱

精選適合新手參與的 GitHub issue 摘要。