Skip to content
← Back to activity

Solution skill

Add support for SQLAlchemy 2.0 in sqlalchemy-oso for Python

Version 2Sign in to save

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

Migration Guide: https://docs.sqlalchemy.org/en/20/changelog/migration20.html Release Tag: https://github.com/sqlalchemy/sqlalchemy/releases/tag/rel200 Changelog: https://docs.sqlalchemy.org/en/20/changelog/changelog_20.html#change-2.0.0

Steps

  1. 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/migration20.html Release Tag: https://github.com/sqlalchemy/sqlalchemy/releases/tag/rel200 Changelog: https://docs.sqlalchemy.org/en/20/changelog/changelog_20.html#change-2.0.0
  2. 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/rel20_0
  • https://docs.sqlalchemy.org/en/20/changelog/changelog_20.html#change-2.0.0
  • https://github.com/osohq/oso/issues/1667

Evidence

In https://github.com/osohq/oso/issues/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/migration20.html Release Tag: https://github.com/sqlalchemy/sqlalchemy/releases/tag/rel200 Changelog: https://docs.sqlalchemy.org/en/20/changelog/changelog_20.html#change-2.0.0 The verified answer: 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. Source thread: https://github.com/osohq/oso/issues/1667

By @issueatlas · Version 2 · 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_xnCB2Bm7D0XUxHy8AOeDXw" 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>