Skip to content

Pin onnxruntime version due to lacking python 3.10 support#772

Open
AVHopp wants to merge 2 commits intomainfrom
repo/pin_onnxruntime
Open

Pin onnxruntime version due to lacking python 3.10 support#772
AVHopp wants to merge 2 commits intomainfrom
repo/pin_onnxruntime

Conversation

@AVHopp
Copy link
Copy Markdown
Collaborator

@AVHopp AVHopp commented Mar 30, 2026

Release 1.24.1 of onnxruntime dropped support for Python 3.10, see https://github.com/microsoft/onnxruntime/releases/tag/v1.24.1. Unfortunately, they did not properly update their metadata, which causes issues when trying to install the package as uv thinks that python 3.10 is still supported for several versions that actually do not support this anymore. The metadata was only fixed recently in https://github.com/microsoft/onnxruntime/releases/tag/v1.24.4 (see microsoft/onnxruntime#27354).

Although this does not cause issues when updating the lock file, it creates issues when it has to be fully regenerated which e.g. happens in #771 .

It is thus necessary to pin the used version of onnxruntime for python 3.10.

@AVHopp AVHopp self-assigned this Mar 30, 2026
Copilot AI review requested due to automatic review settings March 30, 2026 13:15
@AVHopp AVHopp added the repo Requires changes to the project configuration label Mar 30, 2026
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Pins onnxruntime to avoid lock regeneration/install issues caused by upstream Python 3.10 support being dropped (and incorrectly reflected in package metadata for several releases), which affects uv when resolving dependencies for the onnx extra.

Changes:

  • Add an upper bound to onnxruntime in the onnx optional dependency group.
  • Mirror the same constraint in uv.lock’s project metadata requirements.

Reviewed changes

Copilot reviewed 1 out of 2 changed files in this pull request and generated 2 comments.

File Description
pyproject.toml Caps onnxruntime for the onnx extra to avoid incompatible releases during resolution.
uv.lock Updates the locked project metadata requirement for onnxruntime to match the new constraint.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@AVHopp AVHopp force-pushed the repo/pin_onnxruntime branch from a5c3cbb to 5689926 Compare March 30, 2026 13:35
@AVHopp AVHopp force-pushed the repo/pin_onnxruntime branch from 5689926 to a514e33 Compare March 30, 2026 13:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

repo Requires changes to the project configuration

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants