Kratos icon indicating copy to clipboard operation
Kratos copied to clipboard

Modulenotfound error

Open studenttubs opened this issue 3 years ago • 3 comments
trafficstars

Hey Kratos-Team,

after finally adding the PFemApplication to my interface and kratos i tried to run the dambreak example. when i try to run it, both command shell or GiD i get the following error: C:\Users\J. Kremer (SA. HvH)\Documents\examples\example 2\Pfem example\neuesbeispiel.gid>python mainkratos.py | / | ' / | ` | __| _ \ _| . \ | ( | | ( |_
|__| _,
|__|_
/ ___/ Multi-Physics 9.1."2"-de953cb-Release Compiled with threading support. Maximum number of threads: 16. Traceback (most recent call last): File "C:\Users\J. Kremer (SA. HvH)\Documents\examples\example 2\Pfem example\neuesbeispiel.gid\mainkratos.py", line 40, in analysis_stage_module = importlib.import_module(analysis_stage_module_name) File "C:\Users\J. Kremer (SA. HvH)\AppData\Local\Programs\Python\Python39\lib\importlib_init.py", line 127, in import_module return _bootstrap._gcd_import(name[level:], package, level) File "", line 1030, in _gcd_import File "", line 1007, in _find_and_load File "", line 972, in _find_and_load_unlocked File "", line 228, in _call_with_frames_removed File "", line 1030, in _gcd_import File "", line 1007, in _find_and_load File "", line 984, in _find_and_load_unlocked ModuleNotFoundError: No module named 'KratosMultiphysics.PfemFluidDynamicsApplication Its running on windows with python 3.9.

Can someone help me fixing the issue?

Thank you and best regards

Johanna

studenttubs avatar Jul 14 '22 12:07 studenttubs

Hi @studenttubs

How did you install Kratos binaries? Did you build from source? Or using pip install? Or did you let GiD install them?

jginternational avatar Jul 14 '22 16:07 jginternational

Hey @jginternational

I used pip install

studenttubs avatar Jul 15 '22 06:07 studenttubs

Unfortunately, PFEM Application is not deployed via pip You will need to build Kratos from source, or maybe @AFranci can send you a compiled version.

Follow this manual to build for windows https://github.com/KratosMultiphysics/Kratos/blob/master/INSTALL.md#windows-installation

jginternational avatar Jul 15 '22 11:07 jginternational