Skip to content

Conversation

@guitargeek
Copy link
Contributor

Backport of #20575 plus the required tweak to ROOT_FIND_PYTHON_MODULE.

This is useful to steer testing depending on the version of Python
modules, or give errors/warnings if a module has a version unsupported
by ROOT.

(cherry picked from commit 763ee06)
The Python package onnx 1.19.0 has a bug that makes this version unusable:
onnx/onnx#7249
In that case, we have to disable the "TestSofieModels" and
"TestRModelParserPyTorch" tests, which import onnx indirectly via
`torch.onnx`.

We should also consider to require `onnx!=1.19.1` in our
`requirements.txt` in the future, so our users don't face similar
trouble from exporting PyTorch models to onnx. But this should only be
done once we are sure that it can also be installed on macOS without
breaking something else.

Closes root-project#20571.
@guitargeek guitargeek requested a review from bellenot as a code owner December 1, 2025 08:03
@guitargeek guitargeek self-assigned this Dec 1, 2025
@guitargeek guitargeek merged commit 938e58c into root-project:v6-36-00-patches Dec 1, 2025
17 of 21 checks passed
@guitargeek guitargeek deleted the bp_636 branch December 1, 2025 09:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant