Skip to content

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

@Takiro

Description

@Takiro

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.

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