-
Beta Was this translation helpful? Give feedback.
Answered by
sketch34
May 12, 2025
Replies: 1 comment
-
|
Okay fixed. The issue was that This was a somewhat costly gotcha. I suggest this be made clear in this section of the docs. I will open a PR. |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
henryiii
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment

Okay fixed. The issue was that
pybind11::float_and friends require that the Python interpreter be initialized on the C++ side if you are testing your pybind11 code within C++ only and not via python calls into your C++ module. In my simple test I added apybind11::scoped_interpretervariable.This was a somewhat costly gotcha. I suggest this be made clear in this section of the docs. I will open a PR.