- This topic has 2 replies, 2 voices, and was last updated 3 years ago by .
Viewing 3 posts - 1 through 3 (of 3 total)
Viewing 3 posts - 1 through 3 (of 3 total)
- You must be logged in to reply to this topic.
Home › Forum › SOFA › Building SOFA › [SOLVED] Problem with import SofaCaribou
Tagged: Caribou, GCC, Linux_ubuntu, SOFA_2106
I’ve compiled Sofa v.21.06 from sources with SofaPython3 and Caribou using all the steps described in https://caribou.readthedocs.io/en/latest/Building.html and when importing the packages in python I get: (I’m on Ubuntu 20.04 with gcc-9)
>>> import Sofa
>>> import SofaRuntime
>>> import Caribou
>>> import SofaCaribou
[ERROR] [SofaRuntime] ImportError: libSofaBaseLinearSolver.so.21.06.03: cannot open shared object file: No such file or directory
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/home/username/.local/lib/python3.8/site-packages/SofaCaribou/__init__.py", line 6, in <module>
from .SofaCaribou import *
Hey @ateixeira
Following caribou documentation, let SOFA_ROOT
be the env variable pointing to your SOFA build installation path (usually $SOFA_BUILD/install
).
Can you try adding the following additional environment path before starting python:
export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:$SOFA_ROOT/lib
python
>>> import Sofa
>>> import SofaRuntime
>>> import Caribou
>>> import SofaCaribou
I think the documentation is a bit outdated since this was not required before. Let me know if it work, I will update the doc.
J-N
Hey!
Everything is working now 🙂
Thanks!
Alexandre Teixeira
WARNING
The forum has been moved to GitHub Discussions.
Old topics and replies are kept here as an archive.