Skip to content

[ERROR] [Utils::readBasicIniFile()] + ModuleNotFoundError: No module named 'SofaRuntime.SofaRuntime' #107

@julien-siguenza

Description

@julien-siguenza

Hi there!

Just installed SOFA Framework on my Windows11 machine following the instructions for conda installation, and using Pixi.

When running the runSofa -l SofaImGui -g imgui command to test that the installation is effective, I'm getting the following error:

[ERROR] [Utils::readBasicIniFile()] Error while trying to read file (C:/Users/julie/GitRepo/sim-labs/.pixi/envs/cantilever-shear/Library)

Still the GUI opens properly and I can run the simulation, despite the logo seems to be reversed in the taskbar:

Image

Now, when running SOFA with the SofaPython3 plugin, using the runSofa -l SofaImGui -g imgui -l SofaPython3 command, I'm getting this additional error:

Traceback (most recent call last):
  File "<string>", line 1, in <module>
  File "C:\Users\julie\SOFA\v25.06.00\plugins\SofaPython3\lib\python3\site-packages\SofaRuntime\__init__.py", line 10, in <module>
    from SofaRuntime.SofaRuntime import *
ModuleNotFoundError: No module named 'SofaRuntime.SofaRuntime'
---------------------------------------
Checking SOFA_ROOT and SOFAPYTHON3_ROOT
Using environment variable SOFA_ROOT: C:\Users\julie\GitRepo\sim-labs\.pixi\envs\cantilever-shear\Library
Using environment variable SOFAPYTHON3_ROOT: C:\Users\julie\GitRepo\sim-labs\.pixi\envs\cantilever-shear\Library
Found Sofa.Helper.dll in C:\Users\julie\GitRepo\sim-labs\.pixi\envs\cantilever-shear\Library\bin
Found SofaPython3.dll in C:\Users\julie\GitRepo\sim-labs\.pixi\envs\cantilever-shear\Library\bin
---------------------------------------
Traceback (most recent call last):
  File "<string>", line 1, in <module>
  File "C:\Users\julie\SOFA\v25.06.00\plugins\SofaPython3\lib\python3\site-packages\Sofa\__init__.py", line 153, in <module>
    import Sofa.Simulation
ModuleNotFoundError: No module named 'Sofa.Simulation'

Any insights would be greatly appreciated :)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions