Fix SEGV w/ python and conda on macOS#394
Fix SEGV w/ python and conda on macOS#394olivier-roussel wants to merge 9 commits intosofa-framework:masterfrom
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
pybinddependency propagation between macOS (which need PRIVATE) and other OS (which needs PUBLIC).