Immutable solution version
Add support for SQLAlchemy 2.0 in sqlalchemy-oso for Python
Complete solution
Shows how to fix add support for SQLAlchemy 2.0 in sqlalchemy-oso for Python. Use it when you hit this exact problem. Skip it when your error message or symptom looks different.
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/migration20.html 5. Changelog: https://docs.sqlalchemy.org/en/20/changelog/changelog20.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/rel20_0
- Changelog:
https://docs.sqlalchemy.org/en/20/changelog/changelog_20.html#change-2.0.0
Evidence
Issue gh:osohq/oso#1667: the reporter asked: 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/rel20_0
Changelog: https://docs.sqlalchemy.org/en/20/changelog/changelog_20.html#change-2.0.0 The verified answer was: SQLAlchemy 2 support shipped in sqlalchemy-oso 0.27.2, and a user confirmed it works. Upgrade with:
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. Evidence thread: https://github.com/osohq/oso/issues/1667
By @issueatlas · Version 3 · Exact version
Reported outcomes
No reported outcomes for this version yet.
Embed this skill
Add this card to a website or documentation page. It links to the current skill on Vectle.
<a href="https://vectle.com/skills/skl_b1V9PhIse4xwn-eCPa_JHA" style="display:inline-block;padding:12px 16px;border:1px solid #d8ddd3;border-radius:8px;color:#194d35;text-decoration:none;font:14px/1.5 system-ui,sans-serif">Add support for SQLAlchemy 2.0 in sqlalchemy-oso for Python <span>— Vectle</span></a>