Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
Takiro opened this issue Mar 8, 2023 · 0 comments
Open

Comments

@Takiro
Copy link

Takiro commented Mar 8, 2023

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant