Question about running Model Order Reduction #2685
-
Hi community, I have a question about running the modelOrderReduction.py by sofa-launcher. Although I have set the environment SOFA_ROOT and PYTHONPATH, it still give me the error when I used the command s@s-virtual-machine:~/sofa/MOD/ModelOrderReduction-master/tools$ echo $PYTHONPATH s@s-virtual-machine:~/sofa/MOD/ModelOrderReduction-master/tools$ sudo python modelOrderReduction.py Can anyone help me with error? Thanks. |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 16 replies
-
Thanks a lot for your interest and sharing your issue @SamuelD5523 |
Beta Was this translation helpful? Give feedback.
-
Hello @SamuelD5523, It seems that you have a python import error for the sofa-launcher.
But it also seems that there is no sofa-launcher folder in the binaries and I don't know why... @hugtalbot ? You can nevertheless get it here and you only need the launcher.py file. |
Beta Was this translation helpful? Give feedback.
-
Hi @VannesteFelix , Thanks so much for your reply. Actually, I have already added the sofa-launcher path to the PYTHONPATH. As you can see, when I command echo $PYTHONPATH in terminal, it did return the path of sofa-launcher in the tools folder. That is why it is so confused that I couldn't run the modelOrderReduction.py. The v21.06 folder is the fold for SOFA version 21.06.
Regards. |
Beta Was this translation helpful? Give feedback.
Hi @VannesteFelix ,
Thanks so much for your reply.
Actually, I have already added the sofa-launcher path to the PYTHONPATH. As you can see, when I command echo $PYTHONPATH in terminal, it did return the path of sofa-launcher in the tools folder. That is why it is so confused that I couldn't run the modelOrderReduction.py. The v21.06 folder is the fold for SOFA version 21.06.
s@s-virtual-machine:~/sofa/MOD/ModelOrderReduction-master/tools$ echo $PYTHONPATH /home/s/sofa/v21.06/tools/sofa-launcher/
Regards.
Samuel