28 September 2019 at 16 h 51 min #14308TonyDelAbrilParticipant
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
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 h 23 min #14319HugoKeymaster
30 September 2019 at 15 h 47 min #14320Damien MarchalParticipant
- SOFA Consortium
- CNRS/Defrost Team
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.
- You must be logged in to reply to this topic.