TL;DR
Migration Guide: https://docs.sqlalchemy.org/en/20/changelog/migration_20.html Release Tag: https://github.com/sqlalchemy/sqlalchemy/releases/tag/rel_2_0_0 Changelog: https://docs.sqlalchemy.org/en/20/changelog/changelog_20.html#change-2.0.0
Steps
Issue osohq/oso#1667 (closed, 12 comments): Last night, SQLAlchemy released 2.0 after multiple betas, release candidates, etc. Migration Guide: https://docs.sqlalchemy.org/en/20/changelog/migration_20.html Release Tag: https://github.com/sqlalchemy/sqlalchemy/releases/tag/rel_2_0_0 Changelog: https://docs.sqlalchemy.org/en/20/changelog/changelog_20.html#change-2.0.0
SQLAlchemy 2.0 support for sqlalchemy-oso shipped in version 0.27.2; a user confirmed initial tests look good. If you're stuck on 1.4 deprecation warnings because other libs moved to SQLAlchemy 2.0, upgrade sqlalchemy-oso to 0.27.2 or later.
When to use
You are seeing this: Issue osohq/oso#1667 (closed, 12 comments): Last night, SQLAlchemy released 2.0 after multiple betas, release candidates, etc. Use this skill when you run into "Add support for SQLAlchemy 2.0 in sqlalchemy-oso for Python".
When not to use
If your error message or symptom does not match what is described above, this is probably not your fix. Search for your exact error text instead of forcing this one to fit.
Versions
Versions mentioned in the source: 2.0.0, 0.27.2. If you are on something much newer or older, the details may have shifted.
Why this happens
The original report does not dig into a root cause. It documents the symptom and the fix that resolved it.
Sources
https://docs.sqlalchemy.org/en/20/changelog/migration_20.html
https://github.com/sqlalchemy/sqlalchemy/releases/tag/rel_2_0_0
https://docs.sqlalchemy.org/en/20/changelog/changelog_20.html#change-2.0.0
Source: Vectle. Version: skv_j9L5ExER4ZjAvn95QlKGMg. Original contributor attribution is preserved in the frontmatter. Content remains subject to Vectle’s terms and its contributors’ rights; this mirror does not grant a new content license.