Forum Replies Created
-
AuthorPosts
-
mcpaluBlocked
FYI: I found my mistake. I didn’t have the system variable PYTHONHOME set to the python dir (in my case C:\Users\me\Miniconda3). Even if this was in the “path” system variable, it wasn’t enough 🙂
Bye,
Maria Chiara25 May 2021 at 12:48 in reply to: [SOLVED] SofaPython3 with v20.12.02 binary install on Win10 #19544mcpaluBlockedYou made my day!!Thanks! I had the python dir set up in the “path” system variable but not as “PYTHONHOME”. It works fine!!! Maybe it could be usefull to add this info in the docs.
Thanks!
Maria ChiaramcpaluBlockedHi @akTheTimes,
did you successful install sofapython3 on windows? I’m having some troubles. I always got the error:Fatal Python error: initfsencoding: unable to load the file system codec
ModuleNotFoundError: No module named ‘encodings’It seems like the python version sofa is trying to open is not in the variable’s system. I made the compilation and build twice to make sure the python interpreter path was the right one. I don’t understand what I’m doing wrong.
Any help would be appreciated!Thanks!
Maria Chiara24 May 2021 at 16:40 in reply to: [SOLVED] SofaPython3 with v20.12.02 binary install on Win10 #19536mcpaluBlockedDear All,
I’m facing the same problem while trying to compile sofa and sofapython3. I’m getting the same fatal error:[INFO] [SofaPython3] Initializing with python version 3.7.4 (default, Aug 9 2019, 18:34:13) [MSC v.1915 64 bit (AMD64)]
[INFO] [SofaPython3] Registering a scene loader for [.py, .py3, .pyscn, .py3scn] files.
[INFO] [SofaPython3] Intializing python
Fatal Python error: initfsencoding: unable to load the file system codec
ModuleNotFoundError: No module named ‘encodings’Current thread 0x00005980 (most recent call first):
########## SIG 22 – SIGABRT: usually caused by an abort() or assert() ##########
16: sofa::helper::BackTrace::dump – 0x7ffc956198b015: sofa::helper::BackTrace::sig – 0x7ffc95619a1014: raise – 0x7ffd03d916a013: abort – 0x7ffd03d9282012: Py_SetLocaleFromEnv – 0x7ffc6b5d305811: Py_FatalInitError – 0x7ffc6b5d2d5c10: Py_InitializeEx – 0x7ffc6b5d28ec9: sofapython3::PythonEnvironment::importFromFile – 0x7ffc8b583b608: sofapython3::PythonEnvironment::Init – 0x7ffc8b578d107: initExternalModule – 0x7ffc8b571b406: sofa::helper::system::PluginManager::loadPluginByPath – 0x7ffc956b42b05: sofa::helper::system::PluginManager::loadPluginByName – 0x7ffc956b3c904: sofa::helper::system::PluginManager::loadPlugin – 0x7ffc956b3c103: sofa::helper::system::PluginManager::loadPlugin – 0x7ffc956b3c102: sofa::helper::system::PluginManager::loadPlugin – 0x7ffc956b3c101: BaseThreadInitThunk – 0x7ffd05d670200: RtlUserThreadStart – 0x7ffd05f82630[WARNING] [SofaSimulationTree] the library has not been cleaned up (sofa::simulation::tree::cleanup() has never been called, see sofa/helper/init.h)
[WARNING] [SofaSimulationGraph] the library has not been cleaned up (sofa::simulation::graph::cleanup() has never been called, see sofa/helper/init.h)
[WARNING] [SofaSimulationCore] the library has not been cleaned up (sofa::simulation::core::cleanup() has never been called, see sofa/helper/init.h)I would really appreciate any help!
Thanks!
-
AuthorPosts