Skip to content

Remove onnxruntime<=1.20.1 Windows pin#1551

Merged
afourney merged 2 commits intomicrosoft:mainfrom
basnijholt:remove-onnxruntime-windows-pin
Feb 16, 2026
Merged

Remove onnxruntime<=1.20.1 Windows pin#1551
afourney merged 2 commits intomicrosoft:mainfrom
basnijholt:remove-onnxruntime-windows-pin

Conversation

@basnijholt
Copy link
Contributor

@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)
@josteink
Copy link

I'm not sure if this is beating a dead horse, but just iterating that this is an option too:

Making magika an optional dependency, which would eliminate all these issues.

There's even a PR for it: #1355

@basnijholt
Copy link
Contributor Author

@josteink, that would also be preferable to me but in the meantime this is a smaller change that unblocks a lot of people.

@afourney, perhaps you could take a look here? Essentially, no-one that is using markitdown can update to Python 3.14...

@afourney
Copy link
Member

Ooof good point. Let me see what I can do tonight to unblock

@afourney afourney merged commit 6b0fd15 into microsoft:main Feb 16, 2026
3 checks passed
@afourney
Copy link
Member

Merged. I'll push a point release tonight

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)

3 participants