hamster-cli icon indicating copy to clipboard operation
hamster-cli copied to clipboard

The 'sqlalchemy.orm.mapper()' function is removed as of SQLAlchemy 2.0.

Open Takiro opened this issue 2 years ago • 0 comments

Installed hamster_cli via pip on an Ubuntu 22.04 and it looks like a function it uses was removed from its ORM dependency. Getting the following error:

sqlalchemy.exc.InvalidRequestError: The 'sqlalchemy.orm.mapper()' function is removed as of SQLAlchemy 2.0. Use the 'sqlalchemy.orm.registry.map_imperatively()` method of the sqlalchemy.orm.registry class to perform classical mapping.

When trying any command.

Takiro avatar Mar 08 '23 08:03 Takiro