Home › Forum › SOFA › Using SOFA › sofa-launcher and modelOrderReduction problems
Tagged: 64_bits, Linux_ubuntu, model order reduction, path, Plugin_other, python, SOFA, SOFA_other
- This topic has 2 replies, 3 voices, and was last updated 5 years, 1 month ago by Damien Marchal.
-
AuthorPosts
-
28 September 2019 at 16:51 #14308TonyDelAbrilBlocked
Hello friends,
I’m starting to work on my end of master project, it’s aim is to reduce the order of a given soft robot model. For that, I’m using Sofa, downloaded from this binaries (https://project.inria.fr/softrobot/install-get-started-2/download/) which includes the plugin Model Order Reduction. I was recommended to start by trying to run the gui included in the plugin’s tools folder. I’m using python 2.7.12 and followed this instructions to set up the requirements: https://modelorderreduction.readthedocs.io/en/latest/usage/install/requirement.html#step-2-install-required-dependencies.
My problem is that I can’t run this command
export PYTHONPATH=$PYTHONPATH:/PathToYourSofaSrcFolder/tools/sofa-launcher
since I don’t have a src folder in my SOFA directory, I have different src folders in some plugins directories but I don’t think those are the ones referred in the command. Then, when I try to run the command to open the gui:
tony@tony-X406UAR:~/Sofa/SOFA_v19.06.99_custom_Linux_v5.1/plugins/ModelOrderReduction/tools$ sudo python gui_modelOrderReduction.py Traceback (most recent call last): File "gui_modelOrderReduction.py", line 11, in <module> from mor.gui.ui_mor import UI_mor File "/home/tony/Sofa/SOFA_v19.06.99_custom_Linux_v5.1/plugins/ModelOrderReduction/tools/../python/mor/gui/ui_mor.py", line 61, in <module> from mor.reduction import ReduceModel File "/home/tony/Sofa/SOFA_v19.06.99_custom_Linux_v5.1/plugins/ModelOrderReduction/tools/../python/mor/reduction/__init__.py", line 16, in <module> from reduceModel import ReduceModel File "/home/tony/Sofa/SOFA_v19.06.99_custom_Linux_v5.1/plugins/ModelOrderReduction/tools/../python/mor/reduction/reduceModel.py", line 40, in <module> +"export PYTHONPATH=/PathToYourSofaSrcFolder/tools/sofa-launcher") ImportError: You need to give to PYTHONPATH the path to sofa-launcher in order to use this tool Enter this command in your terminal (for temporary use) or in your .bashrc to resolve this: export PYTHONPATH=/PathToYourSofaSrcFolder/tools/sofa-launcher
How can I repair this? Any help that could be given its well appreciated. Sorry if the problem is not clearly explained, I can give any needed additional information. Thanks in advance.
Ubuntu 16.04 LTS
Sofa Version: 19.06.9930 September 2019 at 15:23 #14319HugoKeymasterHi Tony @tonydelabril
I am no expert of the SoftRobot plugin.
As the error suggests it, it seems you need the sofa-launcher able to launch several instances of SOFA.I guess you need to have the sources of SOFA somehow. @damien-marchaluniv-lille1-fr do you have an idea?
Best
Hugo
30 September 2019 at 15:47 #14320Damien MarchalBlockedHello @hugo hello @tonydelabril
I’m not very aware of the MOR plugin I think Felix or Olivier are better suited to answer.
But to give a bet I would say that the binary version is be shipped with the extra tools (including sofa-launcher) and the documentation for MOR was written for the source based version of Sofa (so taking as granted that sofa-launcher is there).
The shortest path for that consist in taking the sofa source code from git as this is where sofa-launcher. It should be possible to use the provided binary with the sofa-launcher from the source.
-
AuthorPosts
- You must be logged in to reply to this topic.