SofaDefrost / SofaGym

Machine Learning framework for Sofa
68 stars 10 forks source link

Error: splib3 not found #54

Closed WilliamHangXu closed 2 months ago

WilliamHangXu commented 6 months ago

Hi all, I just installed SofaGym. I tried to run the test_env.py file and got this error:

Traceback (most recent call last): File "test_env.py", line 23, in from sofagym.envs import File "/home/william/SofaGym/sofagym/envs/init.py", line 1, in from sofagym.envs.BubbleMotion.BubbleMotionEnv import File "/home/william/SofaGym/sofagym/envs/BubbleMotion/BubbleMotionEnv.py", line 11, in from sofagym.AbstractEnv import AbstractEnv File "/home/william/SofaGym/sofagym/AbstractEnv.py", line 20, in import splib3 ModuleNotFoundError: No module named 'splib3'

I have installed all the plugins listed in README. Any idea how I should fix this? Thank you!

jiayiliu-pku commented 4 months ago

Hi, I also had this problem, but I changed all 'splib3' to 'splib'. It seems work. You may try it.

samuelmyoussef commented 4 months ago

Hello,

sorry for the late reply. You need to add where splib3 is to your PYTHONPATH like this: export PYTHONPATH=$SOFA_ROOT/lib/python3/site-packages:$PYTHONPATH

alxbilger commented 4 months ago

See also discussion https://github.com/sofa-framework/sofa/discussions/4511

WilliamHangXu commented 2 months ago

Thank you! I fixed the issue by adding the path of splib3 into PYTHONPATH: plugins/STLIB/lib/python3/site-packages