From 834bba622e65271a8139702cdf2c2609b9fa2748 Mon Sep 17 00:00:00 2001 From: nodemode-ai Date: Wed, 2 Dec 2026 18:12:16 -0500 Subject: [PATCH] fix(deps): pin onnxruntime 1.31.0 on Intel Macs so the macOS x64 build installs (0.49.0) The 0.49.0 desktop build failed on macos-15-intel: pip found no onnxruntime==1.23.2 for the runner's Python, only 1.31.0. PyPI publishes no Intel Mac onnxruntime after 1.23.2, and 1.23.2 stops at cp313, so the Intel build can only use formcompiler's own x86_64 wheels (deps-macos-x64.json, on PIP_FIND_LINKS for macos-x64 only), which hold 1.31.0 for cp312 and cp314. The Intel line now pins 1.31.0; Apple silicon, Linux and Windows keep 1.30.0. Remove Background only uses InferenceSession, get_inputs and run on the CPU provider, the same in both. NOTICE.md's onnxruntime row says where the Intel build comes from. setup/notices.py --check passes. --- NOTICE.md | 2 +- backend/HASHOUT_LOG.md | 4 ++++ backend/requirements_macos.txt | 2 +- 3 files changed, 6 insertions(+), 2 deletions(-) diff --git a/NOTICE.md b/NOTICE.md index e43c7c5..ab56bc9 100644 --- a/NOTICE.md +++ b/NOTICE.md @@ -58,7 +58,7 @@ The 67 built-in templates, their layouts, motifs and sample text are original wo | pypdf | BSD-3-Clause | engine, tags exported PDFs for accessibility | | fontTools | MIT | engine, subsets and converts fonts embedded in .pptx | | Brotli | MIT | engine, lets fontTools read the bundled woff2 fonts | -| onnxruntime 1.30.0 (1.23.2 on Intel Macs, its last release with an x86_64 build) | MIT; the components compiled into it are listed in its ThirdPartyNotices.txt, carried whole in `THIRD-PARTY-NOTICES.txt` | engine, runs the background model on the CPU for Remove Background | +| onnxruntime 1.30.0 (1.31.0 on Intel Macs, from the family's own x86_64 build, since onnxruntime publishes none after 1.23.2) | MIT; the components compiled into it are listed in its ThirdPartyNotices.txt, carried whole in `THIRD-PARTY-NOTICES.txt` | engine, runs the background model on the CPU for Remove Background | | numpy 2.5.3 | BSD-3-Clause, with 0BSD, MIT, Zlib and CC0-1.0 parts (its licence files are in `THIRD-PARTY-NOTICES.txt`) | engine, the background model's input and output arrays | | protobuf, flatbuffers, packaging | BSD-3-Clause, Apache-2.0, Apache-2.0 OR BSD-2-Clause | engine, required by onnxruntime | diff --git a/backend/HASHOUT_LOG.md b/backend/HASHOUT_LOG.md index e498326..c4d92ed 100644 --- a/backend/HASHOUT_LOG.md +++ b/backend/HASHOUT_LOG.md @@ -1050,3 +1050,7 @@ Import: `_stock_poster` compares the video's blip part with `pptx.media.SPEAKER_ ``` and `_media_source` now runs first so the check knows it is a video. Pictures that are not videos, audio icons and real posters from PowerPoint are read as before. Checked with python-pptx files: one with no poster reads back with no poster, one with a PNG poster reads back with it. backend/tests: 360 passed. + +## Intel Mac onnxruntime pin (0.49.0). requirements_macos.txt, NOTICE.md + +The 0.49.0 desktop build stopped on `macos-15-intel`: pip found no `onnxruntime==1.23.2` (from versions: 1.31.0). PyPI's Intel Mac wheels end at 1.23.2 and stop at cp313, and the runner's interpreter is newer than that, so only formcompiler's own x86_64 wheels (deps-macos-x64.json, put on `PIP_FIND_LINKS` for macos-x64 only, built from onnxruntime's source and checked by SHA-256) can serve it. That list holds 1.31.0 for cp312 and cp314, so the Intel line pins 1.31.0, which matches whichever of the two the runner uses; every other platform keeps 1.30.0. The Remove Background code uses only `InferenceSession`, `get_inputs` and `run` with the CPU provider, which are the same in both. FormVis's 1.23.2 line works only while its Intel build runs on cp313 or older. diff --git a/backend/requirements_macos.txt b/backend/requirements_macos.txt index 3aedb62..fae04a4 100644 --- a/backend/requirements_macos.txt +++ b/backend/requirements_macos.txt @@ -18,5 +18,5 @@ ptyprocess==0.7.0 pywinpty==3.0.5; sys_platform == "win32" keyring==25.7.0 numpy==2.5.3 -onnxruntime==1.23.2; platform_machine == "x86_64" +onnxruntime==1.31.0; platform_machine == "x86_64" onnxruntime==1.30.0; platform_machine != "x86_64"