- This topic has 2 replies, 2 voices, and was last updated 3 years, 9 months 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 › SofaPython3 › Using SofaPython3 › [SOLVED] [ERROR] [PluginManager] Plugin not found
Tagged: 64_bits, Linux_ubuntu, Plugin not found, SOFA_2006
Good day,
So I have been using Sofa 20.12 and SofaPython3 20.12. I have been able to use runSofa to open and animate both .scn files and .py files perfectly, however, when I try running one of the examples using python3 such as:
python3 ~/SofaPython3/examples/emptyForceField.py
Then I get the following errors:
[ERROR] [PluginManager] Plugin not found: "SofaOpenglVisual"
[ERROR] [PluginManager] Plugin not found: "SofaImplicitOdeSolver"
[ERROR] [SofaRuntime] ValueError: Object type EulerImplicitSolver<> was not created
The object is not in the factory.
This component has been PLUGINIZED since SOFA v20.12. To continue using this component you need to update you scene and add <RequiredPlugin name='SofaImplicitOdeSolver'/>
Traceback (most recent call last):
File "/home/mike/SofaPython3/examples/emptyForceField.py", line 73, in <module>
main()
File "/home/mike/SofaPython3/examples/emptyForceField.py", line 60, in main
createScene(root)
File "/home/mike/SofaPython3/examples/emptyForceField.py", line 45, in createScene
node1.addObject('EulerImplicitSolver')
This occurs for all the other examples where the plugins required are not found.
Kind regards,
Michael Pienaar
Hey Michael,
When you use the python interpreter, SofaPython3 has no easy way to determine where is installed your SOFA. For this purpose, when SOFA tries to look for plugins, it check if the environment variable SOFA_ROOT exists. If it is the case, it will look into SOFA_ROOT/plugins to find its plugins.
Could you try again setting SOFA_ROOT to your SOFA installation path?
For example:
$ export SOFA_ROOT=/your/path/to/sofa/build/install
$ python ~/SofaPython3/examples/emptyForceField.py
J-N
Thank you very much. It is working perfectly!
WARNING
The forum has been moved to GitHub Discussions.
Old topics and replies are kept here as an archive.