Skip to content

Can not run .py files using python interpreter (OS: Ubuntu 20.04, SOFA v21.12, Python 3.7.16) #3544

Discussion options

You must be logged in to vote

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:

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

Replies: 4 comments

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Answer selected by nhnhan92
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
3 participants