Home › Forum › SOFA › Using SOFA › [SOLVED] Unable to load .py scene from SoftRobot plugin
Tagged: 64_bits, Plugin_SoftRobots, SOFA_other, Windows_10
- This topic has 17 replies, 5 voices, and was last updated 3 years, 5 months ago by
Anthony.
-
AuthorPosts
-
16 December 2020 at 15:53 #18037
peter
BlockedDear forum members,
I have just downloaded the SOFA Windows binaries from this webpage:
I am able to open SOFA on my computer, but whenever I try to open a scene from the documentation repository, I can’t launch any scene. For example, if I try to open “trunk.py”, I receive this message: extension (py) not handled.
How can I manage to launch this tutorial?Thanks for any help you can provide.
Best regards,
Peter16 December 2020 at 16:05 #18038Scheikl
BlockedHi Peter,
theextension (py) not handled
is usually caused by SOFA not finding the correct plugin to handle python files.When starting SOFA (runSofa in
/bin
), go to Edit->Plugin Manager and make sure “SofaPython” is listed as a plugin. If that is not the case, click “Add” and and selectlibSofaPython.so
from/lib
.Let me know if that fixes your problem.
Cheers,
Paul16 December 2020 at 16:30 #18039peter
BlockedHi Paul,
Many thanks for you reply.
However, I cannot find any “libSofaPython.so” file.
There is a “SofaPython.dll” file in \bin, but when I try to add it through the plugin manager, it says the specified module cannot be found.
Any idea how to manage this?
Thanks again.
Peter16 December 2020 at 16:59 #18040Scheikl
BlockedHi Peter,
I just realized I did not catch that you are working with the windows version of SOFA.
There should be aSofaPython.lib
inside of\lib
.Cheers,
Paul16 December 2020 at 18:20 #18041peter
BlockedI have found “SofaPython.lib” but using the plugin manager, I can only add “.dll” file. How can I add this plugin?
Thanks,
Peter16 December 2020 at 18:33 #18042Scheikl
BlockedHi Peter,
sadly I don’t have access to a windows computer, so I can’t really help you more on this.Cheers,
Paul16 December 2020 at 18:45 #18044peter
BlockedHi Paul,
Thanks for your help.
If anyone has any idea how to fix this problem, that would be of great help.
Thanks in advance.
Peter19 December 2020 at 00:50 #18067Hugo
Keymasterhey @peter
could you try still using the downloaded binaries to:
– open SOFA
– open Edit->Plugin Manager
– select the library : in bin/SofaPython.dll provided with the binary of SOFA+SoftRobot for windowsThis should work, do not hesitate to keep us posted.
Best,Hugo
20 December 2020 at 11:11 #18073peter
BlockedHi Hugo,
Thanks for taking a look at my problem here.
I tried your instructions but got the following error message:
“Plugin loading failed C:/SOFA/SOFA_v19.06.99_custom_Win64_v8.1/bin/SofaPython.dll: specified module cannot be found”I just realized that I also get this error message when I launch SOFA. When I launch runSofa.exe, it opens a terminal window where different messages are prompted, including this error message about SofaPython.dll not found.
Thanks again for your help.
Cheers,
Peter11 January 2021 at 14:05 #18175Hugo
KeymasterHey @peter
Have you installed python (2.7 here in your case) on you Windows ?
See the paragraph about Python here.Best
Hugo
28 April 2021 at 10:58 #19331Anthony
BlockedHi, did anyone managed to solve this problem as i am having the exact same issue?
7 May 2021 at 22:40 #19401Hugo
KeymasterHi @anthony
Have you followed Paul’s and my advice?
If it does not solve your issue, could you – step by step – describe what is the problem when configuring/compiling/running SOFA ?Best
Hugo
10 May 2021 at 11:11 #19419Anthony
BlockedHi Hugo, I am using SOFA 20.12 binaries for windows 10. i have python 2.7 installed but could not load the .dll file. below is the error message.
[ERROR] [PluginManager] Plugin loading failed (C:/Users/hl18924/OneDrive – University of Bristol/Documents/PHD/Trustworthy robots/SOFA_v20.12.00_Win64/plugins/SofaPython/bin/SofaPython.dll): The specified module could not be found.
10 May 2021 at 12:00 #19420kris
BlockedI am not a core developer but maybe this helps: Go to Edit-> PluginManager and then select Sofapython dll in the plugins/SofaPython/bin directory
18 May 2021 at 18:15 #19478Hugo
KeymasterHi @anthony
You can follow Chris advice. The error seems to assume that the dll is not in the given path. Can you see it?
Hugo
30 June 2021 at 09:47 #19905Anthony
BlockedI am still unable to make it to work so have bult sofa from source on ubuntu. Seems to work ok-ish but the softrobot plugin is still a bit broken from the python3 migration.
23 September 2021 at 16:50 #2042123 September 2021 at 16:58 #20422Anthony
BlockedYes, please. Thanks
-
AuthorPosts
- You must be logged in to reply to this topic.