withoutbg-python icon indicating copy to clipboard operation
withoutbg-python copied to clipboard

Fix onnxruntime version constraint to allow installation with newer versions

Open kocabiyik opened this issue 1 year ago • 1 comments

Problem

The current onnxruntime version constraint >=1.12.0,<1.20.0 in pyproject.toml is preventing users from installing the package when only newer onnxruntime versions (1.20.0+) are available on PyPI.

Error Reported by Users

ERROR: Could not find a version that satisfies the requirement onnxruntime<1.20.0,>=1.12.0 (from withoutbg) (from versions: 1.20.0, 1.20.1, 1.21.0, 1.21.1, 1.22.0, 1.22.1)
ERROR: No matching distribution found for onnxruntime<1.20.0,>=1.12.0

Root Cause

Lines 37 and 45 in pyproject.toml have overly restrictive upper bounds:

  • onnxruntime>=1.12.0,<1.20.0
  • onnxruntime-gpu>=1.12.0,<1.20.0

Requested Fix

Update the version constraints to allow newer onnxruntime versions. Suggested options:

  1. Increase upper bound: >=1.12.0,<1.25.0
  2. Remove upper bound entirely: >=1.12.0 (if compatibility testing passes)

Files to Update

  • pyproject.toml line 37: main onnxruntime dependency
  • pyproject.toml line 45: onnxruntime-gpu optional dependency

Impact

  • High Priority: Blocks new installations
  • Users currently need workarounds like --no-deps which is unsafe

Testing Needed

  • Verify compatibility with onnxruntime versions 1.20.0+
  • Test both CPU and GPU variants
  • Ensure existing functionality works with newer versions

kocabiyik avatar Sep 15 '25 17:09 kocabiyik

Resolved. Same as: https://github.com/withoutbg/withoutbg/issues/4

kocabiyik avatar Nov 14 '25 22:11 kocabiyik