Error on application startup after adding pg_context to main.py #7453
Replies: 1 comment
-
I'd recommend just replacing aiopg with sqlalchemy 2. There's some in-progress work on updating the tutorials in aio-libs/aiohttp-demos#428 |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hello, I make polls application from docs. Version of PostgreSQL is 15. Using poetry here are my dependencies from
pyproject.toml
:main.py:
db.py
If I remove
app.cleanup_ctx.append(pg_context)
frommain.py
server runs successfully. But when I try to run serverpython main.py
I got such error (see below): What problem can it be?From traceback: it says exception occurs when I do this
engine = await aiopg.sa.create_engine(...
in db.py.Beta Was this translation helpful? Give feedback.
All reactions