Problem with the creation of a spack environment containing dolfinx, dolfinx_mpc and scifem

Hello everyone,

as the title reads I am having difficulties in creating a spack environment containing the three packages. I am new to spack and, thus, I am sure something is not being done properly. Have anyone done something similar?

I tried following the installation guides on each respective github repository, but once any package is installed, the others’ dependencies seem to collide.

Hi @Ergonsa,

I would need some more details here to help you. What issues/errors are you getting? Could you post the commands you have executed, and the output from them?

Hello @dokken ,

I tried the following bash calls sequentially:

git clone --depth=2 https://github.com/spack/spack.git

cd spack
. share/spack/setup-env.sh

spack env create fenicsx
spack env activate fenicsx
spack compiler find

spack add py-fenics-dolfinx@main ^fenics-dolfinx@main ^py-fenics-ffcx@main ^py-fenics-basix@main ^fenics-basix@main ^mpich ^petsc+mumps+hypre
spack add py-dolfinx-mpc@main ^py-fenics-dolfinx@main
spack add py-scifem@main ^py-fenics-dolfinx@main
spack add py-scipy py-pyvista
spack concretize
spack install

EDIT: The problem lies on the fact that pyvista does not have a spack package, but It can be fixed by installing it through pip afterwards.

PD: I managed to work out the three main packages by introducing the “^py-fenics-dolfinx@main” at the end of scifem and dolfinx_mpc add calls, for others to know.