Skip to content

Remove onnxruntime<=1.20.1 Windows pin#1551

Open
basnijholt wants to merge 1 commit intomicrosoft:mainfrom
basnijholt:remove-onnxruntime-windows-pin
Open

Remove onnxruntime<=1.20.1 Windows pin#1551
basnijholt wants to merge 1 commit intomicrosoft:mainfrom
basnijholt:remove-onnxruntime-windows-pin

Conversation

@basnijholt
Copy link

@basnijholt basnijholt commented Feb 6, 2026

Summary

  • Remove the onnxruntime<=1.20.1; sys_platform == 'win32' pin from packages/markitdown/pyproject.toml

Context

The pin was added in #1274 to work around a DLL import error (#1266). The investigation in microsoft/onnxruntime#24843 showed:

  • The original reporter's issue was caused by an outdated msvc-runtime package (updating it fixed it)
  • onnxruntime>=1.22.0 has a genuine regression on the windows-2019 runner, but windows-2022 and windows-2025 work fine
  • windows-2019 is EOL and scheduled for deprecation

The pin now blocks Python 3.14 support (#1470, #1550) because onnxruntime 1.24.1 — which adds Python 3.14 wheels — exceeds the <=1.20.1 upper bound. The onnxruntime dependency comes from magika, which itself doesn't have this pin.

Fixes #1550

The pin was added in microsoft#1274 to work around a DLL import error (microsoft#1266).
The root cause was an outdated msvc-runtime package, not an onnxruntime
regression (microsoft/onnxruntime#24843). The pin blocks Python 3.14
support (microsoft#1470) since onnxruntime 1.24.1 (which adds 3.14 wheels)
exceeds the upper bound.

Fixes microsoft#1550
basnijholt added a commit to basnijholt/agent-cli that referenced this pull request Feb 6, 2026
Force onnxruntime>=1.24.1 on non-Windows so the resolver picks a version
with Python 3.14 wheels. On Windows, markitdown caps onnxruntime<=1.20.1
(microsoft/markitdown#1551), so keep the original lower bounds there.

Skip rag/memory extras in CI on Python 3.14 because chromadb still uses
pydantic v1 which is incompatible with 3.14.
basnijholt added a commit to basnijholt/agent-cli that referenced this pull request Feb 6, 2026
markitdown caps onnxruntime<=1.20.1 on Windows which has no 3.14 wheels
(microsoft/markitdown#1551)
basnijholt added a commit to basnijholt/agent-cli that referenced this pull request Feb 6, 2026
markitdown caps onnxruntime<=1.20.1 on Windows which has no 3.14 wheels
(microsoft/markitdown#1551)
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.

Remove onnxruntime<=1.20.1 Windows pin (onnxruntime 1.24.1 is out)

1 participant