- This topic has 1 reply, 2 voices, and was last updated 2 years, 10 months ago by .
Viewing 2 posts - 1 through 2 (of 2 total)
Viewing 2 posts - 1 through 2 (of 2 total)
- You must be logged in to reply to this topic.
Home › Forum › SoftRobots › Using SoftRobots › Error: couldn’t import objects from stlib3.physics.rigid
Tagged: Linux_ubuntu, SOFA_2106, softrobots, stlib3
Hi,
I encountered an error while I was testing the compiled SOFA v21.06 and the plugins by running the examples provided by SoftRobots. I have compiled SoftRobots, Cosserat, ModelOrderReduction and STLIB without any issue. However, when I tried to import rigid objects such as ‘Floor’ or ‘Cube’ from stlib3, SOFA gave me an error.
I noticed that @mohshaw experienced the same problem before: https://www.sofa-framework.org/community/forum/topic/issues-with-running-examples-on-sofa_v20-12-02_defrost_linux/ , and the post is still open. Because we have different SOFA builds and mohshaw used the binary version, I think it may be better to create this new post.
The error message is below
[ERROR] [SofaPython3::SceneLoader] Unable to completely load the scene from file '/home/owen/Softwares/sofa/plugin/SoftRobots/docs/tutorials/CableGripper/details/sofapython3/step0.py3scn'.
Python exception:
ImportError: cannot import name 'Floor' from 'stlib3.physics.rigid' (/home/wenye/Softwares/sofa/build/lib/python3/site-packages/stlib3/physics/rigid/__init__.py)
At:
step0.py3scn(3): <module>
<frozen importlib._bootstrap>(219): _call_with_frames_removed
<frozen importlib._bootstrap_external>(848): exec_module
<frozen importlib._bootstrap>(686): _load_unlocked
<frozen importlib._bootstrap>(702): _load
/home/wenye/anaconda3/lib/python3.8/imp.py(171): load_source
/home/wenye/anaconda3/lib/python3.8/imp.py(234): load_module
<string>(3): <module>
Can anyone help?
Best wishes
Hey @qwe12050
Thanks for noticing us, let me poke @damien-marchaluniv-lille1-fr he should be able to answer this.
All my apologies for our delay, and not being able to help straightaway.
Best wishes,
Hugo
WARNING
The forum has been moved to GitHub Discussions.
Old topics and replies are kept here as an archive.