Can not run .py files using python interpreter (OS: Ubuntu 20.04, SOFA v21.12, Python 3.7.16) #3544
-
Beta Was this translation helpful? Give feedback.
Replies: 4 comments
-
Hi everyone, |
Beta Was this translation helpful? Give feedback.
-
This therefore means that the previous PYTHONPATH is incorrect or not found. Have you checked that the path is correct? For me (also on Ubuntu), it is : You could also try in your python interpreter to run: import os
user = os.environ['PYTHONPATH'] FYI I just updated the doc (source files of the doc not yet online) in a SofaPython3 PR: sofa-framework/SofaPython3#329 Best wishes |
Beta Was this translation helpful? Give feedback.
-
|
Beta Was this translation helpful? Give feedback.
-
|
Beta Was this translation helpful? Give feedback.
Hi guys @nhnhan92 @amadou38
This therefore means that the previous PYTHONPATH is incorrect or not found. Have you checked that the path is correct?
For me (also on Ubuntu), it is :
export PYTHONPATH=/.../SOFA_v22.06.00_Linux/plugins/SofaPython3/lib/python3/site-packages/
(NOTE the difference between your path and mine with the
plugins/SofaPython3/..
)You could also try in your python interpreter to run:
FYI I just updated the doc (source files of the doc not yet online) in a SofaPython3 PR: sofa-framework/SofaPython3#329
Best wishes