Kratos icon indicating copy to clipboard operation
Kratos copied to clipboard

KratosMultihysics-all ERROR

Open LVilla96 opened this issue 3 years ago • 14 comments

GOOD DAY!! When we try to run the GID program, the following error occurs

image

I pressed "yes" and shows the following error report:

Error (l671): Collecting KratosMultiphysics-all Downloading KratosMultiphysics_all-9.1.3-py3-none-any.whl (3.6 kB) ERROR: Could not find a version that satisfies the requirement KratosShallowWaterApplication==9.1.3 (from KratosMultiphysics-all) (from versions: none) ERROR: No matching distribution found for KratosShallowWaterApplication==9.1.3 (from KratosMultiphysics-all) STACK: Collecting KratosMultiphysics-all Downloading KratosMultiphysics_all-9.1.3-py3-none-any.whl (3.6 kB) ERROR: Could not find a version that satisfies the requirement KratosShallowWaterApplication==9.1.3 (from KratosMultiphysics-all) (from versions: none) ERROR: No matching distribution found for KratosShallowWaterApplication==9.1.3 (from KratosMultiphysics-all) while executing "exec $pip -m pip install --no-cache-dir --disable-pip-version-check {*}$missing_packages" (procedure "Kratos::InstallAllPythonDependencies" line 27) invoked from within "Kratos::InstallAllPythonDependencies" (procedure "Kratos::CheckDependenciesPipMode" line 28) invoked from within "$deps" (procedure "Kratos::CheckDependencies" line 6) invoked from within "Kratos::CheckDependencies" (procedure "Kratos::Event_InitProblemtype" line 43) invoked from within "Kratos::Event_InitProblemtype $dir" (procedure "::GiD_Event_InitProblemtype" line 2) invoked from within "::GiD_Event_InitProblemtype /home/engineer-user/GiDx64/gid-15.1.6d/problemtypes/kratos.gid"

I appreciate you can help me

LVilla96 avatar Jun 27 '22 01:06 LVilla96

Hi @LVilla96

Thx for detecting this. We are working on the fix right now. As soon as it's ready I will ping you (I expect it to be ready during this afternoon / early tomorrow CEST time).

Br,

roigcarlo avatar Jun 27 '22 07:06 roigcarlo

I have the same problem with linux too.

MatiasVenegas avatar Jun 29 '22 05:06 MatiasVenegas

Hi @MatiasVenegas @LVilla96. We are still trying to fix the shallow water issue. There seems to be a problem with our build machine, until we have it fixed please try to install the packages manually:

$ python -m pip uninstall KratosMultiphysics-all
$ python -m pip install  KratosMultiphysics

and any other app you need:

$ python -m pip install  KratosStructuralMechanicsApplication

Available apps are: KratosConstitutiveLawsApplication KratosContactStructuralMechanicsApplication KratosConvectionDiffusionApplication KratosCoSimulationApplication KratosDamApplication KratosDEMApplication KratosFluidDynamicsApplication KratosFSIApplication KratosLinearSolversApplication KratosMappingApplication KratosMeshingApplication KratosParticleMechanicsApplication KratosPoroMechanicsApplication KratosStructuralMechanicsApplication

roigcarlo avatar Jun 29 '22 12:06 roigcarlo

@roigcarlo Thanks. I tried to install those packages manuallly, but it still shows the same error. $ pip3 install KratosMultiphysics-all ERROR: Could not find a version that satisfies the requirement KratosShallowWaterApplication==9.1.3 (from KratosMultiphysics-all) (from versions: none) ERROR: No matching distribution found for KratosShallowWaterApplication==9.1.3 (from KratosMultiphysics-all)

MatiasVenegas avatar Jun 29 '22 16:06 MatiasVenegas

Hi @LVilla96 @MatiasVenegas,

Error should be solved now. I recommend you to reinstall everything so you don't find any incompatibility:

pip install --upgrade --force-reinstall --no-cache-dir KratosMultiphysics-all

Please tell me if this works for you or it gives you any further error.

roigcarlo avatar Jul 06 '22 08:07 roigcarlo

@roigcarlo Thanks. I tried to install those packages manuallly, but it still shows the same error. $ pip3 install KratosMultiphysics-all ERROR: Could not find a version that satisfies the requirement KratosShallowWaterApplication==9.1.3 (from KratosMultiphysics-all) (from versions: none) ERROR: No matching distribution found for KratosShallowWaterApplication==9.1.3 (from KratosMultiphysics-all)

@jginternational FYI

rubenzorrilla avatar Jul 06 '22 12:07 rubenzorrilla

Hi @LVilla96 @MatiasVenegas,

Error should be solved now. I recommend you to reinstall everything so you don't find any incompatibility:

pip install --upgrade --force-reinstall --no-cache-dir KratosMultiphysics-all

Please tell me if this works for you or it gives you any further error.

Thanks, it worked.

MatiasVenegas avatar Jul 07 '22 04:07 MatiasVenegas

@roigcarlo I've another problem with an example of 3D DEM. When I click on the postprocess label it shows the following warning: image

Then shows a warning window with this: /home/engineer-user/GiDx64/gid-15.1.6d/problemtypes/kratos.gid/exec/pip.unix.bat: línea 13: 310664 Violación de segmento $kratos_python_exe MainKratos.py > "$2/$1.info" 2> "$2/$1.err"

