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

Contributor gates cannot start on Python 3.13+: committed uv.lock pins onnxruntime==1.19.2

Open liutingqiu opened this issue 1 month ago • 1 comments

Every make target fails in 0 seconds on Python 3.13 or newer, before running the tool it names:

$ python3 --version
Python 3.14.7

$ make install
uv sync
Using CPython 3.14.7
Creating virtual environment at: .venv
Resolved 120 packages in 4ms
error: Distribution `onnxruntime==1.19.2 @ registry+https://pypi.org/simple` can't be installed because it doesn't have a source distribution or wheel for the current platform
hint: You're using CPython 3.14 (`cp314`), but `onnxruntime` (v1.19.2) only has wheels with the following Python ABI tags: `cp39`, `cp310`, `cp311`, `cp312`
make: *** [Makefile:44: install] Error 2

make lint, make type-check and make test-unit fail identically, because uv run resolves the project environment before running the command — so the output blames ruff and mypy, neither of which was reached.

Why this is a contradiction inside the repo, not an environment quirk

  • pyproject.toml: requires-python = ">=3.9" — no upper bound — and it advertises Programming Language :: Python :: 3.13
  • .github/workflows/ci.yml runs a 3.9–3.13 matrix
  • the committed uv.lock pins onnxruntime==1.19.2 (tracked; 891c166), whose only wheels are cp39/cp310/cp311/cp312

The declared support range and the locked dependency disagree, and the third fact is only visible by reading uv.lock.

Scope — checked, because it would have been easy to overstate

This affects the contributor path, not users. The published package resolves cleanly on both interpreters:

$ uv venv --python 3.13 /tmp/p
$ uv pip install --python /tmp/p/bin/python --dry-run withoutbg
 + withoutbg==1.2.1

What I did not check

  • Whether the gates pass on 3.9–3.12. I established only that they fail above 3.12; I am not claiming the suite is otherwise broken or otherwise fine.
  • Whether refreshing the lock fixes it. onnxruntime 1.30.0 is on PyPI with requires_python >=3.11, which suggests it would — "suggests" is as strong as I am willing to put it without running it.

Possible fixes, for your judgement, not a patch

  1. uv lock --upgrade-package onnxruntime to pick up a release with cp313/cp314 wheels, or
  2. pin the contributor interpreter (.python-version) so uv stops choosing one the lock cannot satisfy, or
  3. narrow requires-python / drop the 3.13 classifier to match what the lock actually supports.

I found this while checking whether this repository's gates were reproducible locally, and I am reporting it rather than opening a PR because which of the three fixes you want is a policy choice about the support range.

liutingqiu avatar Oct 03 '26 10:10 liutingqiu

:tada: This issue has been resolved in version 1.3.0 :tada:

The release is available on GitHub release

Your semantic-release bot :package::rocket:

github-actions[bot] avatar Oct 17 '26 09:10 github-actions[bot]