Sofa.Gui error using SOFA v20.21 and SofaPython3 #2748
-
Dear community, I installed SOFA v20.21 from binaries on a fresh Ubuntu 20.04. "ImportError: PATH_TO_PYTHON3PLUGIN/libQt5Xml.so.5: undefined symbol: _ZdlPvm, version Qt_5 where PATH_TO_PYTHON3PLUGIN is the path to the SofaPython3 plugin within the SOFA root directory. This error occurs already at the import of Sofa.Gui in the python script. Has anyone advice on how to solve this? I already checked Qt versions on my system and I am currently running Qt 5.13.2. I also tried to deinstall Qt v5.13.2 and install older versions, like Qt 5.12.12 or Qt 5.12.5 but this didn't resolve it. Thank you very much in advance, |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 3 replies
-
Hello @chstetco |
Beta Was this translation helpful? Give feedback.
-
Hi @chstetco SOFA v20.21 does not exist. Did you mean SOFA v20.12? Or v21.12 (the latest one)? What happens is that your system is using the Qt libraries you installed yourself instead of the ones that are embedded in SOFA binaries. Since you installed a different version than the one expected by SOFA (Qt 5.12.6), it fails with this "version Qt_5" error. The thing is, your system should use the embedded Qt libs that are located in ldd <sofa-install-dir>/bin/runSofa | grep "libQt5" They should all point to the Qt libs in |
Beta Was this translation helpful? Give feedback.
Hi @chstetco
SOFA v20.21 does not exist. Did you mean SOFA v20.12? Or v21.12 (the latest one)?
What happens is that your system is using the Qt libraries you installed yourself instead of the ones that are embedded in SOFA binaries. Since you installed a different version than the one expected by SOFA (Qt 5.12.6), it fails with this "version Qt_5" error.
The thing is, your system should use the embedded Qt libs that are located in
<sofa-install-dir>/lib
.Please check which Qt libraries are loaded with this command:
They should all point to the Qt libs in
<sofa-install-dir>/lib
.