Home › Forum › SOFA › Getting Started › [SOLVED] .pyscn file (SoftRobotics Plugin)
Tagged: newbie
- This topic has 6 replies, 4 voices, and was last updated 4 years, 6 months ago by
sirasani.
-
AuthorPosts
-
20 May 2020 at 09:08 #16326
twxu
BlockedI am new to SOFA and am trying to use the SoftRobotics plugin. So far, I’ve only used XML .scn files with SOFA.
I’ve downloaded the binaries file (https://project.inria.fr/softrobot/install-get-started-2/download/) and can open SOFA, but cannot open any of the included tutorials with the “.pyscn” file type.
Are there other steps I need to take to install SOFA and the plugin beyond just downloading the binaries file?
How can I run the .pyscn files in SOFA?
Any guidance is appreciated. Thanks!
20 May 2020 at 22:48 #16333Hugo
KeymasterHi @twxu
Welcome to the SOFA forum then!
Do you have python installed on your machine? This is what seems to be missing.Best
Hugo
21 May 2020 at 03:18 #16334twxu
BlockedHi @Hugo
Thanks for the prompt response!
After some debugging I’ve figured out the issue:
– I had Python 3.8 installed, but it looks like Python 2.7 is required
– After rolling back to Python 2.7 and installing numpy, until Command Prompt outputs match those given in this thread, I was able to open the .pyscn files no problem.Thanks!
21 May 2020 at 12:12 #1633511 March 2021 at 04:47 #18839pzingg
BlockedJust to be clear, in v20.12 is it possible to load .pyscn files with SofaPython3? Or must I disable SofaPython3 and rebuild SOFA with SofaPython?
FYI, This is what I’m getting if I point SOFA to the FirstSteps/firststeps-tuto.pyscn file contained in the SoftRobots plugin source tree:
[ERROR] [DAGSimulation(Simulation)] extension (pyscn) not handled
11 March 2021 at 15:44 #18841pzingg
BlockedI got it working. Didn’t realize you have to enable pligin shared libraries in the Plugin Manager. I also had to add a file to build/etc/python.d so that SofaPythom3 would add the location of the stlib3 package to the Python sys.path.
Now I am trying to understand API scene and object changes between the stlib and stlib3 Python modules. I’m stuck at the moment because of missing declarations for ODE solver and constraint modules.
30 April 2021 at 10:45 #19350 -
AuthorPosts
- You must be logged in to reply to this topic.
