Skip to content

DeprecationWarning: The loop argument is deprecated since Python 3.8, and scheduled for removal in Python 3.10. #730

Open
@rollcat

Description

@rollcat
  • asyncpg version: 0.22.0
  • PostgreSQL version: local postgres:13-alpine via Docker
  • Python version: 3.9.1
  • Platform: macOS 11.2.3; Linux 4.19.121 (via Docker Desktop for Mac)
  • Do you use pgbouncer?: no
  • Did you install asyncpg with pip?: via poetry

The following warning is produced when running a simple CRUD example from SQLAlchemy's docs:

  /usr/local/lib/venv/someproject-asdfqwer-py3.9/lib/python3.9/site-packages/asyncpg/connect_utils.py:544: DeprecationWarning: The loop argument is deprecated since Python 3.8, and scheduled for removal in Python 3.10.
    tr, pr = await loop.create_connection(

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