-
Notifications
You must be signed in to change notification settings - Fork 46
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Cannot compile SofaPython3 with python 3.11 #428
Comments
Hello Alexandre ! This looks more like a pybind11 error than a python one. Can you check if the pybind11 lib that is used in your build is the one installed for python3.11 ? You can install pybind11 for your specific python version by calling |
When compiling Sofa and SofaPython3 from sources on ubuntu 20.04, if python3.11 is installed, SofaPython3 will not compile.
The build fails with the following error :
error: invalid use of incomplete type 'PyFrameObject' {aka 'struct _frame'}
A quick search online indicated that
PyFrameObject
disappeared in python3.11.I could not find a cmake parameter to specify which python version to use. I assumed that the system detects the latest version, so I uninstalled python3.11 and compiled the project with python3.10 which solved the issue.
I wrote it down in case further action is needed.
The text was updated successfully, but these errors were encountered: