Skip to content

fix: add Python 3.14 compatibility for onnxruntime dependency - #198

Merged
basnijholt merged 5 commits into
mainfrom
fix/python-314-compat
Jan 13, 2026
Merged

basnijholt merged 5 commits into
mainfrom
fix/python-314-compat

Conversation

@basnijholt

@basnijholt basnijholt commented Jan 13, 2026 •

Copy link
Copy Markdown
Owner

Summary

Add python_version < '3.14' markers to chromadb and onnxruntime in the rag and memory extras, plus a helpful runtime error message for users on Python 3.14.

This allows the package to be installed on Python 3.14, though the rag and memory features will not be available until upstream dependencies add 3.14 support.

Problem

When running uv tool install agent-cli on Python 3.14, the installation would fail or fall back to an older version because:

  • onnxruntime does not have Python 3.14 wheels yet
  • chromadb depends on both:
    • onnxruntime (no Python 3.14 wheels)
    • pypika (uses ast.Str removed in Python 3.14)

Changes

  • Added python_version < '3.14' constraints to chromadb and onnxruntime
  • Added runtime check in agent_cli/core/deps.py with helpful error message
  • Added TODO comments linking to tracking issue

Upstream issues

Related

Test plan

  • uv sync --all-extras works on Python 3.13 (installs all deps)
  • CI passes on all platforms

Add python_version < '3.14' marker to onnxruntime in rag and memory
extras since onnxruntime doesn't have wheels for Python 3.14 yet.

This allows the package to be installed on Python 3.14, though the
rag and memory features won't be available until onnxruntime adds
3.14 support.
@basnijholt
basnijholt force-pushed the fix/python-314-compat branch from 5673404 to d6b3d2b Compare January 13, 2026 09:38
chromadb depends on pypika which uses ast.Str (removed in Python 3.14)
When chromadb or onnxruntime are missing on Python 3.14+, show a clear
message explaining that these dependencies don't support Python 3.14 yet,
instead of the generic 'install with pip' message.
@basnijholt
basnijholt merged commit 69b977f into main Jan 13, 2026
14 of 15 checks passed
@basnijholt
basnijholt deleted the fix/python-314-compat branch January 13, 2026 10:25
basnijholt added a commit that referenced this pull request Jan 22, 2026
Since requires-python is now <3.14, we no longer need individual
python_version < '3.14' constraints on onnxruntime, chromadb,
silero-vad, and markitdown.

Also removes the Python 3.14 runtime check from deps.py since
the package won't install on 3.14 at all.

Reverts the approach from #198.
basnijholt added a commit that referenced this pull request Jan 22, 2026
Since requires-python is now <3.14, we no longer need individual
python_version < '3.14' constraints on onnxruntime, chromadb,
silero-vad, and markitdown.

Also removes the Python 3.14 runtime check from deps.py since
the package won't install on 3.14 at all.

Reverts the approach from #198.
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

Successfully merging this pull request may close these issues.

1 participant