Closed smiet closed 1 year ago
Issue addressed in [https://github.com/hiddenSymmetries/virtual-casing/pull/10].
Just needed to pull in the submodule directory and then commit in the root directory (first time working with this, and git submodule documentation is a bit.... terse).
Closing and continuing on PR.
Resolved by #10
Cmake installs pybind11 in extern/pybind11, and somehow defaults to pybind11 v2.9.1.
This version of pybind is incompatible with python 3.11, and upon compilation you get the message :
(the
PyFrameObject
has been removed from the public C API: https://docs.python.org/3.11/whatsnew/3.11.html)Version resolution is somehow left to GIT, as CMakelists.txt reads:
so the version is somehow resolved by git, but the .gitmodules does not specify the version number.
I have not been able to find a way to request a different version of pybind, and the only workaround I found is the following:
-> change line 74 of CMakelists.txt to : ' option(GIT_SUBMODULE "Check submodules during build" OFF)' -> run cmake (
mkdir build && cd build && cmake ..
) -> go to extern/pybind11/ and `checkout master' -> go to build dir and make (or go to folder root and pip install)This solution is not future proof and very manual, but I cannot for the life of me figure out how to configure it. Changing the branch variable in the .gitmodules file did not work.