Hello all,
I am trying to build sofa from sources (Windows 11), but am having some difficulties. When using the fetched SofaPython3 I get the following error:
Python path configuration:
PYTHONHOME = (not set)
PYTHONPATH = 'C:\Users\wilke\anaconda3'
program name = 'python'
isolated = 0
environment = 1
user site = 1
import site = 1
sys._base_executable = 'E:\\Github\\sofa\\build\\bin\\RelWithDebInfo\\runSofa.exe'
sys.base_prefix = 'C:\\Users\\wilke\\anaconda3'
sys.base_exec_prefix = 'C:\\Users\\wilke\\anaconda3'
sys.platlibdir = 'lib'
sys.executable = 'E:\\Github\\sofa\\build\\bin\\RelWithDebInfo\\runSofa.exe'
sys.prefix = 'C:\\Users\\wilke\\anaconda3'
sys.exec_prefix = 'C:\\Users\\wilke\\anaconda3'
sys.path = [
'C:\\Users\\wilke\\anaconda3',
'C:\\Users\\wilke\\anaconda3\\python39.zip',
'E:\\Github\\sofa\\build\\bin\\RelWithDebInfo',
]
Fatal Python error: init_fs_encoding: failed to get the Python codec of the filesystem encoding
Python runtime state: core initialized
ModuleNotFoundError: No module named 'encodings'
As a result I have tried an out of tree build of both the master and v22.06 branches of SofaPython3, here I am getting the following error with CMake (repeated for each component):
CMake Error at E:/Github/sofa/build/lib/cmake/Sofa.Component.Collision.Response.ContactConfig.cmake:39 (include):
include could not find requested file:
E:/Github/sofa/build/lib/cmake/Sofa.Component.Collision.Response.ContactTargets.cmake
Call Stack (most recent call first):
E:/Github/sofa/build/lib/cmake/Sofa.GUI.CommonConfig.cmake:36 (find_package)
E:/Github/sofa/build/lib/cmake/SofaGuiConfig.cmake:36 (find_package)
bindings/SofaGui/CMakeLists.txt:16 (find_package)
Any help would be appreciated. Thank you in advance :)
Update:
The error with the fetched SofaPython3 was the result of conflicting Python versions detected during CMake configuration and in path and is now resolved.
Hello all,
I am trying to build sofa from sources (Windows 11), but am having some difficulties. When using the fetched SofaPython3 I get the following error:
As a result I have tried an out of tree build of both the master and v22.06 branches of SofaPython3, here I am getting the following error with CMake (repeated for each component):
Any help would be appreciated. Thank you in advance :)
Update:
The error with the fetched SofaPython3 was the result of conflicting Python versions detected during CMake configuration and in path and is now resolved.