error: "PETSc was configured with MPICH but now appears to be compiling using a non-MPICH mpi.h" and missing modules pyaml, jinja2 #28854
-
Check these boxes if you have followed the posting rules.
Issue or question about MOOSEI am trying to compile MOOSE on Apple Silicon (M1), but I get this error on multiple occurrences after running I ran diagnostics.sh, and it looks like my python is not up to date and I missing some packages like pyaml and jinja2. How do I update python and update these modules and fix this error? I attached the error and diagnostic output (Optional) code in question / simulation log / errors(moose) wirelessprv-10-192-133-5:test seanpeyres$ make -j8
WARNING: Failed to initialize PreMake for version checking; this may be ignored but may suggest an environment issue.
Traceback (most recent call last):
File "/Users/seanpeyres/moose-projects/moose/framework/../scripts/premake.py", line 20, in __init__
from versioner import Versioner
File "/Users/seanpeyres/moose-projects/moose/scripts/versioner.py", line 25, in <module>
import yaml
ModuleNotFoundError: No module named 'yaml'
Traceback (most recent call last):
File "/Users/seanpeyres/moose-projects/moose/framework/../scripts/premake.py", line 261, in <module>
PreMake().check()
^^^^^^^^^
File "/Users/seanpeyres/moose-projects/moose/framework/../scripts/premake.py", line 27, in __init__
self.versioner_meta = Versioner().version_meta()
^^^^^^^^^
UnboundLocalError: cannot access local variable 'Versioner' where it is not associated with a value
make: [/Users/seanpeyres/moose-projects/moose/framework/moose.mk:399: prebuild] Error 1 (ignored)
Compiling C++ (in opt mode) /Users/seanpeyres/moose-projects/moose/framework/build/unity_src/linesearches_Unity.C...
Compiling C++ (in opt mode) /Users/seanpeyres/moose-projects/moose/framework/build/unity_src/mesh_Unity.C...
Compiling C++ (in opt mode) /Users/seanpeyres/moose-projects/moose/framework/build/unity_src/fvics_Unity.C...
Compiling C++ (in opt mode) /Users/seanpeyres/moose-projects/moose/framework/build/unity_src/auxkernels_Unity.C...
Compiling C++ (in opt mode) /Users/seanpeyres/moose-projects/moose/framework/build/unity_src/kernels_Unity.C...
Compiling C++ (in opt mode) /Users/seanpeyres/moose-projects/moose/framework/build/unity_src/executioners_Unity.C...
Compiling C++ (in opt mode) /Users/seanpeyres/moose-projects/moose/framework/build/unity_src/bounds_Unity.C...
Compiling C++ (in opt mode) /Users/seanpeyres/moose-projects/moose/framework/build/unity_src/scalarkernels_Unity.C...
In file included from /Users/seanpeyres/moose-projects/moose/framework/build/unity_src/mesh_Unity.C:2:
In file included from /Users/seanpeyres/moose-projects/moose/framework/src/mesh/AnnularMesh.C:10:
In file included from /Users/seanpeyres/moose-projects/moose/framework/build/header_symlinks/AnnularMesh.h:12:
In file included from /Users/seanpeyres/moose-projects/moose/framework/build/header_symlinks/MooseMesh.h:12:
In file included from /Users/seanpeyres/moose-projects/moose/framework/build/header_symlinks/MooseObject.h:13:
In file included from /Users/seanpeyres/moose-projects/moose/framework/build/header_symlinks/MooseUtils.h:13:
In file included from /Users/seanpeyres/moose-projects/moose/framework/build/header_symlinks/MooseTypes.h:26:
In file included from /Users/seanpeyres/miniforge/envs/moose/libmesh/include/libmesh/petsc_macro.h:56:
In file included from /Users/seanpeyres/miniforge/envs/moose/petsc/include/petsc.h:6:
In file included from /Users/seanpeyres/miniforge/envs/moose/petsc/include/petscbag.h:3:
/Users/seanpeyres/miniforge/envs/moose/petsc/include/petscsys.h:92:6: error: "PETSc was configured with MPICH but now appears to be compiling using a non-MPICH mpi.h"
#error "PETSc was configured with MPICH but now appears to be compiling using a non-MPICH mpi.h"
^
In file included from /Users/seanpeyres/moose-projects/moose/framework/build/unity_src/executioners_Unity.C:2:
In file included from /Users/seanpeyres/moose-projects/moose/framework/src/executioners/EigenExecutionerBase.C:10:
In file included from /Users/seanpeyres/moose-projects/moose/framework/build/header_symlinks/EigenExecutionerBase.h:12:
In file included from /Users/seanpeyres/moose-projects/moose/framework/build/header_symlinks/Executioner.h:12:
In file included from /Users/seanpeyres/moose-projects/moose/framework/build/header_symlinks/MooseObject.h:13:
In file included from /Users/seanpeyres/moose-projects/moose/framework/build/header_symlinks/MooseUtils.h:13:
In file included from /Users/seanpeyres/moose-projects/moose/framework/build/header_symlinks/MooseTypes.h:26:
In file included from /Users/seanpeyres/miniforge/envs/moose/libmesh/include/libmesh/petsc_macro.h:56:
In file included from /Users/seanpeyres/miniforge/envs/moose/petsc/include/petsc.h:6:
In file included from /Users/seanpeyres/miniforge/envs/moose/petsc/include/petscbag.h:3:
/Users/seanpeyres/miniforge/envs/moose/petsc/include/petscsys.h:92:6: error: "PETSc was configured with MPICH but now appears to be compiling using a non-MPICH mpi.h"
#error "PETSc was configured with MPICH but now appears to be compiling using a non-MPICH mpi.h"
^
In file included from /Users/seanpeyres/moose-projects/moose/framework/build/unity_src/kernels_Unity.C:2:
In file included from /Users/seanpeyres/moose-projects/moose/framework/src/kernels/ADConservativeAdvection.C:10:
In file included from /Users/seanpeyres/moose-projects/moose/framework/build/header_symlinks/ADConservativeAdvection.h:12:
In file included from /Users/seanpeyres/moose-projects/moose/framework/build/header_symlinks/ADKernel.h:12:
In file included from /Users/seanpeyres/moose-projects/moose/framework/build/header_symlinks/KernelBase.h:12:
In file included from /Users/seanpeyres/moose-projects/moose/framework/build/header_symlinks/ResidualObject.h:12:
In file included from /Users/seanpeyres/moose-projects/moose/framework/build/header_symlinks/MooseObject.h:13:
In file included from /Users/seanpeyres/moose-projects/moose/framework/build/header_symlinks/MooseUtils.h:13:
In file included from /Users/seanpeyres/moose-projects/moose/framework/build/header_symlinks/MooseTypes.h:26:
In file included from /Users/seanpeyres/miniforge/envs/moose/libmesh/include/libmesh/petsc_macro.h:56:
In file included from /Users/seanpeyres/miniforge/envs/moose/petsc/include/petsc.h:6:
In file included from /Users/seanpeyres/miniforge/envs/moose/petsc/include/petscbag.h:3:
/Users/seanpeyres/miniforge/envs/moose/petsc/include/petscsys.h:92:6: error: "PETSc was configured with MPICH but now appears to be compiling using a non-MPICH mpi.h"
In file included from /Users/seanpeyres/moose-projects/moose/framework/build/unity_src/scalarkernels_Unity.C:2:
In file included from /Users/seanpeyres/moose-projects/moose/framework/src/scalarkernels/ADScalarKernel.C:10:
In file included from /Users/seanpeyres/moose-projects/moose/framework/build/header_symlinks/ADScalarKernel.h:12:
In file included from /Users/seanpeyres/moose-projects/moose/framework/build/header_symlinks/ScalarKernelBase.h:12:
In file included from /Users/seanpeyres/moose-projects/moose/framework/build/header_symlinks/ResidualObject.h:12 #error "PETSc was configured with MPICH but now appears to be compiling using a non-MPICH mpi.h":
In file included from /Users/seanpeyres/moose-projects/moose/framework/build/header_symlinks/MooseObject.h ^:
13:
In file included from /Users/seanpeyres/moose-projects/moose/framework/build/header_symlinks/MooseUtils.h:13:
In file included from /Users/seanpeyres/moose-projects/moose/framework/build/header_symlinks/MooseTypes.h:26:
In file included from /Users/seanpeyres/miniforge/envs/moose/libmesh/include/libmesh/petsc_macro.h:56:
In file included from /Users/seanpeyres/miniforge/envs/moose/petsc/include/petsc.h:6:
In file included from /Users/seanpeyres/miniforge/envs/moose/petsc/include/petscbag.h:3:
/Users/seanpeyres/miniforge/envs/moose/petsc/include/petscsys.h:92:6: error: "PETSc was configured with MPICH but now appears to be compiling using a non-MPICH mpi.h"
#error "PETSc was configured with MPICH but now appears to be compiling using a non-MPICH mpi.h"
^
In file included from /Users/seanpeyres/moose-projects/moose/framework/build/unity_src/linesearches_Unity.C:2:
In file included from /Users/seanpeyres/moose-projects/moose/framework/src/linesearches/LineSearch.C:10:
In file included from /Users/seanpeyres/moose-projects/moose/framework/build/header_symlinks/LineSearch.h:12:
In file included from /Users/seanpeyres/moose-projects/moose/framework/build/header_symlinks/MooseObject.h:13:
In file included from /Users/seanpeyres/moose-projects/moose/framework/build/header_symlinks/MooseUtils.h:13:
In file included from /Users/seanpeyres/moose-projects/moose/framework/build/header_symlinks/MooseTypes.h:26:
In file included from /Users/seanpeyres/miniforge/envs/moose/libmesh/include/libmesh/petsc_macro.h:56:
In file included from /Users/seanpeyres/miniforge/envs/moose/petsc/include/petsc.h:6:
In file included from /Users/seanpeyres/miniforge/envs/moose/petsc/include/petscbag.h:3:
/Users/seanpeyres/miniforge/envs/moose/petsc/include/petscsys.h:92:6: error: "PETSc was configured with MPICH but now appears to be compiling using a non-MPICH mpi.h"
#error "PETSc was configured with MPICH but now appears to be compiling using a non-MPICH mpi.h"
^
In file included from /Users/seanpeyres/moose-projects/moose/framework/build/unity_src/auxkernels_Unity.C:2:
In file included from /Users/seanpeyres/moose-projects/moose/framework/src/auxkernels/AdvectiveFluxAux.C:10:
In file included from /Users/seanpeyres/moose-projects/moose/framework/build/header_symlinks/AdvectiveFluxAux.h:12:
In file included from /Users/seanpeyres/moose-projects/moose/framework/build/header_symlinks/AuxKernel.h:12:
In file included from /Users/seanpeyres/moose-projects/moose/framework/build/header_symlinks/MooseObject.h:13:
In file included from /Users/seanpeyres/moose-projects/moose/framework/build/header_symlinks/MooseUtils.h:13:
In file included from /Users/seanpeyres/moose-projects/moose/framework/build/header_symlinks/MooseTypes.h:26:
In file included from /Users/seanpeyres/miniforge/envs/moose/libmesh/include/libmesh/petsc_macro.h:56:
In file included from /Users/seanpeyres/miniforge/envs/moose/petsc/include/petsc.h:6:
In file included from /Users/seanpeyres/miniforge/envs/moose/petsc/include/petscbag.h:3:
/Users/seanpeyres/miniforge/envs/moose/petsc/include/petscsys.h:92:6: error: "PETSc was configured with MPICH but now appears to be compiling using a non-MPICH mpi.h"
#error "PETSc was configured with MPICH but now appears to be compiling using a non-MPICH mpi.h"
^
In file included from /Users/seanpeyres/moose-projects/moose/framework/build/unity_src/bounds_Unity.C:2:
In file included from /Users/seanpeyres/moose-projects/moose/framework/src/bounds/BoundsBase.C:10:
In file included from /Users/seanpeyres/moose-projects/moose/framework/build/header_symlinks/BoundsBase.h:12:
In file included from /Users/seanpeyres/moose-projects/moose/framework/build/header_symlinks/AuxKernel.h:12:
In file included from /Users/seanpeyres/moose-projects/moose/framework/build/header_symlinks/MooseObject.h:13:
In file included from /Users/seanpeyres/moose-projects/moose/framework/build/header_symlinks/MooseUtils.h:13:
In file included from /Users/seanpeyres/moose-projects/moose/framework/build/header_symlinks/MooseTypes.h:26:
In file included from /Users/seanpeyres/miniforge/envs/moose/libmesh/include/libmesh/petsc_macro.h:56:
In file included from /Users/seanpeyres/miniforge/envs/moose/petsc/include/petsc.h:6:
In file included from /Users/seanpeyres/miniforge/envs/moose/petsc/include/petscbag.h:3:
/Users/seanpeyres/miniforge/envs/moose/petsc/include/petscsys.h:92:6: error: "PETSc was configured with MPICH but now appears to be compiling using a non-MPICH mpi.h"
#error "PETSc was configured with MPICH but now appears to be compiling using a non-MPICH mpi.h"
^
In file included from /Users/seanpeyres/moose-projects/moose/framework/build/unity_src/fvics_Unity.C:2:
In file included from /Users/seanpeyres/moose-projects/moose/framework/src/fvics/FVConstantIC.C:10:
In file included from /Users/seanpeyres/moose-projects/moose/framework/build/header_symlinks/FVConstantIC.h:12:
In file included from /Users/seanpeyres/moose-projects/moose/framework/build/header_symlinks/FVInitialConditionTempl.h:12:
In file included from /Users/seanpeyres/moose-projects/moose/framework/build/header_symlinks/FVInitialConditionBase.h:12:
In file included from /Users/seanpeyres/moose-projects/moose/framework/build/header_symlinks/MooseObject.h:13:
In file included from /Users/seanpeyres/moose-projects/moose/framework/build/header_symlinks/MooseUtils.h:13:
In file included from /Users/seanpeyres/moose-projects/moose/framework/build/header_symlinks/MooseTypes.h:26:
In file included from /Users/seanpeyres/miniforge/envs/moose/libmesh/include/libmesh/petsc_macro.h:56:
In file included from /Users/seanpeyres/miniforge/envs/moose/petsc/include/petsc.h:6:
In file included from /Users/seanpeyres/miniforge/envs/moose/petsc/include/petscbag.h:3:
/Users/seanpeyres/miniforge/envs/moose/petsc/include/petscsys.h:92:6: error: "PETSc was configured with MPICH but now appears to be compiling using a non-MPICH mpi.h"
#error "PETSc was configured with MPICH but now appears to be compiling using a non-MPICH mpi.h"
^
1 error generated.
make: *** [/Users/seanpeyres/moose-projects/moose/framework/build.mk:151: /Users/seanpeyres/moose-projects/moose/framework/build/unity_src/linesearches_Unity.aarch64-apple-darwin20.0.0.opt.lo] Error 1
make: *** Waiting for unfinished jobs....
1 error generated.
1 error generated.
make: *** [/Users/seanpeyres/moose-projects/moose/framework/build.mk:151: /Users/seanpeyres/moose-projects/moose/framework/build/unity_src/executioners_Unity.aarch64-apple-darwin20.0.0.opt.lo] Error 1
make: *** [/Users/seanpeyres/moose-projects/moose/framework/build.mk:151: /Users/seanpeyres/moose-projects/moose/framework/build/unity_src/bounds_Unity.aarch64-apple-darwin20.0.0.opt.lo] Error 1
1 error generated.
make: *** [/Users/seanpeyres/moose-projects/moose/framework/build.mk:151: /Users/seanpeyres/moose-projects/moose/framework/build/unity_src/fvics_Unity.aarch64-apple-darwin20.0.0.opt.lo] Error 1
1 error generated.
make: *** [/Users/seanpeyres/moose-projects/moose/framework/build.mk:151: /Users/seanpeyres/moose-projects/moose/framework/build/unity_src/scalarkernels_Unity.aarch64-apple-darwin20.0.0.opt.lo] Error 1
1 error generated.
make: *** [/Users/seanpeyres/moose-projects/moose/framework/build.mk:151: /Users/seanpeyres/moose-projects/moose/framework/build/unity_src/kernels_Unity.aarch64-apple-darwin20.0.0.opt.lo] Error 1
1 error generated.
make: *** [/Users/seanpeyres/moose-projects/moose/framework/build.mk:151: /Users/seanpeyres/moose-projects/moose/framework/build/unity_src/mesh_Unity.aarch64-apple-darwin20.0.0.opt.lo] Error 1
1 error generated.
make: *** [/Users/seanpeyres/moose-projects/moose/framework/build.mk:151: /Users/seanpeyres/moose-projects/moose/framework/build/unity_src/auxkernels_Unity.aarch64-apple-darwin20.0.0.opt.lo] Error 1 Encountering Errors? Please include diagnostic output
|
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 10 replies
-
hello
the other problem, with mpi, stems from having multiple mpi distributions installed on your system. Right now it must be finding the compilers from your systme Guillaume |
Beta Was this translation helpful? Give feedback.
-
Hi, I face the same error "PETSc was configured with MPICH but now appears to be compiling using a non-MPICH mpi.h" when install moose on M3 Mac.
And the complier of the mpi is
How to switch the mpi complier ? Thank you |
Beta Was this translation helpful? Give feedback.
You might have to switch back and forth if other packages need your brew python.
This is the problem with brew. It does not compartmentalize at all. With conda you can de-activate the environment if you no longer want to use it, with brew you can't