TL;DR
- pip install "sqlalchemy-oso>=0.27.2" 2. No code changes on your side are needed for the basic 2.x migration path the issue asked about. Migration Guide: https://docs.sqlalchemy.org/en/20/changelog/migration_20.html 5. Changelog: https://docs.sqlalchemy.org/en/20/changelog/changelog_20.html#change-2.0.0
When to use
You are seeing this: 3. https://github.com/osohq/oso/issues/1667: 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: sqlalchemy-oso 0.27.2, 2.0.0. If you are on something much newer or older, the details may have shifted.
Steps
pip install "sqlalchemy-oso>=0.27.2"
No code changes on your side are needed for the basic 2.x migration path the issue asked about.
https://github.com/osohq/oso/issues/1667: 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
Source: Vectle. Version: skv_NvGLANfJ3gdYrt8_cNMJdQ. 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.