python-gino / gino

GINO Is Not ORM - a Python asyncio ORM on SQLAlchemy core.
https://python-gino.org/
Other
2.67k stars 150 forks source link

Gino 1.1b2 doesn't work on Python 3.10.2 and aiomysql #809

Open vicctorb2 opened 2 years ago

vicctorb2 commented 2 years ago

Gino 1.1b2 doesn't work on Python 3.10.2 and aiomysql

To Reproduce

from gino_starlette import Gino
DATABASE_URL = f"mysql+aiomysql://{DATABASE_USER}:{DATABASE_PASSWORD}@{DATABASE_HOST}:{DATABASE_PORT}/{DATABASE_NAME}"

db = Gino(
    dsn=DATABASE_URL,
    echo=True
)

Actual result

TypeError: As of 3.10, the *loop* parameter was removed from Condition() since it is no longer necessary

Environment:

Possible reason: incompatible versions of asyncio\python and aiomysql