Home › Forum › SofaPython3 › Getting Started › [SOLVED] SofaPython3 with v20.12.02 binary install on Win10
Tagged: binaries, SOFA_2012, SofaPython3, v20.12.02, VS2019, Windows_10, Windows10
- This topic has 19 replies, 4 voices, and was last updated 3 years, 5 months ago by mcpalu.
-
AuthorPosts
-
15 April 2021 at 12:43 #19181SerkanErgunAAUBlocked
Hello!
I just downloaded the newest binary of SOFA v20.12.02 on my Win10 machine.
I want to add SofaPython3 together with STLIB and Softrobots plugin, as they are already available in the plugin folder (but not added to plugin config file)When I run Sofa from cmd I get the following error:
[INFO] [SofaPython3] Initializing with python version 3.7.9 (tags/v3.7.9:13c94747c7, Aug 17 2020, 16:30:00) [MSC v.1900 64 bit (AMD64)] [INFO] [SofaPython3] Registering a scene loader for [.py, .py3, .pyscn, .py3scn] files. [INFO] [SofaPython3] Intializing python [INFO] [SofaPython3] No python3 dir found in C:/Users/seergun/SOFA/v20.12.02 ########## SIG 22 - SIGABRT: usually caused by an abort() or assert() ########## 24: sofa::helper::BackTrace::dump - 0x7ffcf044733023: sofa::helper::BackTrace::sig - 0x7ffcf044747c22: raise - 0x7ffd33bcc8d021: abort - 0x7ffd33bcda8020: terminate - 0x7ffd33bcd1f019: terminate - 0x7ffd33bcd1f018: UnhandledExceptionFilter - 0x7ffd34150f9017: memset - 0x7ffd36aa3cc016: _C_specific_handler - 0x7ffd36a8d2e015: _chkstk - 0x7ffd36aa1dd014: RtlRaiseException - 0x7ffd36a6a74013: RtlRaiseException - 0x7ffd36a6a74012: RaiseException - 0x7ffd34093ac011: CxxThrowException - 0x7ffd245f47b010: sofapython3::PythonEnvironment::getStaticData - 0x7ffcc2c8ff4c9: sofapython3::PythonEnvironment::Init - 0x7ffcc2c881388: initExternalModule - 0x7ffcc2c816507: sofa::helper::system::PluginManager::loadPluginByPath - 0x7ffcf04c93946: sofa::helper::system::PluginManager::loadPluginByName - 0x7ffcf04c8ed45: sofa::helper::system::PluginManager::loadPlugin - 0x7ffcf04c8e644: sofa::helper::system::PluginManager::readFromIniFile - 0x7ffcf04ca7c83: sofa::helper::system::PluginManager::readFromIniFile - 0x7ffcf04ca7c82: sofa::helper::system::PluginManager::readFromIniFile - 0x7ffcf04ca7c81: BaseThreadInitThunk - 0x7ffd360e7c100: RtlUserThreadStart - 0x7ffd36a6d700[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) [WARNING] [SofaCore] the library has not been cleaned up (sofa::core::cleanup() has never been called, see sofa/helper/init.h)
Somehow SofaPython3 tries to search for site-packages in the root directory of SOFA, in the following I added the python3 folder from SofaPython3 plugin to the root directory, which results in the following error:
[INFO] [SofaPython3] Added ‘C:/Users/xxxx/SOFA/v20.12.02/python3/site-packages’ to sys.path
Traceback (most recent call last):
File “<string>”, line 1, in <module>
ModuleNotFoundError: No module named ‘Sofa.livecoding’Sofa will eventually launch, it recognises *.pyscn files. But when opening one of the SoftRobot demo files inclduing STLIB it says that it cannot find the module.
16 April 2021 at 00:37 #19193HugoKeymasterHey @serkan-ergun
I am not so sure about Windows, but could you try to set up environment variable as:
– SOFA_ROOT=/path/to/SOFA
– PYTHONPATH=$SOFA_ROOT/plugins/SofaPython3/lib/python3/site-packagesHope this helps. Else @guillaumeparan might be able to help here.
Best
Hugo
16 April 2021 at 11:28 #19202GuillaumeKeymasterHi,
The line
[INFO] [SofaPython3] No python3 dir found in C:/Users/seergun/SOFA/v20.12.02
is an old issue that has not been cleaned yet, but it is not fatal.
Thus it is not the reason of your crash.What happens if you open Windows Console (cmd.exe) and run
python -V
?Hope that helps,
Guillaume.19 April 2021 at 07:32 #19205SerkanErgunAAUBlocked19 April 2021 at 07:40 #19206SerkanErgunAAUBlockedHi @hugo ,
also thanlks for your quick reply as well,
setting the variables environmentvariables (not system variables) I receive the following command window output:
(This is clearly a python error, when the path to python is not correct, I had it before I set the PYTHONPATH /PYTHONHOME to my Python 3.7 directoy correctly)[INFO] [PluginManager] Loaded plugin: C:/Users/seergun/SOFA/v20.12.02/bin/SoftRobots.dll [INFO] [SofaPython3] Initializing with python version 3.7.9 (tags/v3.7.9:13c94747c7, Aug 17 2020, 16:30:00) [MSC v.1900 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 0x00001dc0 (most recent call first): ########## SIG 22 - SIGABRT: usually caused by an abort() or assert() ########## 17: sofa::helper::BackTrace::dump - 0x7ffa14e5733016: sofa::helper::BackTrace::sig - 0x7ffa14e5747c15: raise - 0x7ffa41efc8d014: abort - 0x7ffa41efda8013: Py_RestoreSignals - 0x7ff9d54a185012: Py_FatalInitError - 0x7ff9d54a158811: Py_InitializeEx - 0x7ff9d54a112410: sofapython3::PythonEnvironment::importFromFile - 0x7ff9d56f0a0c9: sofapython3::PythonEnvironment::Init - 0x7ff9d56e81388: initExternalModule - 0x7ff9d56e16507: sofa::helper::system::PluginManager::loadPluginByPath - 0x7ffa14ed93946: sofa::helper::system::PluginManager::loadPluginByName - 0x7ffa14ed8ed45: sofa::helper::system::PluginManager::loadPlugin - 0x7ffa14ed8e644: sofa::helper::system::PluginManager::readFromIniFile - 0x7ffa14eda7c83: sofa::helper::system::PluginManager::readFromIniFile - 0x7ffa14eda7c82: sofa::helper::system::PluginManager::readFromIniFile - 0x7ffa14eda7c81: BaseThreadInitThunk - 0x7ffa427b7c100: RtlUserThreadStart - 0x7ffa444ed700[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) [WARNING] [SofaCore] the library has not been cleaned up (sofa::core::cleanup() has never been called, see sofa/helper/init.h)
Thank you both for your efforts so far.
20 April 2021 at 10:22 #19218GuillaumeKeymasterCould you please paste the entire log of your runSofa execution?
From your runSofa command line until the end of the crash log.Thanks,
Guillaume.20 April 2021 at 11:43 #19223SerkanErgunAAUBlockedPart A)
with PYTHONPATH and SOFA_ROOT set according to HugoC:\Users\seergun\SOFA\v20.12.02\bin>runSofa [INFO] [runSofa] PluginRepository paths = C:/Users/seergun/SOFA/v20.12.02/plugins;C:/Users/seergun/SOFA/v20.12.02/bin;C:/Users/seergun/SOFA/v20.12.02/bin [INFO] [runSofa] DataRepository paths = C:/Users/seergun/SOFA/v20.12.02/share/sofa;C:/Users/seergun/SOFA/v20.12.02/share/sofa/examples;C:/Users/seergun/SOFA/v20.12.02/share/sofa;C:/Users/seergun/SOFA/v20.12.02/share/sofa/examples [INFO] [runSofa] GuiDataRepository paths = C:/Users/seergun/SOFA/v20.12.02/share/sofa/gui/runSofa;C:/Users/seergun/SOFA/v20.12.02/share/sofa/gui/qt [INFO] [runSofa] Loading automatically plugin list in C:\Users\seergun\SOFA\v20.12.02\bin/plugin_list.conf [INFO] [PluginManager] Loaded plugin: C:/Users/seergun/SOFA/v20.12.02/bin/SofaSimpleFem.dll [INFO] [PluginManager] Loaded plugin: C:/Users/seergun/SOFA/v20.12.02/bin/SofaRigid.dll [INFO] [PluginManager] Loaded plugin: C:/Users/seergun/SOFA/v20.12.02/bin/SofaDeformable.dll [INFO] [PluginManager] Loaded plugin: C:/Users/seergun/SOFA/v20.12.02/bin/SofaObjectInteraction.dll [INFO] [PluginManager] Loaded plugin: C:/Users/seergun/SOFA/v20.12.02/bin/SofaMeshCollision.dll [INFO] [PluginManager] Loaded plugin: C:/Users/seergun/SOFA/v20.12.02/bin/SofaEngine.dll [INFO] [PluginManager] Loaded plugin: C:/Users/seergun/SOFA/v20.12.02/bin/SofaExplicitOdeSolver.dll [INFO] [PluginManager] Loaded plugin: C:/Users/seergun/SOFA/v20.12.02/bin/SofaImplicitOdeSolver.dll [INFO] [PluginManager] Loaded plugin: C:/Users/seergun/SOFA/v20.12.02/bin/SofaLoader.dll [INFO] [PluginManager] Loaded plugin: C:/Users/seergun/SOFA/v20.12.02/bin/SofaGeneralVisual.dll [INFO] [PluginManager] Loaded plugin: C:/Users/seergun/SOFA/v20.12.02/bin/SofaGraphComponent.dll [INFO] [PluginManager] Loaded plugin: C:/Users/seergun/SOFA/v20.12.02/bin/SofaGeneralMeshCollision.dll [INFO] [PluginManager] Loaded plugin: C:/Users/seergun/SOFA/v20.12.02/bin/SofaBoundaryCondition.dll [INFO] [PluginManager] Loaded plugin: C:/Users/seergun/SOFA/v20.12.02/bin/SofaGeneralAnimationLoop.dll [INFO] [PluginManager] Loaded plugin: C:/Users/seergun/SOFA/v20.12.02/bin/SofaGeneralDeformable.dll [INFO] [PluginManager] Loaded plugin: C:/Users/seergun/SOFA/v20.12.02/bin/SofaGeneralEngine.dll [INFO] [PluginManager] Loaded plugin: C:/Users/seergun/SOFA/v20.12.02/bin/SofaGeneralExplicitOdeSolver.dll [INFO] [PluginManager] Loaded plugin: C:/Users/seergun/SOFA/v20.12.02/bin/SofaGeneralImplicitOdeSolver.dll [INFO] [PluginManager] Loaded plugin: C:/Users/seergun/SOFA/v20.12.02/bin/SofaGeneralLinearSolver.dll [INFO] [PluginManager] Loaded plugin: C:/Users/seergun/SOFA/v20.12.02/bin/SofaGeneralRigid.dll [INFO] [PluginManager] Loaded plugin: C:/Users/seergun/SOFA/v20.12.02/bin/SofaGeneralObjectInteraction.dll [INFO] [PluginManager] Loaded plugin: C:/Users/seergun/SOFA/v20.12.02/bin/SofaGeneralSimpleFem.dll [INFO] [PluginManager] Loaded plugin: C:/Users/seergun/SOFA/v20.12.02/bin/SofaGeneralTopology.dll [INFO] [PluginManager] Loaded plugin: C:/Users/seergun/SOFA/v20.12.02/bin/SofaTopologyMapping.dll [INFO] [PluginManager] Loaded plugin: C:/Users/seergun/SOFA/v20.12.02/bin/SofaUserInteraction.dll [INFO] [PluginManager] Loaded plugin: C:/Users/seergun/SOFA/v20.12.02/bin/SofaConstraint.dll [INFO] [PluginManager] Loaded plugin: C:/Users/seergun/SOFA/v20.12.02/bin/SofaGeneralLoader.dll [INFO] [PluginManager] Loaded plugin: C:/Users/seergun/SOFA/v20.12.02/bin/SofaExporter.dll [INFO] [PluginManager] Loaded plugin: C:/Users/seergun/SOFA/v20.12.02/bin/SofaSparseSolver.dll [INFO] [PluginManager] Loaded plugin: C:/Users/seergun/SOFA/v20.12.02/bin/SofaPreconditioner.dll [INFO] [PluginManager] Loaded plugin: C:/Users/seergun/SOFA/v20.12.02/bin/SofaHaptics.dll [INFO] [PluginManager] Loaded plugin: C:/Users/seergun/SOFA/v20.12.02/bin/SofaValidation.dll [INFO] [PluginManager] Loaded plugin: C:/Users/seergun/SOFA/v20.12.02/bin/SofaDenseSolver.dll [INFO] [PluginManager] Loaded plugin: C:/Users/seergun/SOFA/v20.12.02/bin/SofaNonUniformFem.dll [INFO] [PluginManager] Loaded plugin: C:/Users/seergun/SOFA/v20.12.02/bin/SofaOpenglVisual.dll [INFO] [PluginManager] Loaded plugin: C:/Users/seergun/SOFA/v20.12.02/bin/SofaMiscTopology.dll [INFO] [PluginManager] Loaded plugin: C:/Users/seergun/SOFA/v20.12.02/bin/SofaMiscExtra.dll [INFO] [PluginManager] Loaded plugin: C:/Users/seergun/SOFA/v20.12.02/bin/SofaMiscForceField.dll [INFO] [PluginManager] Loaded plugin: C:/Users/seergun/SOFA/v20.12.02/bin/SofaMiscEngine.dll [INFO] [PluginManager] Loaded plugin: C:/Users/seergun/SOFA/v20.12.02/bin/SofaMiscSolver.dll [INFO] [PluginManager] Loaded plugin: C:/Users/seergun/SOFA/v20.12.02/bin/SofaMiscFem.dll [INFO] [PluginManager] Loaded plugin: C:/Users/seergun/SOFA/v20.12.02/bin/SofaMiscMapping.dll [INFO] [PluginManager] Loaded plugin: C:/Users/seergun/SOFA/v20.12.02/bin/CImgPlugin.dll [INFO] [PluginManager] Loaded plugin: C:/Users/seergun/SOFA/v20.12.02/bin/SofaSphFluid.dll [INFO] [PluginManager] Loaded plugin: C:/Users/seergun/SOFA/v20.12.02/bin/SofaMiscCollision.dll [INFO] [PluginManager] Loaded plugin: C:/Users/seergun/SOFA/v20.12.02/bin/STLIB.dll [INFO] [PluginManager] Loaded plugin: C:/Users/seergun/SOFA/v20.12.02/bin/SoftRobots.dll [INFO] [SofaPython3] Initializing with python version 3.7.9 (tags/v3.7.9:13c94747c7, Aug 17 2020, 16:30:00) [MSC v.1900 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 0x0000399c (most recent call first): ########## SIG 22 - SIGABRT: usually caused by an abort() or assert() ########## 17: sofa::helper::BackTrace::dump - 0x7ffd04f7733016: sofa::helper::BackTrace::sig - 0x7ffd04f7747c15: raise - 0x7ffd4031c8d014: abort - 0x7ffd4031da8013: Py_RestoreSignals - 0x7ffccf51185012: Py_FatalInitError - 0x7ffccf51158811: Py_InitializeEx - 0x7ffccf51112410: sofapython3::PythonEnvironment::importFromFile - 0x7ffccf760a0c9: sofapython3::PythonEnvironment::Init - 0x7ffccf7581388: initExternalModule - 0x7ffccf7516507: sofa::helper::system::PluginManager::loadPluginByPath - 0x7ffd04ff93946: sofa::helper::system::PluginManager::loadPluginByName - 0x7ffd04ff8ed45: sofa::helper::system::PluginManager::loadPlugin - 0x7ffd04ff8e644: sofa::helper::system::PluginManager::readFromIniFile - 0x7ffd04ffa7c83: sofa::helper::system::PluginManager::readFromIniFile - 0x7ffd04ffa7c82: sofa::helper::system::PluginManager::readFromIniFile - 0x7ffd04ffa7c81: BaseThreadInitThunk - 0x7ffd41177c100: RtlUserThreadStart - 0x7ffd4240d700[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) [WARNING] [SofaCore] the library has not been cleaned up (sofa::core::cleanup() has never been called, see sofa/helper/init.h) C:\Users\seergun\SOFA\v20.12.02\bin>
Part B)
With sofa_root and pythonpath disabled:Here runSofa launches, also the example from https://github.com/SofaDefrost/SoftRobots/tree/master/docs/thematicalDocs/T1-Elements_TetraHexaBeam/Tetra
But when I launch a file which uses STLIB I get the following error:
Microsoft Windows [Version 10.0.18363.1500] (c) 2019 Microsoft Corporation. Alle Rechte vorbehalten. C:\Users\seergun>runSofa [INFO] [runSofa] PluginRepository paths = C:/Users/seergun/SOFA/v20.12.02/plugins;C:/Users/seergun/SOFA/v20.12.02/bin;C:/Users/seergun/SOFA/v20.12.02/bin [INFO] [runSofa] DataRepository paths = C:/Users/seergun/SOFA/v20.12.02/share/sofa;C:/Users/seergun/SOFA/v20.12.02/share/sofa/examples;C:/Users/seergun/SOFA/v20.12.02/share/sofa;C:/Users/seergun/SOFA/v20.12.02/share/sofa/examples [INFO] [runSofa] GuiDataRepository paths = C:/Users/seergun/SOFA/v20.12.02/share/sofa/gui/runSofa;C:/Users/seergun/SOFA/v20.12.02/share/sofa/gui/qt [INFO] [runSofa] Loading automatically plugin list in C:/Users/seergun/SOFA/v20.12.02/bin/plugin_list.conf [INFO] [PluginManager] Loaded plugin: C:/Users/seergun/SOFA/v20.12.02/bin/SofaSimpleFem.dll [INFO] [PluginManager] Loaded plugin: C:/Users/seergun/SOFA/v20.12.02/bin/SofaRigid.dll [INFO] [PluginManager] Loaded plugin: C:/Users/seergun/SOFA/v20.12.02/bin/SofaDeformable.dll [INFO] [PluginManager] Loaded plugin: C:/Users/seergun/SOFA/v20.12.02/bin/SofaObjectInteraction.dll [INFO] [PluginManager] Loaded plugin: C:/Users/seergun/SOFA/v20.12.02/bin/SofaMeshCollision.dll [INFO] [PluginManager] Loaded plugin: C:/Users/seergun/SOFA/v20.12.02/bin/SofaEngine.dll [INFO] [PluginManager] Loaded plugin: C:/Users/seergun/SOFA/v20.12.02/bin/SofaExplicitOdeSolver.dll [INFO] [PluginManager] Loaded plugin: C:/Users/seergun/SOFA/v20.12.02/bin/SofaImplicitOdeSolver.dll [INFO] [PluginManager] Loaded plugin: C:/Users/seergun/SOFA/v20.12.02/bin/SofaLoader.dll [INFO] [PluginManager] Loaded plugin: C:/Users/seergun/SOFA/v20.12.02/bin/SofaGeneralVisual.dll [INFO] [PluginManager] Loaded plugin: C:/Users/seergun/SOFA/v20.12.02/bin/SofaGraphComponent.dll [INFO] [PluginManager] Loaded plugin: C:/Users/seergun/SOFA/v20.12.02/bin/SofaGeneralMeshCollision.dll [INFO] [PluginManager] Loaded plugin: C:/Users/seergun/SOFA/v20.12.02/bin/SofaBoundaryCondition.dll [INFO] [PluginManager] Loaded plugin: C:/Users/seergun/SOFA/v20.12.02/bin/SofaGeneralAnimationLoop.dll [INFO] [PluginManager] Loaded plugin: C:/Users/seergun/SOFA/v20.12.02/bin/SofaGeneralDeformable.dll [INFO] [PluginManager] Loaded plugin: C:/Users/seergun/SOFA/v20.12.02/bin/SofaGeneralEngine.dll [INFO] [PluginManager] Loaded plugin: C:/Users/seergun/SOFA/v20.12.02/bin/SofaGeneralExplicitOdeSolver.dll [INFO] [PluginManager] Loaded plugin: C:/Users/seergun/SOFA/v20.12.02/bin/SofaGeneralImplicitOdeSolver.dll [INFO] [PluginManager] Loaded plugin: C:/Users/seergun/SOFA/v20.12.02/bin/SofaGeneralLinearSolver.dll [INFO] [PluginManager] Loaded plugin: C:/Users/seergun/SOFA/v20.12.02/bin/SofaGeneralRigid.dll [INFO] [PluginManager] Loaded plugin: C:/Users/seergun/SOFA/v20.12.02/bin/SofaGeneralObjectInteraction.dll [INFO] [PluginManager] Loaded plugin: C:/Users/seergun/SOFA/v20.12.02/bin/SofaGeneralSimpleFem.dll [INFO] [PluginManager] Loaded plugin: C:/Users/seergun/SOFA/v20.12.02/bin/SofaGeneralTopology.dll [INFO] [PluginManager] Loaded plugin: C:/Users/seergun/SOFA/v20.12.02/bin/SofaTopologyMapping.dll [INFO] [PluginManager] Loaded plugin: C:/Users/seergun/SOFA/v20.12.02/bin/SofaUserInteraction.dll [INFO] [PluginManager] Loaded plugin: C:/Users/seergun/SOFA/v20.12.02/bin/SofaConstraint.dll [INFO] [PluginManager] Loaded plugin: C:/Users/seergun/SOFA/v20.12.02/bin/SofaGeneralLoader.dll [INFO] [PluginManager] Loaded plugin: C:/Users/seergun/SOFA/v20.12.02/bin/SofaExporter.dll [INFO] [PluginManager] Loaded plugin: C:/Users/seergun/SOFA/v20.12.02/bin/SofaSparseSolver.dll [INFO] [PluginManager] Loaded plugin: C:/Users/seergun/SOFA/v20.12.02/bin/SofaPreconditioner.dll [INFO] [PluginManager] Loaded plugin: C:/Users/seergun/SOFA/v20.12.02/bin/SofaHaptics.dll [INFO] [PluginManager] Loaded plugin: C:/Users/seergun/SOFA/v20.12.02/bin/SofaValidation.dll [INFO] [PluginManager] Loaded plugin: C:/Users/seergun/SOFA/v20.12.02/bin/SofaDenseSolver.dll [INFO] [PluginManager] Loaded plugin: C:/Users/seergun/SOFA/v20.12.02/bin/SofaNonUniformFem.dll [INFO] [PluginManager] Loaded plugin: C:/Users/seergun/SOFA/v20.12.02/bin/SofaOpenglVisual.dll [INFO] [PluginManager] Loaded plugin: C:/Users/seergun/SOFA/v20.12.02/bin/SofaMiscTopology.dll [INFO] [PluginManager] Loaded plugin: C:/Users/seergun/SOFA/v20.12.02/bin/SofaMiscExtra.dll [INFO] [PluginManager] Loaded plugin: C:/Users/seergun/SOFA/v20.12.02/bin/SofaMiscForceField.dll [INFO] [PluginManager] Loaded plugin: C:/Users/seergun/SOFA/v20.12.02/bin/SofaMiscEngine.dll [INFO] [PluginManager] Loaded plugin: C:/Users/seergun/SOFA/v20.12.02/bin/SofaMiscSolver.dll [INFO] [PluginManager] Loaded plugin: C:/Users/seergun/SOFA/v20.12.02/bin/SofaMiscFem.dll [INFO] [PluginManager] Loaded plugin: C:/Users/seergun/SOFA/v20.12.02/bin/SofaMiscMapping.dll [INFO] [PluginManager] Loaded plugin: C:/Users/seergun/SOFA/v20.12.02/bin/CImgPlugin.dll [INFO] [PluginManager] Loaded plugin: C:/Users/seergun/SOFA/v20.12.02/bin/SofaSphFluid.dll [INFO] [PluginManager] Loaded plugin: C:/Users/seergun/SOFA/v20.12.02/bin/SofaMiscCollision.dll [INFO] [PluginManager] Loaded plugin: C:/Users/seergun/SOFA/v20.12.02/bin/STLIB.dll [INFO] [PluginManager] Loaded plugin: C:/Users/seergun/SOFA/v20.12.02/bin/SoftRobots.dll [INFO] [SofaPython3] Initializing with python version 3.7.9 (tags/v3.7.9:13c94747c7, Aug 17 2020, 16:30:00) [MSC v.1900 64 bit (AMD64)] [INFO] [SofaPython3] Registering a scene loader for [.py, .py3, .pyscn, .py3scn] files. [INFO] [SofaPython3] Intializing python [INFO] [SofaPython3] Added 'C:/Users/seergun/SOFA/v20.12.02/python3/site-packages' to sys.path Traceback (most recent call last): File "<string>", line 1, in <module> ModuleNotFoundError: No module named 'Sofa.livecoding' [INFO] [PluginManager] Loaded plugin: C:/Users/seergun/SOFA/v20.12.02/bin/SofaPython3.dll [INFO] [SofaPython3] Added 'C:/Users/seergun/SOFA/v20.12.02/plugins/SofaPython3/lib/python3/site-packages' to sys.path Warning: Setting a new default format with a different version or profile after the global shared context is created may cause issues with context sharing. The constructor with a QGLFormat is deprecated, use the regular contructor instead. [INFO] [SceneCheckerVisitor] Validating node "root" with checks: [SceneCheckDuplicatedName, SceneCheckMissingRequiredPlugin, SceneCheckUsingAlias] [INFO] [SceneCheckerVisitor] Finished validating node "root". __main__:2: DeprecationWarning: the imp module is deprecated in favour of importlib; see the module's documentation for alternative uses [INFO] [SceneCheckerVisitor] Validating node "root" with checks: [SceneCheckDuplicatedName, SceneCheckMissingRequiredPlugin, SceneCheckUsingAlias] [WARNING] [SceneCheckMissingRequiredPlugin] This scene is using component defined in plugins but is not importing the required plugins. Your scene may not work on a sofa environment with different pre-loaded plugins. To fix your scene and remove this warning you just need to cut & paste the following lines at the begining of your scene (if it is a .scn): <RequiredPlugin pluginName='SofaBoundaryCondition'/> <!-- Needed to use components [FixedConstraint, ]--> <RequiredPlugin pluginName='SofaEngine'/> <!-- Needed to use components [BoxROI, ]--> <RequiredPlugin pluginName='SofaImplicitOdeSolver'/> <!-- Needed to use components [EulerImplicitSolver, ]--> <RequiredPlugin pluginName='SofaLoader'/> <!-- Needed to use components [MeshVTKLoader, ]--> <RequiredPlugin pluginName='SofaSimpleFem'/> <!-- Needed to use components [TetrahedronFEMForceField, ]--> [INFO] [SceneCheckerVisitor] Finished validating node "root". [WARNING] [TetrahedronSetTopologyContainer(container)] getElementAroundElements: TetrahedraAroundVertexArray is empty. Be sure to call createTetrahedraAroundVertexArray first. [WARNING] [TetrahedronSetTopologyContainer(container)] CheckConnexity: Tetrahedra are missings. There is more than one connexe component. [WARNING] [TetrahedronSetTopologyContainer(container)] Data alone linked: tetrahedra [WARNING] [TetrahedronSetTopologyContainer(container)] Data alone linked: triangles [WARNING] [TetrahedronSetTopologyContainer(container)] Data alone linked: edges [ERROR] [SofaPython3::SceneLoader] ModuleNotFoundError: No module named 'stlib' At: sphere_vs_floor.pyscn(3): <module> <frozen importlib._bootstrap>(219): _call_with_frames_removed <frozen importlib._bootstrap_external>(728): exec_module <frozen importlib._bootstrap>(677): _load_unlocked <frozen importlib._bootstrap>(696): _load C:\Program Files\WindowsApps\PythonSoftwareFoundation.Python.3.7_3.7.2544.0_x64__qbz5n2kfra8p0\Lib\imp.py(171): load_source C:\Program Files\WindowsApps\PythonSoftwareFoundation.Python.3.7_3.7.2544.0_x64__qbz5n2kfra8p0\Lib\imp.py(234): load_module <string>(3): <module> [INFO] [SceneCheckerVisitor] Validating node "root" with checks: [SceneCheckDuplicatedName, SceneCheckMissingRequiredPlugin, SceneCheckUsingAlias] [INFO] [SceneCheckerVisitor] Finished validating node "root". [WARNING] [RealGUI] Global Bounding Box seems very small; Your viewer settings (based on the bbox) are likely invalid, switching to default value of [-1,-1,-1,1,1,1].This is caused by using component which does not implement properly
STLIB was nevertheless loaded according to terminal output.
The files looks as follows:
import Sofa import os from stlib.scene import MainHeader, ContactHeader from stlib.visuals import ShowGrid from stlib.physics.rigid import Floor from stlib.physics.rigid import cube from stlib.solver import DefaultSolver def createScene(rootNode): .....
20 April 2021 at 14:50 #19225GuillaumeKeymasterI think I understand the issue.
Please try running
runSofa -lSofaPython3
to force SofaPython3 to be loaded before any other plugin.
OR, you can also move upper the SofaPython3 line you added inplugin_list.conf
(I suppose you did that).The thing is SofaPython3 must be loaded before STLIB in order to have STLIB’s site-packages added to
sys.path
`.Hope that helps,
Guillaume.20 April 2021 at 15:06 #19226SerkanErgunAAUBlockedHi Guillaume,
huge thanks to you for your persistance into solving my issue.
As you already assumed, I placed SofaPython3 on top of all the plugins to be loaded.
Unfortunately,
runSofa -l SofaPython3
produces the same error ouput.Also I have a additional question:
What is the difference between stlib and stlib3 (the new py3scn scenes use stlib3 in their import command instead of stlib), in the plugin directory there is only a STLIB dir)?Thank you ever so much,
Serkan
20 April 2021 at 15:56 #19231GuillaumeKeymasterIndeed stlib3 contains a python3 version of STLIB.
It is located inSTLIB/lib/python3/site-packages
.Actually you have to choose :
– If you runrunSofa -lSofaPython -lSTLIB
(with python2 correctly set up in your environment) you will be able to load python2 scenes which containimport stlib
– If you runrunSofa -lSofaPython3 -lSTLIB
(with python3 correctly set up in your environment) you will be able to load python3 scenes which containimport stlib3
Thus, if you do
runSofa -lSofaPython3 -lSTLIB
you CANNOT load a scene which containsimport stlib
because the “stlib” package is a python2 package.If the “stlib” package is critical for you and cannot be replaced with “stlib3”, you will have to switch to SofaPython2 (and setup python2 in your environment).
Hope that helps,
Guillaume.20 April 2021 at 16:15 #19232SerkanErgunAAUBlockedSo, just to fully understand the issue:
I do the following:
runSofa -lSofaPython3 -lSTLIB
usingimport stlib3
For instance I open the following file in SOFA: https://github.com/SofaDefrost/SoftRobots/blob/master/docs/tutorials/FirstSteps/details/step4.pyscn
C:\Users\seergun\SOFA\v20.12.02\bin>runSofa -lSofaPython3 -lSTLIB [INFO] [runSofa] PluginRepository paths = C:/Users/seergun/SOFA/v20.12.02/plugins;C:/Users/seergun/SOFA/v20.12.02/bin;C:/Users/seergun/SOFA/v20.12.02/bin [INFO] [runSofa] DataRepository paths = C:/Users/seergun/SOFA/v20.12.02/share/sofa;C:/Users/seergun/SOFA/v20.12.02/share/sofa/examples;C:/Users/seergun/SOFA/v20.12.02/share/sofa;C:/Users/seergun/SOFA/v20.12.02/share/sofa/examples [INFO] [runSofa] GuiDataRepository paths = C:/Users/seergun/SOFA/v20.12.02/share/sofa/gui/runSofa;C:/Users/seergun/SOFA/v20.12.02/share/sofa/gui/qt [INFO] [SofaPython3] Initializing with python version 3.7.9 (tags/v3.7.9:13c94747c7, Aug 17 2020, 16:30:00) [MSC v.1900 64 bit (AMD64)] [INFO] [SofaPython3] Registering a scene loader for [.py, .py3, .pyscn, .py3scn] files. [INFO] [SofaPython3] Intializing python [INFO] [SofaPython3] No python3 dir found in C:/Users/seergun/SOFA/v20.12.02 Traceback (most recent call last): File "<string>", line 1, in <module> ModuleNotFoundError: No module named 'Sofa.livecoding' [INFO] [PluginManager] Loaded plugin: C:/Users/seergun/SOFA/v20.12.02/bin/SofaPython3.dll [INFO] [SofaPython3] Added 'C:/Users/seergun/SOFA/v20.12.02/plugins/SofaPython3/lib/python3/site-packages' to sys.path [INFO] [PluginManager] Loaded plugin: C:/Users/seergun/SOFA/v20.12.02/bin/STLIB.dll [INFO] [SofaPython3] No python3 dir found in C:/Users/seergun/SOFA/v20.12.02/plugins/STLIB [INFO] [runSofa] Loading automatically plugin list in C:\Users\seergun\SOFA\v20.12.02\bin/plugin_list.conf [INFO] [PluginManager] Loaded plugin: C:/Users/seergun/SOFA/v20.12.02/bin/SofaSimpleFem.dll [INFO] [SofaPython3] No python3 dir found in C:/Users/seergun/SOFA/v20.12.02/plugins/SofaSimpleFem [INFO] [PluginManager] Loaded plugin: C:/Users/seergun/SOFA/v20.12.02/bin/SofaRigid.dll [INFO] [SofaPython3] No python3 dir found in C:/Users/seergun/SOFA/v20.12.02/plugins/SofaRigid [INFO] [PluginManager] Loaded plugin: C:/Users/seergun/SOFA/v20.12.02/bin/SofaDeformable.dll [INFO] [SofaPython3] No python3 dir found in C:/Users/seergun/SOFA/v20.12.02/plugins/SofaDeformable [INFO] [PluginManager] Loaded plugin: C:/Users/seergun/SOFA/v20.12.02/bin/SofaObjectInteraction.dll [INFO] [SofaPython3] No python3 dir found in C:/Users/seergun/SOFA/v20.12.02/plugins/SofaObjectInteraction [INFO] [PluginManager] Loaded plugin: C:/Users/seergun/SOFA/v20.12.02/bin/SofaMeshCollision.dll [INFO] [SofaPython3] No python3 dir found in C:/Users/seergun/SOFA/v20.12.02/plugins/SofaMeshCollision [INFO] [PluginManager] Loaded plugin: C:/Users/seergun/SOFA/v20.12.02/bin/SofaEngine.dll [INFO] [SofaPython3] No python3 dir found in C:/Users/seergun/SOFA/v20.12.02/plugins/SofaEngine [INFO] [PluginManager] Loaded plugin: C:/Users/seergun/SOFA/v20.12.02/bin/SofaExplicitOdeSolver.dll [INFO] [SofaPython3] No python3 dir found in C:/Users/seergun/SOFA/v20.12.02/plugins/SofaExplicitOdeSolver [INFO] [PluginManager] Loaded plugin: C:/Users/seergun/SOFA/v20.12.02/bin/SofaImplicitOdeSolver.dll [INFO] [SofaPython3] No python3 dir found in C:/Users/seergun/SOFA/v20.12.02/plugins/SofaImplicitOdeSolver [INFO] [PluginManager] Loaded plugin: C:/Users/seergun/SOFA/v20.12.02/bin/SofaLoader.dll [INFO] [SofaPython3] No python3 dir found in C:/Users/seergun/SOFA/v20.12.02/plugins/SofaLoader [INFO] [PluginManager] Loaded plugin: C:/Users/seergun/SOFA/v20.12.02/bin/SofaGeneralVisual.dll [INFO] [SofaPython3] No python3 dir found in C:/Users/seergun/SOFA/v20.12.02/plugins/SofaGeneralVisual [INFO] [PluginManager] Loaded plugin: C:/Users/seergun/SOFA/v20.12.02/bin/SofaGraphComponent.dll [INFO] [SofaPython3] No python3 dir found in C:/Users/seergun/SOFA/v20.12.02/plugins/SofaGraphComponent [INFO] [PluginManager] Loaded plugin: C:/Users/seergun/SOFA/v20.12.02/bin/SofaGeneralMeshCollision.dll [INFO] [SofaPython3] No python3 dir found in C:/Users/seergun/SOFA/v20.12.02/plugins/SofaGeneralMeshCollision [INFO] [PluginManager] Loaded plugin: C:/Users/seergun/SOFA/v20.12.02/bin/SofaBoundaryCondition.dll [INFO] [SofaPython3] No python3 dir found in C:/Users/seergun/SOFA/v20.12.02/plugins/SofaBoundaryCondition [INFO] [PluginManager] Loaded plugin: C:/Users/seergun/SOFA/v20.12.02/bin/SofaGeneralAnimationLoop.dll [INFO] [SofaPython3] No python3 dir found in C:/Users/seergun/SOFA/v20.12.02/plugins/SofaGeneralAnimationLoop [INFO] [PluginManager] Loaded plugin: C:/Users/seergun/SOFA/v20.12.02/bin/SofaGeneralDeformable.dll [INFO] [SofaPython3] No python3 dir found in C:/Users/seergun/SOFA/v20.12.02/plugins/SofaGeneralDeformable [INFO] [PluginManager] Loaded plugin: C:/Users/seergun/SOFA/v20.12.02/bin/SofaGeneralEngine.dll [INFO] [SofaPython3] No python3 dir found in C:/Users/seergun/SOFA/v20.12.02/plugins/SofaGeneralEngine [INFO] [PluginManager] Loaded plugin: C:/Users/seergun/SOFA/v20.12.02/bin/SofaGeneralExplicitOdeSolver.dll [INFO] [SofaPython3] No python3 dir found in C:/Users/seergun/SOFA/v20.12.02/plugins/SofaGeneralExplicitOdeSolver [INFO] [PluginManager] Loaded plugin: C:/Users/seergun/SOFA/v20.12.02/bin/SofaGeneralImplicitOdeSolver.dll [INFO] [SofaPython3] No python3 dir found in C:/Users/seergun/SOFA/v20.12.02/plugins/SofaGeneralImplicitOdeSolver [INFO] [PluginManager] Loaded plugin: C:/Users/seergun/SOFA/v20.12.02/bin/SofaGeneralLinearSolver.dll [INFO] [SofaPython3] No python3 dir found in C:/Users/seergun/SOFA/v20.12.02/plugins/SofaGeneralLinearSolver [INFO] [PluginManager] Loaded plugin: C:/Users/seergun/SOFA/v20.12.02/bin/SofaGeneralRigid.dll [INFO] [SofaPython3] No python3 dir found in C:/Users/seergun/SOFA/v20.12.02/plugins/SofaGeneralRigid [INFO] [PluginManager] Loaded plugin: C:/Users/seergun/SOFA/v20.12.02/bin/SofaGeneralObjectInteraction.dll [INFO] [SofaPython3] No python3 dir found in C:/Users/seergun/SOFA/v20.12.02/plugins/SofaGeneralObjectInteraction [INFO] [PluginManager] Loaded plugin: C:/Users/seergun/SOFA/v20.12.02/bin/SofaGeneralSimpleFem.dll [INFO] [SofaPython3] No python3 dir found in C:/Users/seergun/SOFA/v20.12.02/plugins/SofaGeneralSimpleFem [INFO] [PluginManager] Loaded plugin: C:/Users/seergun/SOFA/v20.12.02/bin/SofaGeneralTopology.dll [INFO] [SofaPython3] No python3 dir found in C:/Users/seergun/SOFA/v20.12.02/plugins/SofaGeneralTopology [INFO] [PluginManager] Loaded plugin: C:/Users/seergun/SOFA/v20.12.02/bin/SofaTopologyMapping.dll [INFO] [SofaPython3] No python3 dir found in C:/Users/seergun/SOFA/v20.12.02/plugins/SofaTopologyMapping [INFO] [PluginManager] Loaded plugin: C:/Users/seergun/SOFA/v20.12.02/bin/SofaUserInteraction.dll [INFO] [SofaPython3] No python3 dir found in C:/Users/seergun/SOFA/v20.12.02/plugins/SofaUserInteraction [INFO] [PluginManager] Loaded plugin: C:/Users/seergun/SOFA/v20.12.02/bin/SofaConstraint.dll [INFO] [SofaPython3] No python3 dir found in C:/Users/seergun/SOFA/v20.12.02/plugins/SofaConstraint [INFO] [PluginManager] Loaded plugin: C:/Users/seergun/SOFA/v20.12.02/bin/SofaGeneralLoader.dll [INFO] [SofaPython3] No python3 dir found in C:/Users/seergun/SOFA/v20.12.02/plugins/SofaGeneralLoader [INFO] [PluginManager] Loaded plugin: C:/Users/seergun/SOFA/v20.12.02/bin/SofaExporter.dll [INFO] [SofaPython3] No python3 dir found in C:/Users/seergun/SOFA/v20.12.02/plugins/SofaExporter [INFO] [PluginManager] Loaded plugin: C:/Users/seergun/SOFA/v20.12.02/bin/SofaSparseSolver.dll [INFO] [SofaPython3] No python3 dir found in C:/Users/seergun/SOFA/v20.12.02/plugins/SofaSparseSolver [INFO] [PluginManager] Loaded plugin: C:/Users/seergun/SOFA/v20.12.02/bin/SofaPreconditioner.dll [INFO] [SofaPython3] No python3 dir found in C:/Users/seergun/SOFA/v20.12.02/plugins/SofaPreconditioner [INFO] [PluginManager] Loaded plugin: C:/Users/seergun/SOFA/v20.12.02/bin/SofaHaptics.dll [INFO] [SofaPython3] No python3 dir found in C:/Users/seergun/SOFA/v20.12.02/plugins/SofaHaptics [INFO] [PluginManager] Loaded plugin: C:/Users/seergun/SOFA/v20.12.02/bin/SofaValidation.dll [INFO] [SofaPython3] No python3 dir found in C:/Users/seergun/SOFA/v20.12.02/plugins/SofaValidation [INFO] [PluginManager] Loaded plugin: C:/Users/seergun/SOFA/v20.12.02/bin/SofaDenseSolver.dll [INFO] [SofaPython3] No python3 dir found in C:/Users/seergun/SOFA/v20.12.02/plugins/SofaDenseSolver [INFO] [PluginManager] Loaded plugin: C:/Users/seergun/SOFA/v20.12.02/bin/SofaNonUniformFem.dll [INFO] [SofaPython3] No python3 dir found in C:/Users/seergun/SOFA/v20.12.02/plugins/SofaNonUniformFem [INFO] [PluginManager] Loaded plugin: C:/Users/seergun/SOFA/v20.12.02/bin/SofaOpenglVisual.dll [INFO] [SofaPython3] No python3 dir found in C:/Users/seergun/SOFA/v20.12.02/plugins/SofaOpenglVisual [INFO] [PluginManager] Loaded plugin: C:/Users/seergun/SOFA/v20.12.02/bin/SofaMiscTopology.dll [INFO] [SofaPython3] No python3 dir found in C:/Users/seergun/SOFA/v20.12.02/plugins/SofaMiscTopology [INFO] [PluginManager] Loaded plugin: C:/Users/seergun/SOFA/v20.12.02/bin/SofaMiscExtra.dll [INFO] [SofaPython3] No python3 dir found in C:/Users/seergun/SOFA/v20.12.02/plugins/SofaMiscExtra [INFO] [PluginManager] Loaded plugin: C:/Users/seergun/SOFA/v20.12.02/bin/SofaMiscForceField.dll [INFO] [SofaPython3] No python3 dir found in C:/Users/seergun/SOFA/v20.12.02/plugins/SofaMiscForceField [INFO] [PluginManager] Loaded plugin: C:/Users/seergun/SOFA/v20.12.02/bin/SofaMiscEngine.dll [INFO] [SofaPython3] No python3 dir found in C:/Users/seergun/SOFA/v20.12.02/plugins/SofaMiscEngine [INFO] [PluginManager] Loaded plugin: C:/Users/seergun/SOFA/v20.12.02/bin/SofaMiscSolver.dll [INFO] [SofaPython3] No python3 dir found in C:/Users/seergun/SOFA/v20.12.02/plugins/SofaMiscSolver [INFO] [PluginManager] Loaded plugin: C:/Users/seergun/SOFA/v20.12.02/bin/SofaMiscFem.dll [INFO] [SofaPython3] No python3 dir found in C:/Users/seergun/SOFA/v20.12.02/plugins/SofaMiscFem [INFO] [PluginManager] Loaded plugin: C:/Users/seergun/SOFA/v20.12.02/bin/SofaMiscMapping.dll [INFO] [SofaPython3] No python3 dir found in C:/Users/seergun/SOFA/v20.12.02/plugins/SofaMiscMapping [INFO] [PluginManager] Loaded plugin: C:/Users/seergun/SOFA/v20.12.02/bin/CImgPlugin.dll [INFO] [SofaPython3] No python3 dir found in C:/Users/seergun/SOFA/v20.12.02/plugins/CImgPlugin [INFO] [PluginManager] Loaded plugin: C:/Users/seergun/SOFA/v20.12.02/bin/SofaSphFluid.dll [INFO] [SofaPython3] No python3 dir found in C:/Users/seergun/SOFA/v20.12.02/plugins/SofaSphFluid [INFO] [PluginManager] Loaded plugin: C:/Users/seergun/SOFA/v20.12.02/bin/SofaMiscCollision.dll [INFO] [SofaPython3] No python3 dir found in C:/Users/seergun/SOFA/v20.12.02/plugins/SofaMiscCollision [INFO] [PluginManager] Loaded plugin: C:/Users/seergun/SOFA/v20.12.02/bin/SoftRobots.dll [INFO] [SofaPython3] No python3 dir found in C:/Users/seergun/SOFA/v20.12.02/plugins/SoftRobots Warning: Setting a new default format with a different version or profile after the global shared context is created may cause issues with context sharing. The constructor with a QGLFormat is deprecated, use the regular contructor instead. [INFO] [SceneCheckerVisitor] Validating node "root" with checks: [SceneCheckDuplicatedName, SceneCheckMissingRequiredPlugin, SceneCheckUsingAlias] [INFO] [SceneCheckerVisitor] Finished validating node "root". __main__:2: DeprecationWarning: the imp module is deprecated in favour of importlib; see the module's documentation for alternative uses [ERROR] [SofaPython3::SceneLoader] ModuleNotFoundError: No module named 'stlib3' At: step4.py3scn(1): <module> <frozen importlib._bootstrap>(219): _call_with_frames_removed <frozen importlib._bootstrap_external>(728): exec_module <frozen importlib._bootstrap>(677): _load_unlocked <frozen importlib._bootstrap>(696): _load C:\Program Files\WindowsApps\PythonSoftwareFoundation.Python.3.7_3.7.2544.0_x64__qbz5n2kfra8p0\Lib\imp.py(171): load_source C:\Program Files\WindowsApps\PythonSoftwareFoundation.Python.3.7_3.7.2544.0_x64__qbz5n2kfra8p0\Lib\imp.py(234): load_module <string>(3): <module> [INFO] [SceneCheckerVisitor] Validating node "root" with checks: [SceneCheckDuplicatedName, SceneCheckMissingRequiredPlugin, SceneCheckUsingAlias] [INFO] [SceneCheckerVisitor] Finished validating node "root". [WARNING] [RealGUI] Global Bounding Box seems very small; Your viewer settings (based on the bbox) are likely invalid, switching to default value of [-1,-1,-1,1,1,1].This is caused by using component which does not implement properly the updateBBox function.You can remove this warning by manually forcing a value in the parameter bbox="minX minY minZ maxX maxY maxZ" in your root node
The error output is merely the same.
But this should work in this manner, right?
Thank you again,
Serkan
20 April 2021 at 16:37 #19233GuillaumeKeymasterWhere did you put
import stlib3
?
I’m afraid you won’t be able to simply convert a scene using stlib/splib (python2) by replacing all the imports to stlib3/splib3 (python3) because, as far as I know, all stlib/splib features have not been ported to stlib3/splib3.In your output, the line
[INFO] [SofaPython3] No python3 dir found in C:/Users/seergun/SOFA/v20.12.02/plugins/STLIB
is not normal.
SofaPython3 should findC:/Users/seergun/SOFA/v20.12.02/plugins/STLIB/lib/python3/site-packages
.
Do you have this directory?20 April 2021 at 16:41 #19234SerkanErgunAAUBlockedpardon me, I gave you the wrong link to the file I tested:
This is the file I used for testing:
https://github.com/SofaDefrost/SoftRobots/blob/master/docs/tutorials/FirstSteps/details/sofapython3/step4.py3scnPer default, there is no site-packages folder included in this directory:
C:/Users/seergun/SOFA/v20.12.02/plugins/STLIB/lib/python3
20 April 2021 at 16:50 #19235GuillaumeKeymasterOk, there is an issue with SOFA “.exe” installer, thanks for spotting that!
Could you replace your SOFA with the “.zip” version and try again?
21 April 2021 at 08:35 #19237SerkanErgunAAUBlockedI downloaded the “zip” version now. STLIB apparently can be loaded now (the directoy contains a site-packages folder now)
Unfortunately I am presented with the following error
[ERROR] [SofaPython3::SceneLoader] AttributeError: module 'Sofa' has no attribute 'Prefab'
when loading the file from https://github.com/SofaDefrost/SoftRobots/blob/master/docs/tutorials/FirstSteps/details/sofapython3/step4.py3scnHere is (once more) the full cmd output:
Microsoft Windows [Version 10.0.18363.1500] (c) 2019 Microsoft Corporation. Alle Rechte vorbehalten. C:\Users\seergun>cd SOFA C:\Users\seergun\SOFA>cd v20.12.02_V2 C:\Users\seergun\SOFA\v20.12.02_V2>cd bin C:\Users\seergun\SOFA\v20.12.02_V2\bin>runSofa [INFO] [runSofa] PluginRepository paths = C:/Users/seergun/SOFA/v20.12.02_V2/plugins;C:/Users/seergun/SOFA/v20.12.02_V2/bin;C:/Users/seergun/SOFA/v20.12.02_V2/bin [INFO] [runSofa] DataRepository paths = C:/Users/seergun/SOFA/v20.12.02_V2/share/sofa;C:/Users/seergun/SOFA/v20.12.02_V2/share/sofa/examples;C:/Users/seergun/SOFA/v20.12.02_V2/share/sofa;C:/Users/seergun/SOFA/v20.12.02_V2/share/sofa/examples [INFO] [runSofa] GuiDataRepository paths = C:/Users/seergun/SOFA/v20.12.02_V2/share/sofa/gui/runSofa;C:/Users/seergun/SOFA/v20.12.02_V2/share/sofa/gui/qt [INFO] [BaseGUI] Created directory: C:/Users/seergun/SOFA/v20.12.02_V2/config [INFO] [BaseGUI] Created directory: C:/Users/seergun/SOFA/v20.12.02_V2/screenshots [INFO] [runSofa] Loading automatically plugin list in C:\Users\seergun\SOFA\v20.12.02_V2\bin/plugin_list.conf [INFO] [SofaPython3] Initializing with python version 3.7.9 (tags/v3.7.9:13c94747c7, Aug 17 2020, 16:30:00) [MSC v.1900 64 bit (AMD64)] [INFO] [SofaPython3] Registering a scene loader for [.py, .py3, .pyscn, .py3scn] files. [INFO] [SofaPython3] Intializing python [INFO] [SofaPython3] No python3 dir found in C:/Users/seergun/SOFA/v20.12.02_V2 Traceback (most recent call last): File "<string>", line 1, in <module> ModuleNotFoundError: No module named 'Sofa.livecoding' [INFO] [PluginManager] Loaded plugin: C:/Users/seergun/SOFA/v20.12.02_V2/bin/SofaPython3.dll [INFO] [SofaPython3] Added 'C:/Users/seergun/SOFA/v20.12.02_V2/plugins/SofaPython3/lib/python3/site-packages' to sys.path [INFO] [PluginManager] Loaded plugin: C:/Users/seergun/SOFA/v20.12.02_V2/bin/SofaSimpleFem.dll [INFO] [SofaPython3] No python3 dir found in C:/Users/seergun/SOFA/v20.12.02_V2/plugins/SofaSimpleFem [INFO] [PluginManager] Loaded plugin: C:/Users/seergun/SOFA/v20.12.02_V2/bin/SofaRigid.dll [INFO] [SofaPython3] No python3 dir found in C:/Users/seergun/SOFA/v20.12.02_V2/plugins/SofaRigid [INFO] [PluginManager] Loaded plugin: C:/Users/seergun/SOFA/v20.12.02_V2/bin/SofaDeformable.dll [INFO] [SofaPython3] No python3 dir found in C:/Users/seergun/SOFA/v20.12.02_V2/plugins/SofaDeformable [INFO] [PluginManager] Loaded plugin: C:/Users/seergun/SOFA/v20.12.02_V2/bin/SofaObjectInteraction.dll [INFO] [SofaPython3] No python3 dir found in C:/Users/seergun/SOFA/v20.12.02_V2/plugins/SofaObjectInteraction [INFO] [PluginManager] Loaded plugin: C:/Users/seergun/SOFA/v20.12.02_V2/bin/SofaMeshCollision.dll [INFO] [SofaPython3] No python3 dir found in C:/Users/seergun/SOFA/v20.12.02_V2/plugins/SofaMeshCollision [INFO] [PluginManager] Loaded plugin: C:/Users/seergun/SOFA/v20.12.02_V2/bin/SofaEngine.dll [INFO] [SofaPython3] No python3 dir found in C:/Users/seergun/SOFA/v20.12.02_V2/plugins/SofaEngine [INFO] [PluginManager] Loaded plugin: C:/Users/seergun/SOFA/v20.12.02_V2/bin/SofaExplicitOdeSolver.dll [INFO] [SofaPython3] No python3 dir found in C:/Users/seergun/SOFA/v20.12.02_V2/plugins/SofaExplicitOdeSolver [INFO] [PluginManager] Loaded plugin: C:/Users/seergun/SOFA/v20.12.02_V2/bin/SofaImplicitOdeSolver.dll [INFO] [SofaPython3] No python3 dir found in C:/Users/seergun/SOFA/v20.12.02_V2/plugins/SofaImplicitOdeSolver [INFO] [PluginManager] Loaded plugin: C:/Users/seergun/SOFA/v20.12.02_V2/bin/SofaLoader.dll [INFO] [SofaPython3] No python3 dir found in C:/Users/seergun/SOFA/v20.12.02_V2/plugins/SofaLoader [INFO] [PluginManager] Loaded plugin: C:/Users/seergun/SOFA/v20.12.02_V2/bin/SofaGeneralVisual.dll [INFO] [SofaPython3] No python3 dir found in C:/Users/seergun/SOFA/v20.12.02_V2/plugins/SofaGeneralVisual [INFO] [PluginManager] Loaded plugin: C:/Users/seergun/SOFA/v20.12.02_V2/bin/SofaGraphComponent.dll [INFO] [SofaPython3] No python3 dir found in C:/Users/seergun/SOFA/v20.12.02_V2/plugins/SofaGraphComponent [INFO] [PluginManager] Loaded plugin: C:/Users/seergun/SOFA/v20.12.02_V2/bin/SofaGeneralMeshCollision.dll [INFO] [SofaPython3] No python3 dir found in C:/Users/seergun/SOFA/v20.12.02_V2/plugins/SofaGeneralMeshCollision [INFO] [PluginManager] Loaded plugin: C:/Users/seergun/SOFA/v20.12.02_V2/bin/SofaBoundaryCondition.dll [INFO] [SofaPython3] No python3 dir found in C:/Users/seergun/SOFA/v20.12.02_V2/plugins/SofaBoundaryCondition [INFO] [PluginManager] Loaded plugin: C:/Users/seergun/SOFA/v20.12.02_V2/bin/SofaGeneralAnimationLoop.dll [INFO] [SofaPython3] No python3 dir found in C:/Users/seergun/SOFA/v20.12.02_V2/plugins/SofaGeneralAnimationLoop [INFO] [PluginManager] Loaded plugin: C:/Users/seergun/SOFA/v20.12.02_V2/bin/SofaGeneralDeformable.dll [INFO] [SofaPython3] No python3 dir found in C:/Users/seergun/SOFA/v20.12.02_V2/plugins/SofaGeneralDeformable [INFO] [PluginManager] Loaded plugin: C:/Users/seergun/SOFA/v20.12.02_V2/bin/SofaGeneralEngine.dll [INFO] [SofaPython3] No python3 dir found in C:/Users/seergun/SOFA/v20.12.02_V2/plugins/SofaGeneralEngine [INFO] [PluginManager] Loaded plugin: C:/Users/seergun/SOFA/v20.12.02_V2/bin/SofaGeneralExplicitOdeSolver.dll [INFO] [SofaPython3] No python3 dir found in C:/Users/seergun/SOFA/v20.12.02_V2/plugins/SofaGeneralExplicitOdeSolver [INFO] [PluginManager] Loaded plugin: C:/Users/seergun/SOFA/v20.12.02_V2/bin/SofaGeneralImplicitOdeSolver.dll [INFO] [SofaPython3] No python3 dir found in C:/Users/seergun/SOFA/v20.12.02_V2/plugins/SofaGeneralImplicitOdeSolver [INFO] [PluginManager] Loaded plugin: C:/Users/seergun/SOFA/v20.12.02_V2/bin/SofaGeneralLinearSolver.dll [INFO] [SofaPython3] No python3 dir found in C:/Users/seergun/SOFA/v20.12.02_V2/plugins/SofaGeneralLinearSolver [INFO] [PluginManager] Loaded plugin: C:/Users/seergun/SOFA/v20.12.02_V2/bin/SofaGeneralRigid.dll [INFO] [SofaPython3] No python3 dir found in C:/Users/seergun/SOFA/v20.12.02_V2/plugins/SofaGeneralRigid [INFO] [PluginManager] Loaded plugin: C:/Users/seergun/SOFA/v20.12.02_V2/bin/SofaGeneralObjectInteraction.dll [INFO] [SofaPython3] No python3 dir found in C:/Users/seergun/SOFA/v20.12.02_V2/plugins/SofaGeneralObjectInteraction [INFO] [PluginManager] Loaded plugin: C:/Users/seergun/SOFA/v20.12.02_V2/bin/SofaGeneralSimpleFem.dll [INFO] [SofaPython3] No python3 dir found in C:/Users/seergun/SOFA/v20.12.02_V2/plugins/SofaGeneralSimpleFem [INFO] [PluginManager] Loaded plugin: C:/Users/seergun/SOFA/v20.12.02_V2/bin/SofaGeneralTopology.dll [INFO] [SofaPython3] No python3 dir found in C:/Users/seergun/SOFA/v20.12.02_V2/plugins/SofaGeneralTopology [INFO] [PluginManager] Loaded plugin: C:/Users/seergun/SOFA/v20.12.02_V2/bin/SofaTopologyMapping.dll [INFO] [SofaPython3] No python3 dir found in C:/Users/seergun/SOFA/v20.12.02_V2/plugins/SofaTopologyMapping [INFO] [PluginManager] Loaded plugin: C:/Users/seergun/SOFA/v20.12.02_V2/bin/SofaUserInteraction.dll [INFO] [SofaPython3] No python3 dir found in C:/Users/seergun/SOFA/v20.12.02_V2/plugins/SofaUserInteraction [INFO] [PluginManager] Loaded plugin: C:/Users/seergun/SOFA/v20.12.02_V2/bin/SofaConstraint.dll [INFO] [SofaPython3] No python3 dir found in C:/Users/seergun/SOFA/v20.12.02_V2/plugins/SofaConstraint [INFO] [PluginManager] Loaded plugin: C:/Users/seergun/SOFA/v20.12.02_V2/bin/SofaGeneralLoader.dll [INFO] [SofaPython3] No python3 dir found in C:/Users/seergun/SOFA/v20.12.02_V2/plugins/SofaGeneralLoader [INFO] [PluginManager] Loaded plugin: C:/Users/seergun/SOFA/v20.12.02_V2/bin/SofaExporter.dll [INFO] [SofaPython3] No python3 dir found in C:/Users/seergun/SOFA/v20.12.02_V2/plugins/SofaExporter [INFO] [PluginManager] Loaded plugin: C:/Users/seergun/SOFA/v20.12.02_V2/bin/SofaSparseSolver.dll [INFO] [SofaPython3] No python3 dir found in C:/Users/seergun/SOFA/v20.12.02_V2/plugins/SofaSparseSolver [INFO] [PluginManager] Loaded plugin: C:/Users/seergun/SOFA/v20.12.02_V2/bin/SofaPreconditioner.dll [INFO] [SofaPython3] No python3 dir found in C:/Users/seergun/SOFA/v20.12.02_V2/plugins/SofaPreconditioner [INFO] [PluginManager] Loaded plugin: C:/Users/seergun/SOFA/v20.12.02_V2/bin/SofaHaptics.dll [INFO] [SofaPython3] No python3 dir found in C:/Users/seergun/SOFA/v20.12.02_V2/plugins/SofaHaptics [INFO] [PluginManager] Loaded plugin: C:/Users/seergun/SOFA/v20.12.02_V2/bin/SofaValidation.dll [INFO] [SofaPython3] No python3 dir found in C:/Users/seergun/SOFA/v20.12.02_V2/plugins/SofaValidation [INFO] [PluginManager] Loaded plugin: C:/Users/seergun/SOFA/v20.12.02_V2/bin/SofaDenseSolver.dll [INFO] [SofaPython3] No python3 dir found in C:/Users/seergun/SOFA/v20.12.02_V2/plugins/SofaDenseSolver [INFO] [PluginManager] Loaded plugin: C:/Users/seergun/SOFA/v20.12.02_V2/bin/SofaNonUniformFem.dll [INFO] [SofaPython3] No python3 dir found in C:/Users/seergun/SOFA/v20.12.02_V2/plugins/SofaNonUniformFem [INFO] [PluginManager] Loaded plugin: C:/Users/seergun/SOFA/v20.12.02_V2/bin/SofaOpenglVisual.dll [INFO] [SofaPython3] No python3 dir found in C:/Users/seergun/SOFA/v20.12.02_V2/plugins/SofaOpenglVisual [INFO] [PluginManager] Loaded plugin: C:/Users/seergun/SOFA/v20.12.02_V2/bin/SofaMiscTopology.dll [INFO] [SofaPython3] No python3 dir found in C:/Users/seergun/SOFA/v20.12.02_V2/plugins/SofaMiscTopology [INFO] [PluginManager] Loaded plugin: C:/Users/seergun/SOFA/v20.12.02_V2/bin/SofaMiscExtra.dll [INFO] [SofaPython3] No python3 dir found in C:/Users/seergun/SOFA/v20.12.02_V2/plugins/SofaMiscExtra [INFO] [PluginManager] Loaded plugin: C:/Users/seergun/SOFA/v20.12.02_V2/bin/SofaMiscForceField.dll [INFO] [SofaPython3] No python3 dir found in C:/Users/seergun/SOFA/v20.12.02_V2/plugins/SofaMiscForceField [INFO] [PluginManager] Loaded plugin: C:/Users/seergun/SOFA/v20.12.02_V2/bin/SofaMiscEngine.dll [INFO] [SofaPython3] No python3 dir found in C:/Users/seergun/SOFA/v20.12.02_V2/plugins/SofaMiscEngine [INFO] [PluginManager] Loaded plugin: C:/Users/seergun/SOFA/v20.12.02_V2/bin/SofaMiscSolver.dll [INFO] [SofaPython3] No python3 dir found in C:/Users/seergun/SOFA/v20.12.02_V2/plugins/SofaMiscSolver [INFO] [PluginManager] Loaded plugin: C:/Users/seergun/SOFA/v20.12.02_V2/bin/SofaMiscFem.dll [INFO] [SofaPython3] No python3 dir found in C:/Users/seergun/SOFA/v20.12.02_V2/plugins/SofaMiscFem [INFO] [PluginManager] Loaded plugin: C:/Users/seergun/SOFA/v20.12.02_V2/bin/SofaMiscMapping.dll [INFO] [SofaPython3] No python3 dir found in C:/Users/seergun/SOFA/v20.12.02_V2/plugins/SofaMiscMapping [INFO] [PluginManager] Loaded plugin: C:/Users/seergun/SOFA/v20.12.02_V2/bin/CImgPlugin.dll [INFO] [SofaPython3] No python3 dir found in C:/Users/seergun/SOFA/v20.12.02_V2/plugins/CImgPlugin [INFO] [PluginManager] Loaded plugin: C:/Users/seergun/SOFA/v20.12.02_V2/bin/SofaSphFluid.dll [INFO] [SofaPython3] No python3 dir found in C:/Users/seergun/SOFA/v20.12.02_V2/plugins/SofaSphFluid [INFO] [PluginManager] Loaded plugin: C:/Users/seergun/SOFA/v20.12.02_V2/bin/SofaMiscCollision.dll [INFO] [SofaPython3] No python3 dir found in C:/Users/seergun/SOFA/v20.12.02_V2/plugins/SofaMiscCollision [INFO] [PluginManager] Loaded plugin: C:/Users/seergun/SOFA/v20.12.02_V2/bin/STLIB.dll [INFO] [SofaPython3] Added 'C:/Users/seergun/SOFA/v20.12.02_V2/plugins/STLIB/lib/python3/site-packages' to sys.path [INFO] [PluginManager] Loaded plugin: C:/Users/seergun/SOFA/v20.12.02_V2/bin/SoftRobots.dll [INFO] [SofaPython3] Added 'C:/Users/seergun/SOFA/v20.12.02_V2/plugins/SoftRobots/lib/python3/site-packages' to sys.path [INFO] [GUIManager] lastUsedGUI.ini not found; using default GUI. Warning: Setting a new default format with a different version or profile after the global shared context is created may cause issues with context sharing. The constructor with a QGLFormat is deprecated, use the regular contructor instead. [INFO] [SceneCheckerVisitor] Validating node "root" with checks: [SceneCheckDuplicatedName, SceneCheckMissingRequiredPlugin, SceneCheckUsingAlias] [INFO] [SceneCheckerVisitor] Finished validating node "root". __main__:2: DeprecationWarning: the imp module is deprecated in favour of importlib; see the module's documentation for alternative uses [ERROR] [SofaPython3::SceneLoader] AttributeError: module 'Sofa' has no attribute 'Prefab' At: C:/Users/seergun/SOFA/v20.12.02_V2/plugins/STLIB/lib/python3/site-packages\stlib3\visuals\visualmodel.py(6): <module> <frozen importlib._bootstrap>(219): _call_with_frames_removed <frozen importlib._bootstrap_external>(728): exec_module <frozen importlib._bootstrap>(677): _load_unlocked <frozen importlib._bootstrap>(967): _find_and_load_unlocked <frozen importlib._bootstrap>(983): _find_and_load C:/Users/seergun/SOFA/v20.12.02_V2/plugins/STLIB/lib/python3/site-packages\stlib3\visuals\__init__.py(4): <module> <frozen importlib._bootstrap>(219): _call_with_frames_removed <frozen importlib._bootstrap_external>(728): exec_module <frozen importlib._bootstrap>(677): _load_unlocked <frozen importlib._bootstrap>(967): _find_and_load_unlocked <frozen importlib._bootstrap>(983): _find_and_load step4.py3scn(2): <module> <frozen importlib._bootstrap>(219): _call_with_frames_removed <frozen importlib._bootstrap_external>(728): exec_module <frozen importlib._bootstrap>(677): _load_unlocked <frozen importlib._bootstrap>(696): _load C:\Program Files\WindowsApps\PythonSoftwareFoundation.Python.3.7_3.7.2544.0_x64__qbz5n2kfra8p0\Lib\imp.py(171): load_source C:\Program Files\WindowsApps\PythonSoftwareFoundation.Python.3.7_3.7.2544.0_x64__qbz5n2kfra8p0\Lib\imp.py(234): load_module <string>(3): <module> [INFO] [SceneCheckerVisitor] Validating node "root" with checks: [SceneCheckDuplicatedName, SceneCheckMissingRequiredPlugin, SceneCheckUsingAlias] [INFO] [SceneCheckerVisitor] Finished validating node "root". [WARNING] [RealGUI] Global Bounding Box seems very small; Your viewer settings (based on the bbox) are likely invalid, switching to default value of [-1,-1,-1,1,1,1].This is caused by using component which does not implement properly the updateBBox function.You can remove this warning by manually forcing a value in the parameter bbox="minX minY minZ"
22 April 2021 at 16:20 #19274GuillaumeKeymasterHi Serkan,
Sorry for the delay.
I just checked and, as I suspected, the stlib3 packages are not stable yet.Compared to stlib, a lot of assets are missing and thus a scene created with stlib cannot be used with stlib3 by simply importing stlib3 instead of stlib.
Unfortunately, it looks like that’s what has been done for step4.pyscn: the python2 scene wasSoftRobots\docs\tutorials\FirstSteps\details\step4.pyscn
and it was converted toSoftRobots\docs\tutorials\FirstSteps\details\sofapython3\step4.py3scn
simply by importing stlib3 instead of stlib.I simpler words: consider that scenes using stlib3 might not work.
I will definitely push for a cleaning of all those scenes for the next SOFA release.Thus, I advise that – for now – you stay on the old (but stable) stack:
Python2.7 + SofaPython + STLIB + SoftRobots
With this stack, I successfully loaded the Python2 version of the scene you are working with:SoftRobots\docs\tutorials\FirstSteps\details\step4.pyscn
Still, if you want to stick to Python3, it would be awesome to report on this topic or on a dedicated issue the scenes that are broken, the errors you encountered, and how you fixed them (if you did).
Hope that helps,
Guillaume.26 April 2021 at 07:19 #19310SerkanErgunAAUBlockedHi Guillaume,
thank you for all the investigations. As the real issue is clearly out of scope of the initial enquiry, I will mark this topic as solved. Thanks again. I will try to post some issues that I may find on the Github link provided.
Thank you very much,
Serkan
24 May 2021 at 16:40 #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!
25 May 2021 at 12:33 #19543SerkanErgunAAUBlockedHey,
Did you follow the instructions at SofaPython3 readTheDocs?
I have seen this error previously when I forgot to set PYTHONHOME as a system variable.
I hope this helps.
All the best,
Serkan
25 May 2021 at 12:48 #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 Chiara -
AuthorPosts
- You must be logged in to reply to this topic.