Sorry, I appreciate you can help me again.

MatiasVenegas avatar Jul 07 '22 04:07 MatiasVenegas

I @MatiasVenegas that means the simulation failed. Can you copy the output file (Calculate->View Process Info)?

Also, is this an example that you made or is an already existing example? Br,

roigcarlo avatar Jul 07 '22 06:07 roigcarlo

I @MatiasVenegas that means the simulation failed. Can you copy the output file (Calculate->View Process Info)?

Also, is this an example that you made or is an already existing example? Br,

Sure, it's an already existing example. Process Info: | / | ' / | ` | __| _ \ _| . \ | ( | | ( |_
|__| _,
|__|_
/ ____/

       Multi-Physics 9.1."3"-aea94c5-Release

Compiled with threading and MPI support. Maximum number of threads: 1. Running without MPI. Importing KratosDEMApplication

 KRATOS |  _ \| ____|  \/  |  _ \ __ _  ___| | __      
        | | | |  _| | |\/| | |_) / _` |/ __| |/ /      
        | |_| | |___| |  | |  __/ (_| | (__|   <       
        |____/|_____|_|  |_|_|   \__,_|\___|_|\_\      

Importing DEMApplication... done. DEM: Running under OpenMP........ ModelPartIO: [Reading Nodes : 728 nodes read] ModelPartIO: [Reading Elements : 728 elements read] [Type: SphericParticle3D] ModelPartIO: [Total Lines Read : 3666] ModelPartIO: [Reading Nodes : 2950 nodes read] ModelPartIO: [Reading Conditions : 5698 conditions read] [Type: RigidFace3D3N] ModelPartIO: [Total Lines Read : 17336] ModelPartIO: [Total Lines Read : 1] ModelPartIO: [Reading Nodes : 964 nodes read] ModelPartIO: [Total Lines Read : 1996] Read materials: No tables defined for material ID: 1 Initializing Problem...: Cluster file /home/engineer-user/Mati/ExampleDEM3D.gid/rock1cluster3D.clu was read correctly: Initialization Complete: DOFs for the DEM solution added correctly: DOFs for the DEM solution added correctly: DOFs for the DEM solution added correctly: DEM: ------------------DISCONTINUUM SOLVER STRATEGY---------------------

DEM: ************************************************** DEM: Parallelism Info: MPI number of nodes: 1 DEM: Parallelism Info: OMP number of processors: 1 DEM: ************************************************** DEM: Analysis: Analysis -START-
DEM: Total number of time s expected in the calculation: 499999

:

This is the example:

image

MatiasVenegas avatar Jul 07 '22 15:07 MatiasVenegas

Hi @KratosMultiphysics/dem can you help with this? I've tried to reproduce the error in a clean computer and I can confirm it does not work. To me it throws a different error:

Traceback (most recent call last):
  File "E:\Escritorio\demtest.gid\MainKratos.py", line 31, in <module>
    DEMAnalysisStageWithFlush(global_model, parameters).Run()
  File "C:\Users\roigc\AppData\Roaming\Python\Python39\site-packages\KratosMultiphysics\analysis_stage.py", line 47, in Run
    self.Initialize()
  File "C:\Users\roigc\AppData\Roaming\Python\Python39\site-packages\KratosMultiphysics\DEMApplication\DEM_analysis_stage.py", line 249, in Initialize
    self.ReadModelParts()
  File "C:\Users\roigc\AppData\Roaming\Python\Python39\site-packages\KratosMultiphysics\DEMApplication\DEM_analysis_stage.py", line 458, in ReadModelParts
    self.CheckConsistencyOfElementsAndNodesInEverySubModelPart()
  File "C:\Users\roigc\AppData\Roaming\Python\Python39\site-packages\KratosMultiphysics\DEMApplication\DEM_analysis_stage.py", line 471, in CheckConsistencyOfElementsAndNodesInEverySubModelPart
    ErrorMessage(submp.Name)
  File "C:\Users\roigc\AppData\Roaming\Python\Python39\site-packages\KratosMultiphysics\DEMApplication\DEM_analysis_stage.py", line 462, in ErrorMessage
    raise Exception(" ModelPart (or SubModelPart) "+ name + " has a different number of nodes and elements (particles)! \n")
Exception:  ModelPart (or SubModelPart) DEM-CustomSmp_Body has a different number of nodes and elements (particles)!

2D Seems to run ok.

roigcarlo avatar Jul 07 '22 16:07 roigcarlo

Hi @roigcarlo , yes, it is a problem with the Custom SubmodelPart. If used, the Custom SubmodelPart must contain both DEM elements and their central nodes, but this is currently hard to do with the GiD Interface. We discussed this with @jginternational and we decided to remove this capability from the GUI for the DEM. This capability removal should only affect developers, not normal DEM users.

maceligueta avatar Jul 07 '22 17:07 maceligueta

Is that in progress or already merged, @jginternational ? Please let me know if I have to code something.

maceligueta avatar Jul 07 '22 17:07 maceligueta

Ping @jginternational

roigcarlo avatar Sep 01 '22 10:09 roigcarlo