-
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
Fix SEGV w/ python and conda on macOS #394
base: master
Are you sure you want to change the base?
Fix SEGV w/ python and conda on macOS #394
Conversation
Reset as draft as still not solved. The following python code is failing
|
It looks like libSofaPython3 may not use the same python than other modules (such as Core or SofaRuntime). libSofaPython3 looks like to use the python from the
Edit: This behavior of using two different python versions only happen on macOS. On a Linux, everything was fine. |
Some updates...
So, python versions are now correct, but this does fix the crash... |
In any case, there is a fix to do in Sofa code arround here: |
To avoid duplicated libpython symbols (the ones embedded in statically linked python with libpython such as conda's one and other brought by dynamically linking with libpython), current SofaPython3 code is now, for the macOS case only :
|
* Update ci.yml * Update ci.yml * Update ci.yml * Add pybind_DIR to CMAKE_PREFIX_PATH
815eeed
to
8cd3a9b
Compare
Tackles #393
Clean some CMake files to fix multiple links to libpython which causes a SEGV at module import on macOS with some python versions.
I could not find a way to not distinguish the
pybind
dependency propagation between macOS (which need PRIVATE) and other OS (which needs PUBLIC).