withoutbg-python
withoutbg-python copied to clipboard
Fix onnxruntime version constraint to allow installation with newer versions
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.0onnxruntime-gpu>=1.12.0,<1.20.0
Requested Fix
Update the version constraints to allow newer onnxruntime versions. Suggested options:
- Increase upper bound:
>=1.12.0,<1.25.0 - 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-depswhich 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
Resolved. Same as: https://github.com/withoutbg/withoutbg/issues/4