Hello everyone,
I am resurrecting this thread as I've had another go at this, but am getting similar errors.
I have tried the following:
1) Building fftw (3.3.8) myself using the same intel-mpi (there was some discussion that the NCI fftw modules are all built with openmpi, while dedalus needs intel-mpi).
2) setting the FFTW_PATH, FFTW_LIBRARY_PATH, FFTW_INCLUDE_PATH, MPI_INCLUDE_PATH and MPI_LIBRARY_PATH env variables myself.
3) Setting INSTALL_MPI=1 and INSTALL_FFTW=1 in install_conda.sh
No luck. With 1) and 2) above I get the error message attached below.
I am not an expert on this. Any help or suggestions for next steps would be much appreciated.
Thanks,
Ryan
Error message from install_conda.sh:
|████████████████████████████████| 102kB 6.9MB/s
Installing build dependencies ... done
WARNING: Missing build requirements in pyproject.toml for dedalus from
https://files.pythonhosted.org/packages/ba/bc/fdd40d0bbab4c5d6e98f71e33b52022894daf6b702086c287e98e115419c/dedalus-2.1810.tar.gz#sha256=ec8f4694f8b01e879a82707540149a0b4bf96e41e5b3083e408fcfb54742fcbc.
WARNING: The project does not specify a build backend, and pip cannot fall back to setuptools without 'wheel'.
Getting requirements to build wheel ... done
Installing backend dependencies ... done
Preparing wheel metadata ... done
Requirement already satisfied: h5py>=2.6.0 in /short/e14/rmh561/conda/envs/dedalus/lib/python3.6/site-packages (from dedalus) (2.9.0)
Requirement already satisfied: numpy in /short/e14/rmh561/conda/envs/dedalus/lib/python3.6/site-packages (from dedalus) (1.16.3)
Requirement already satisfied: mpi4py>=2.0.0 in /short/e14/rmh561/conda/envs/dedalus/lib/python3.6/site-packages (from dedalus) (3.0.1)
Requirement already satisfied: scipy>=0.13.0 in /short/e14/rmh561/conda/envs/dedalus/lib/python3.6/site-packages (from dedalus) (1.2.1)
Requirement already satisfied: matplotlib in /short/e14/rmh561/conda/envs/dedalus/lib/python3.6/site-packages (from dedalus) (3.1.0)
Requirement already satisfied: docopt in /short/e14/rmh561/conda/envs/dedalus/lib/python3.6/site-packages (from dedalus) (0.6.2)
Requirement already satisfied: six in /short/e14/rmh561/conda/envs/dedalus/lib/python3.6/site-packages (from h5py>=2.6.0->dedalus) (1.12.0)
Requirement already satisfied: pyparsing!=2.0.4,!=2.1.2,!=2.1.6,>=2.0.1 in /short/e14/rmh561/conda/envs/dedalus/lib/python3.6/site-packages (from matplotlib->dedalus) (2.4.0)
Requirement already satisfied: kiwisolver>=1.0.1 in /short/e14/rmh561/conda/envs/dedalus/lib/python3.6/site-packages (from matplotlib->dedalus) (1.1.0)
Requirement already satisfied: cycler>=0.10 in /short/e14/rmh561/conda/envs/dedalus/lib/python3.6/site-packages (from matplotlib->dedalus) (0.10.0)
Requirement already satisfied: python-dateutil>=2.1 in /short/e14/rmh561/conda/envs/dedalus/lib/python3.6/site-packages (from matplotlib->dedalus) (2.8.0)
Requirement already satisfied: setuptools in /short/e14/rmh561/conda/envs/dedalus/lib/python3.6/site-packages (from kiwisolver>=1.0.1->matplotlib->dedalus) (41.0.1)
Building wheels for collected packages: dedalus
Building wheel for dedalus (PEP 517) ... error
ERROR: Complete output from command /short/e14/rmh561/conda/envs/dedalus/bin/python3 /short/e14/rmh561/conda/envs/dedalus/lib/python3.6/site-packages/pip/_vendor/pep517/_in_process.py build_wheel /short/e14/rmh561/tmp/tmpq55ay7ic:
ERROR: Looking for mpi include path
Found env var MPI_INCLUDE_PATH = /apps/intel-mpi/
4.1.1.036/intel64/include
Looking for fftw include path
Found env var FFTW_INCLUDE_PATH = /short/e14/rmh561/software/fftw3/3.3.8/include
Looking for fftw library path
Found env var FFTW_LIBRARY_PATH = /short/e14/rmh561/software/fftw3/3.3.8/lib
Looking for mpi library path
Found env var MPI_LIBRARY_PATH = /apps/intel-mpi/
4.1.1.036/intel64/lib
Statically linking FFTW
Looking for fftw library path
Found env var FFTW_LIBRARY_PATH = /short/e14/rmh561/software/fftw3/3.3.8/lib
CC set to icc; using gcc linker flags
running bdist_wheel
running build
running build_py
creating build
creating build/lib.linux-x86_64-3.6
creating build/lib.linux-x86_64-3.6/dedalus
copying dedalus/__main__.py -> build/lib.linux-x86_64-3.6/dedalus
copying dedalus/__init__.py -> build/lib.linux-x86_64-3.6/dedalus
copying dedalus/dev.py -> build/lib.linux-x86_64-3.6/dedalus
copying dedalus/public.py -> build/lib.linux-x86_64-3.6/dedalus
creating build/lib.linux-x86_64-3.6/dedalus/libraries
copying dedalus/libraries/__init__.py -> build/lib.linux-x86_64-3.6/dedalus/libraries
creating build/lib.linux-x86_64-3.6/dedalus/extras
copying dedalus/extras/__init__.py -> build/lib.linux-x86_64-3.6/dedalus/extras
copying dedalus/extras/flow_tools.py -> build/lib.linux-x86_64-3.6/dedalus/extras
copying dedalus/extras/atmospheres.py -> build/lib.linux-x86_64-3.6/dedalus/extras
copying dedalus/extras/plot_tools.py -> build/lib.linux-x86_64-3.6/dedalus/extras
creating build/lib.linux-x86_64-3.6/dedalus/core
copying dedalus/core/evaluator.py -> build/lib.linux-x86_64-3.6/dedalus/core
copying dedalus/core/problems.py -> build/lib.linux-x86_64-3.6/dedalus/core
copying dedalus/core/metadata.py -> build/lib.linux-x86_64-3.6/dedalus/core
copying dedalus/core/operators.py -> build/lib.linux-x86_64-3.6/dedalus/core
copying dedalus/core/pencil.py -> build/lib.linux-x86_64-3.6/dedalus/core
copying dedalus/core/__init__.py -> build/lib.linux-x86_64-3.6/dedalus/core
copying dedalus/core/timesteppers.py -> build/lib.linux-x86_64-3.6/dedalus/core
copying dedalus/core/distributor.py -> build/lib.linux-x86_64-3.6/dedalus/core
copying dedalus/core/field.py -> build/lib.linux-x86_64-3.6/dedalus/core
copying dedalus/core/domain.py -> build/lib.linux-x86_64-3.6/dedalus/core
copying dedalus/core/solvers.py -> build/lib.linux-x86_64-3.6/dedalus/core
copying dedalus/core/future.py -> build/lib.linux-x86_64-3.6/dedalus/core
copying dedalus/core/arithmetic.py -> build/lib.linux-x86_64-3.6/dedalus/core
copying dedalus/core/system.py -> build/lib.linux-x86_64-3.6/dedalus/core
copying dedalus/core/basis.py -> build/lib.linux-x86_64-3.6/dedalus/core
creating build/lib.linux-x86_64-3.6/dedalus/tools
copying dedalus/tools/plot_op.py -> build/lib.linux-x86_64-3.6/dedalus/tools
copying dedalus/tools/array.py -> build/lib.linux-x86_64-3.6/dedalus/tools
copying dedalus/tools/logging.py -> build/lib.linux-x86_64-3.6/dedalus/tools
copying dedalus/tools/exceptions.py -> build/lib.linux-x86_64-3.6/dedalus/tools
copying dedalus/tools/__init__.py -> build/lib.linux-x86_64-3.6/dedalus/tools
copying dedalus/tools/parsing.py -> build/lib.linux-x86_64-3.6/dedalus/tools
copying dedalus/tools/sparse.py -> build/lib.linux-x86_64-3.6/dedalus/tools
copying dedalus/tools/post.py -> build/lib.linux-x86_64-3.6/dedalus/tools
copying dedalus/tools/general.py -> build/lib.linux-x86_64-3.6/dedalus/tools
copying dedalus/tools/progress.py -> build/lib.linux-x86_64-3.6/dedalus/tools
copying dedalus/tools/dispatch.py -> build/lib.linux-x86_64-3.6/dedalus/tools
copying dedalus/tools/parallel.py -> build/lib.linux-x86_64-3.6/dedalus/tools
copying dedalus/tools/cache.py -> build/lib.linux-x86_64-3.6/dedalus/tools
copying dedalus/tools/config.py -> build/lib.linux-x86_64-3.6/dedalus/tools
creating build/lib.linux-x86_64-3.6/dedalus/tests
copying dedalus/tests/__init__.py -> build/lib.linux-x86_64-3.6/dedalus/tests
creating build/lib.linux-x86_64-3.6/dedalus/libraries/fftw
copying dedalus/libraries/fftw/__init__.py -> build/lib.linux-x86_64-3.6/dedalus/libraries/fftw
creating build/lib.linux-x86_64-3.6/dedalus/tests/special_functions
copying dedalus/tests/special_functions/bessel.py -> build/lib.linux-x86_64-3.6/dedalus/tests/special_functions
copying dedalus/tests/special_functions/__init__.py -> build/lib.linux-x86_64-3.6/dedalus/tests/special_functions
copying dedalus/tests/special_functions/airy.py -> build/lib.linux-x86_64-3.6/dedalus/tests/special_functions
copying dedalus/dedalus.cfg -> build/lib.linux-x86_64-3.6/dedalus
running build_ext
building 'dedalus.libraries.fftw.fftw_wrappers' extension
creating build/temp.linux-x86_64-3.6
creating build/temp.linux-x86_64-3.6/dedalus
creating build/temp.linux-x86_64-3.6/dedalus/libraries
creating build/temp.linux-x86_64-3.6/dedalus/libraries/fftw
icc -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -fPIC -Idedalus/libraries/fftw/ -I/short/e14/rmh561/tmp/pip-build-env-63moa959/overlay/lib/python3.6/site-packages/numpy/core/include -I/short/e14/rmh561/tmp/pip-build-env-63moa959/overlay/lib/python3.6/site-packages/mpi4py/include -I/apps/intel-mpi/
4.1.1.036/intel64/include -I/short/e14/rmh561/software/fftw3/3.3.8/include -I/short/e14/rmh561/conda/envs/dedalus/include/python3.6m -c dedalus/libraries/fftw/fftw_wrappers.c -o build/temp.linux-x86_64-3.6/dedalus/libraries/fftw/fftw_wrappers.o -Wno-error=declaration-after-statement
In file included from /short/e14/rmh561/tmp/pip-build-env-63moa959/overlay/lib/python3.6/site-packages/numpy/core/include/numpy/ndarraytypes.h(1822),
from /short/e14/rmh561/tmp/pip-build-env-63moa959/overlay/lib/python3.6/site-packages/numpy/core/include/numpy/ndarrayobject.h(12),
from /short/e14/rmh561/tmp/pip-build-env-63moa959/overlay/lib/python3.6/site-packages/numpy/core/include/numpy/arrayobject.h(4),
from dedalus/libraries/fftw/fftw_wrappers.c(642):
/short/e14/rmh561/tmp/pip-build-env-63moa959/overlay/lib/python3.6/site-packages/numpy/core/include/numpy/npy_1_7_deprecated_api.h(17): warning #1224: #warning directive: "Using deprecated NumPy API, disable it with " "#define NPY_NO_DEPRECATED_API NPY_1_7_API_VERSION"
#warning "Using deprecated NumPy API, disable it with " \
^
dedalus/libraries/fftw/fftw_wrappers.c(1361): error: identifier "MPI_Message" is undefined
MPI_Message ob_mpi;
^
compilation aborted for dedalus/libraries/fftw/fftw_wrappers.c (code 2)
error: command 'icc' failed with exit status 2
----------------------------------------
ERROR: Failed building wheel for dedalus
Running setup.py clean for dedalus
Failed to build dedalus
ERROR: Could not build wheels for dedalus which use PEP 517 and cannot be installed directly