-
Notifications
You must be signed in to change notification settings - Fork 59
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Installation error #687
Comments
Hi @qmpotential, I can't make out the error from this log, is there more output information available. If so, please send it through. Another strategy to overcome this is to use the Underworld2's container images. You could use Hope this help. |
Thanks for letting us know Underworld can't build on platforms like Colab because our dependency code, PETSc doesn't build on colab. Are you wanting to build the code on a local machine? How are you wanting to use it? Make sure you have petsc installed and the environment variable |
Try install the python development header. Something like That will include "Python.h" |
Hi @qmpotential, Would it be convenient for you to provide complete compilation error information? Sending all installation results to a file instead of a screen may better solve the problem. N. |
Hi Oleg, Now you're missing the development header for an MPI implementation. All Underworld2 build dependencies packages are listed here. Also there is this guide to installing most of those dependencies under Ubuntu. Although you're on RHEL it will still be helpful. https://www.underworldcode.org/setting-up-underworld-dependencies/ |
I'm not familiar with RHEL8 packages unfortunately. E.g. |
The python package
Run For a complete list of build requirements, both programs and python packages, for the current docker image see here.
I'll update the code to ensure |
What is the new error exactly? A log file would be useful. You can check if you've installed ninja and mpi as follows Did you have any luck using the docker solution? |
Hi @qmpotential N. |
@qmpotential conda activate xxx
import h5py
h5py.get_config().mpi You can refer here to install h5py that supports parallel IO. CC=mpicc HDF5_MPI="ON" HDF5_DIR=/path/to/your/hdf5/install/ pip install --no-binary=h5py h5py |
@NTIaN7 That is great! Thank you so much for the notice. I will try that and get back to you! |
Installation of the underworld on Linux cluster.
Load necessary modules first: intel/19.0.5, mvapich2/2.3.3/intel-19.0.5, petsc/3.12.3/intel-19.0.5-mvapich-2.3.3, metis/5.1.0/intel-19.0.5, hdf5/1.10.6/intel-19.0.5-mvapich-2.3.3, parmetis/4.0.3/intel-19.0.5-mvapich-2.3.3, hypre/2.18.2/intel-19.0.5-mvapich-2.3.3, superlu-dist/6.1.1/intel-19.0.5-mvapich-2.3.3, mumps/5.2.0/intel-19.0.5-mvapich-2.3.3, fftw/3.3.8/intel-19.0.5-mvapich-2.3.3, suite-sparse/5.6.0/intel-19.0.5, gcc/9.3.0, cmake/3.16.2/gcc-9.3.0
Create a conda environment: conda create -n UWORLD python=3.11
Activate conda environment: conda activate UWORLD
Install ninja package: conda install ninja (if you install it with pip it is not going to see that)
Install underworld: pip install -v git+https://github.com/underworldcode/underworld2
Successfully installed h5py-3.10.0 mpi4py-3.1.5 pint-0.23 scipy-1.12.0 typing-extensions-4.9.0 underworld-2.15.1b0
Install lavavu: pip install --user lavavu
Test the installation:
(UWORLD)[akjhdah]$ python3.11
Python 3.11.0 | packaged by conda-forge | (main, Oct 25 2022, 06:24:40) [GCC 9.3.0] on linux
Type "help", "copyright", "credits" or "license" for more information.
That is all!
The text was updated successfully, but these errors were encountered: