You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hello! I tried opening one of the Python demo scenes included with the plugin. According to the changelog, this issue was supposed to be fixed, but when I open the scene I still get the following error:
Has anyone else run into this issue or knows what might be causing it?
The problem seems to be caused by a missing Python plugin. Could you check that in "YourProject\Assets\SofaUnity\Core\Plugins\Native\Windows\x64\" there is a file named "SofaPython3.dll" and a folder named "python3" that is not empty?
If either of those is missing, let us know and we will send it to you.
If those two things are present, could you try the following:
Open the Unity scene: "Assets\SofaUnity\Scenes\Demos\Python\LiverPython.unity"
In the Hierarchy, delete the SofaContext GameObject.
Create a new SofaContext. :
Click the SofaContext, then in the Inspector click the "Load SOFA Python Scene" button.
Open "Assets\SofaUnity\Scenes\SofaScenes\liver.py".
If you still get the same error, we will investigate further.
hello i have the same problem, when i tested scene .scn its work but when i test scene python its not work
The SofaPython3.dll shipped with my SofaUnity v25.12 package depends on python313.dll, while the SofaPython3.dll from my SOFA v25.12 installation depends on python312.dll. The Unity project does not contain a Python DLL. SofaPython3.dll is x64 in both cases. When I enable SofaPython3 in SofaContext, Unity reports -12: Sofa plugin loading failed (invalid loading) and may close immediately @PierreFonda3D
invalid loading means the dll can't be load in memory in SOFA, so there is probably an error in the dll dependencies. I guess it is the version of python.
could you downlaod the Dependencies application: https://github.com/lucasg/dependencies
and using the DependenciesGui.exe load the SofaPython3.dll and check for any error. You should have something like this:
Activity
PierreFonda3D commentedon Jul 7, 2026
Hello.
The problem seems to be caused by a missing Python plugin. Could you check that in
"YourProject\Assets\SofaUnity\Core\Plugins\Native\Windows\x64\"there is a file named"SofaPython3.dll"and a folder named"python3"that is not empty?If either of those is missing, let us know and we will send it to you.
If those two things are present, could you try the following:
"Assets\SofaUnity\Scenes\Demos\Python\LiverPython.unity""Assets\SofaUnity\Scenes\SofaScenes\liver.py".If you still get the same error, we will investigate further.
Thanks!
inn-pgonzalez commentedon Jul 8, 2026
Hello,
Inside the
Nativefolder, I only have thex64folder. Insidex64, there is thepython3folder and theSofaPython3.dllfile.When I try to create the context, I get an error saying that the DLL cannot be loaded, even though the
SofaPython3.dllfile is present.azizsnd commentedon Sep 2, 2026
hello i have the same problem, when i tested scene .scn its work but when i test scene python its not work
The SofaPython3.dll shipped with my SofaUnity v25.12 package depends on python313.dll, while the SofaPython3.dll from my SOFA v25.12 installation depends on python312.dll. The Unity project does not contain a Python DLL. SofaPython3.dll is x64 in both cases. When I enable SofaPython3 in SofaContext, Unity reports -12: Sofa plugin loading failed (invalid loading) and may close immediately @PierreFonda3D
epernod commentedon Sep 13, 2026
Hi,
invalid loading means the dll can't be load in memory in SOFA, so there is probably an error in the dll dependencies. I guess it is the version of python.
could you downlaod the Dependencies application: https://github.com/lucasg/dependencies
and using the DependenciesGui.exe load the SofaPython3.dll and check for any error. You should have something like this:
inn-pgonzalez commentedon Sep 28, 2026
Hi,
I’ve downloaded the Dependencies application and checked the
SofaPython3.dllusingDependenciesGui.exe.It looks exactly the same as in your example, but the same errors are still showing up.