Pin pybind11 to 3.1.0 to match the wheel build - #259
Merged
Merged
Conversation
pybind11 keys its type registry on PYBIND11_INTERNALS_VERSION, baked into each extension as __pybind11_internals_v<N>_<stdlib>_<abi>__. Modules built against different N get separate registries and cannot exchange types even though importing one from the other succeeds. An unpinned "pybind11" let pip resolve 3.1.0 (internals v12) for local CMake builds, while NWXCMake FetchContent pinned v3.0.2 (internals v11) for the wheels. SCF test_cmake_build installs the ecosystem then builds from source, mixing the two, and died with: TypeError: Unregistered type : parallelzone::runtime::RuntimeView Wheel-only and source-only builds both worked, which is why this hid. Paired with the NWXCMake bump of its FetchContent tag to v3.1.0; the two pins must stay in sync. Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
ryanmrichard
force-pushed
the
pin_pybind11_internals
branch
from
September 17, 2026 18:33
2a44fa7 to
1f763d6
Compare
Contributor
|
🚀 [bumpr] Bumped! |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Pins
pybind11==3.1.0to match NWXCMake FetchContent tag. Part of the fix forTypeError: Unregistered type : parallelzone::runtime::RuntimeView, which fails SCF Python tests on every platform.Why
pybind11 keys its type registry on
PYBIND11_INTERNALS_VERSION, baked into each extension as__pybind11_internals_v<N>_<stdlib>_<abi>__. Modules built against differentNget separate registries and cannot exchange types, even though importing one from the other succeeds.An unpinned
"pybind11"let pip resolve 3.1.0 (internals v12) for local CMake builds, while NWXCMake FetchContent pinned v3.0.2 (internals v11) for the wheels. SCFtest_cmake_buildinstalls the ecosystem and then builds from source, mixing both:Wheel-only and source-only builds each work, which is why this hid — and SCF never linked far enough to run Python tests until the libstdc++ ABI rebuild landed.
Pairs with NWChemEx/NWXCMake#92, which moves the FetchContent tag to
v3.1.0. The two pins must stay in sync; a comment at each site points at the other.🤖 Generated with Claude Code