Skip to content

Running README.md example code gives "AttributeError: __aenter__" #90

@dfuhry

Description

@dfuhry

When I (pip) install asyncpg-listen and try to run the example code in the README.md, I get error "AttributeError: __aenter__" at line "async with asyncpg.connect() as connection:".

I'm running the latest asyncpg, 0.25.0, which doesn't support connections as context managers:
MagicStack/asyncpg#583
so I am not sure how you got the example to work as written.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions