Repository navigation
SOFA_ROOT is empty error even when path is mapped. #4595
Answered
by
hugtalbot
Meowrad
asked this question in
SofaPython3
|
Hello, I've installed sofa as per the documentation available and its running fine with no errors. I can load a python file directly from sofa GUI. It shows warning like "Warning: environment variable SOFA_ROOT is empty. Trying to guess it." Although I've set it to my build directory. This is causing me to not open sofa when I execute a python file in terminal and get an error "ModuleNotFoundError: No module named 'Sofa'". Any help is appreciated. |
Answered by
hugtalbot
Mar 19, 2024
Replies: 1 comment 1 reply
|
Hi @Meowrad You not only need to define the |
1 reply
Answer selected by
hugtalbot
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hi @Meowrad
You not only need to define the
SOFA_ROOTvariable but thePYTHONPATHshould be edited as well as described here: https://sofapython3.readthedocs.io/en/latest/content/Installation.html#using-python3Have you set it as well?