Forum Replies Created
-
AuthorPosts
-
sirasaniBlocked
Hello @Hugo I also am facing the same errors as @Arya on my computer. I am running Mac OS Big Sur. I have Python@3.7 side-by-side Python@3.9.
When I run
runSofa
with theTripod/details/sofapython3/step1.pyscn
file, theSofaPython3
loader loads allsite-packages
except the one fromSTLIB/lib/python3/site-packages
and I get an error about not finding the modulestlib3
. Please see the logs below.[INFO] [SofaPython3] Initializing with python version 3.7.10 (default, Feb 27 2021, 02:19:57) [Clang 12.0.0 (clang-1200.0.32.29)] [INFO] [SofaPython3] Registering a scene loader for [.py, .py3, .pyscn, .py3scn] files. [INFO] [SofaPython3] Intializing python [INFO] [SofaPython3] Added '/Applications/SOFA_v20.12.00_MacOS/plugins/SofaPython3/lib/python3/site-packages' to sys.path [INFO] [PluginManager] Loaded plugin: /Applications/SOFA_v20.12.00_MacOS/plugins/SofaPython3/lib/libSofaPython3.1.0.dylib [INFO] [PluginManager] Loaded plugin: /Applications/SOFA_v20.12.00_MacOS/plugins/SoftRobots/lib/libSoftRobots.1.0.dylib [INFO] [SofaPython3] Added '/Applications/SOFA_v20.12.00_MacOS/plugins/SoftRobots/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. [ERROR] [SofaPython3::SceneLoader] ModuleNotFoundError: No module named 'stlib3' At: step1.pyscn(7): <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 /usr/local/opt/python@3.7/Frameworks/Python.framework/Versions/3.7/lib/python3.7/imp.py(171): load_source /usr/local/opt/python@3.7/Frameworks/Python.framework/Versions/3.7/lib/python3.7/imp.py(234): load_module <string>(3): <module> [INFO] [SceneCheckerVisitor] Validating node "root" with checks: [SceneCheckDuplicatedName, SceneCheckMissingRequiredPlugin, SceneCheckUsingAlias]
On deleting the
STLIB
plugin from the _Plugin Manager_ and then adding theSTLIB/lib/libSTLIB.dylib
again, loads thesite-packages
correctly. At this point, reloading the scene file, does not show the original error.[INFO] [PluginManager] Loaded plugin: /Applications/SOFA_v20.12.00_MacOS/plugins/STLIB/lib/libSTLIB.dylib [INFO] [SofaPython3] Added '/Applications/SOFA_v20.12.00_MacOS/plugins/STLIB/lib/python3/site-packages' to sys.path
But alas, the next run of
runSofa
takes us back to the beginning (missingstlib3
). Is there any way to fix the binaries supplied in the downloads section? I wanted to try out Sofa without having to compile from sources. SOFA v19.06 worked well-ish for me, but I wanted to try the latest and the greatest, especially with Python3 bindings. 😉sirasaniBlockedHello @pzingg
Can you please also specify a bit more detail about which file/content you had to add to
<PluginName>/etc/python.d/<PluginName>
?sirasaniBlockedHello Anthony, I think the order of loading the DLLs matters. For me too, every time I loaded the SofaPython it crashed initially. I removed all the manually added plugins, then added the
SofaPython
plugin first, followed by the other plugins (SoftRobots
,SoftRobots.Inverse
,ModelOrderReduction
, etc.). But, for me thepsycn
files still refused to load unlike the OP. -
AuthorPosts