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
mpi4py installation #172
Comments
I am not able to install mpi4py either. |
@jasmainak |
Yes, indeed. Thanks for catching this. |
@jasmainak @klankinen I don't think the conda version of mpi4py is very good. I found some problems with it causing a seg fault on my system with Python 3.7.9 Can you remove the conda version and install it with Yes @jasmainak this is not great stability. I think Python iterations outpace the |
I removed the conda install and tried with pip but I get a scary error: (testenv) PHS008348:figures mainak$ pip install --upgrade mpi4py
Collecting mpi4py
Using cached mpi4py-3.0.3.tar.gz (1.4 MB)
Building wheels for collected packages: mpi4py
Building wheel for mpi4py (setup.py) ... error
ERROR: Command errored out with exit status 1:
command: /Users/mainak/anaconda3/envs/testenv/bin/python -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/private/var/folders/vy/v2l8b_011rn1nt1nrx8ffb_00000gp/T/pip-install-y7nqbqak/mpi4py/setup.py'"'"'; __file__='"'"'/private/var/folders/vy/v2l8b_011rn1nt1nrx8ffb_00000gp/T/pip-install-y7nqbqak/mpi4py/setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' bdist_wheel -d /private/var/folders/vy/v2l8b_011rn1nt1nrx8ffb_00000gp/T/pip-wheel-6y_gnret
cwd: /private/var/folders/vy/v2l8b_011rn1nt1nrx8ffb_00000gp/T/pip-install-y7nqbqak/mpi4py/
Complete output (206 lines):
running bdist_wheel
running build
running build_src
running build_py
creating build
creating build/lib.macosx-10.9-x86_64-3.7
creating build/lib.macosx-10.9-x86_64-3.7/mpi4py
copying src/mpi4py/run.py -> build/lib.macosx-10.9-x86_64-3.7/mpi4py
copying src/mpi4py/__init__.py -> build/lib.macosx-10.9-x86_64-3.7/mpi4py
copying src/mpi4py/bench.py -> build/lib.macosx-10.9-x86_64-3.7/mpi4py
copying src/mpi4py/__main__.py -> build/lib.macosx-10.9-x86_64-3.7/mpi4py
creating build/lib.macosx-10.9-x86_64-3.7/mpi4py/futures
copying src/mpi4py/futures/_base.py -> build/lib.macosx-10.9-x86_64-3.7/mpi4py/futures
copying src/mpi4py/futures/server.py -> build/lib.macosx-10.9-x86_64-3.7/mpi4py/futures
copying src/mpi4py/futures/__init__.py -> build/lib.macosx-10.9-x86_64-3.7/mpi4py/futures
copying src/mpi4py/futures/pool.py -> build/lib.macosx-10.9-x86_64-3.7/mpi4py/futures
copying src/mpi4py/futures/aplus.py -> build/lib.macosx-10.9-x86_64-3.7/mpi4py/futures
copying src/mpi4py/futures/__main__.py -> build/lib.macosx-10.9-x86_64-3.7/mpi4py/futures
copying src/mpi4py/futures/_lib.py -> build/lib.macosx-10.9-x86_64-3.7/mpi4py/futures
copying src/mpi4py/__init__.pxd -> build/lib.macosx-10.9-x86_64-3.7/mpi4py
copying src/mpi4py/libmpi.pxd -> build/lib.macosx-10.9-x86_64-3.7/mpi4py
copying src/mpi4py/MPI.pxd -> build/lib.macosx-10.9-x86_64-3.7/mpi4py
creating build/lib.macosx-10.9-x86_64-3.7/mpi4py/include
creating build/lib.macosx-10.9-x86_64-3.7/mpi4py/include/mpi4py
copying src/mpi4py/include/mpi4py/mpi4py.MPI.h -> build/lib.macosx-10.9-x86_64-3.7/mpi4py/include/mpi4py
copying src/mpi4py/include/mpi4py/mpi4py.MPI_api.h -> build/lib.macosx-10.9-x86_64-3.7/mpi4py/include/mpi4py
copying src/mpi4py/include/mpi4py/mpi4py.h -> build/lib.macosx-10.9-x86_64-3.7/mpi4py/include/mpi4py
copying src/mpi4py/include/mpi4py/mpi4py.i -> build/lib.macosx-10.9-x86_64-3.7/mpi4py/include/mpi4py
copying src/mpi4py/include/mpi4py/mpi.pxi -> build/lib.macosx-10.9-x86_64-3.7/mpi4py/include/mpi4py
running build_clib
MPI configuration: [mpi] from 'mpi.cfg'
MPI C compiler: /Users/mainak/anaconda3/envs/testenv/bin/mpicc
MPI C++ compiler: /Users/mainak/anaconda3/envs/testenv/bin/mpicxx
MPI F compiler: /Users/mainak/anaconda3/envs/testenv/bin/mpifort
MPI F90 compiler: /Users/mainak/anaconda3/envs/testenv/bin/mpif90
MPI F77 compiler: /Users/mainak/anaconda3/envs/testenv/bin/mpif77
checking for library 'lmpe' ...
/Users/mainak/anaconda3/envs/testenv/bin/mpicc -Wno-unused-result -Wsign-compare -Wunreachable-code -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -I/Users/mainak/anaconda3/envs/testenv/include -arch x86_64 -I/Users/mainak/anaconda3/envs/testenv/include -arch x86_64 -c _configtest.c -o _configtest.o
--------------------------------------------------------------------------
The Open MPI wrapper compiler was unable to find the specified compiler
x86_64-apple-darwin13.4.0-clang in your PATH.
Note that this compiler was either specified at configure time or in
one of several possible environment variables.
--------------------------------------------------------------------------
failure.
removing: _configtest.c _configtest.o
building 'mpe' dylib library
creating build/temp.macosx-10.9-x86_64-3.7
creating build/temp.macosx-10.9-x86_64-3.7/src
creating build/temp.macosx-10.9-x86_64-3.7/src/lib-pmpi
/Users/mainak/anaconda3/envs/testenv/bin/mpicc -Wno-unused-result -Wsign-compare -Wunreachable-code -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -I/Users/mainak/anaconda3/envs/testenv/include -arch x86_64 -I/Users/mainak/anaconda3/envs/testenv/include -arch x86_64 -c src/lib-pmpi/mpe.c -o build/temp.macosx-10.9-x86_64-3.7/src/lib-pmpi/mpe.o
--------------------------------------------------------------------------
The Open MPI wrapper compiler was unable to find the specified compiler
x86_64-apple-darwin13.4.0-clang in your PATH.
Note that this compiler was either specified at configure time or in
one of several possible environment variables.
--------------------------------------------------------------------------
warning: build_clib: command '/Users/mainak/anaconda3/envs/testenv/bin/mpicc' failed with exit status 1
warning: build_clib: building optional library "mpe" failed
checking for library 'vt-mpi' ...
/Users/mainak/anaconda3/envs/testenv/bin/mpicc -Wno-unused-result -Wsign-compare -Wunreachable-code -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -I/Users/mainak/anaconda3/envs/testenv/include -arch x86_64 -I/Users/mainak/anaconda3/envs/testenv/include -arch x86_64 -c _configtest.c -o _configtest.o
--------------------------------------------------------------------------
The Open MPI wrapper compiler was unable to find the specified compiler
x86_64-apple-darwin13.4.0-clang in your PATH.
Note that this compiler was either specified at configure time or in
one of several possible environment variables.
--------------------------------------------------------------------------
failure.
removing: _configtest.c _configtest.o
checking for library 'vt.mpi' ...
/Users/mainak/anaconda3/envs/testenv/bin/mpicc -Wno-unused-result -Wsign-compare -Wunreachable-code -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -I/Users/mainak/anaconda3/envs/testenv/include -arch x86_64 -I/Users/mainak/anaconda3/envs/testenv/include -arch x86_64 -c _configtest.c -o _configtest.o
--------------------------------------------------------------------------
The Open MPI wrapper compiler was unable to find the specified compiler
x86_64-apple-darwin13.4.0-clang in your PATH.
Note that this compiler was either specified at configure time or in
one of several possible environment variables.
--------------------------------------------------------------------------
failure.
removing: _configtest.c _configtest.o
building 'vt' dylib library
/Users/mainak/anaconda3/envs/testenv/bin/mpicc -Wno-unused-result -Wsign-compare -Wunreachable-code -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -I/Users/mainak/anaconda3/envs/testenv/include -arch x86_64 -I/Users/mainak/anaconda3/envs/testenv/include -arch x86_64 -c src/lib-pmpi/vt.c -o build/temp.macosx-10.9-x86_64-3.7/src/lib-pmpi/vt.o
--------------------------------------------------------------------------
The Open MPI wrapper compiler was unable to find the specified compiler
x86_64-apple-darwin13.4.0-clang in your PATH.
Note that this compiler was either specified at configure time or in
one of several possible environment variables.
--------------------------------------------------------------------------
warning: build_clib: command '/Users/mainak/anaconda3/envs/testenv/bin/mpicc' failed with exit status 1
warning: build_clib: building optional library "vt" failed
checking for library 'vt-mpi' ...
/Users/mainak/anaconda3/envs/testenv/bin/mpicc -Wno-unused-result -Wsign-compare -Wunreachable-code -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -I/Users/mainak/anaconda3/envs/testenv/include -arch x86_64 -I/Users/mainak/anaconda3/envs/testenv/include -arch x86_64 -c _configtest.c -o _configtest.o
--------------------------------------------------------------------------
The Open MPI wrapper compiler was unable to find the specified compiler
x86_64-apple-darwin13.4.0-clang in your PATH.
Note that this compiler was either specified at configure time or in
one of several possible environment variables.
--------------------------------------------------------------------------
failure.
removing: _configtest.c _configtest.o
checking for library 'vt.mpi' ...
/Users/mainak/anaconda3/envs/testenv/bin/mpicc -Wno-unused-result -Wsign-compare -Wunreachable-code -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -I/Users/mainak/anaconda3/envs/testenv/include -arch x86_64 -I/Users/mainak/anaconda3/envs/testenv/include -arch x86_64 -c _configtest.c -o _configtest.o
--------------------------------------------------------------------------
The Open MPI wrapper compiler was unable to find the specified compiler
x86_64-apple-darwin13.4.0-clang in your PATH.
Note that this compiler was either specified at configure time or in
one of several possible environment variables.
--------------------------------------------------------------------------
failure.
removing: _configtest.c _configtest.o
building 'vt-mpi' dylib library
/Users/mainak/anaconda3/envs/testenv/bin/mpicc -Wno-unused-result -Wsign-compare -Wunreachable-code -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -I/Users/mainak/anaconda3/envs/testenv/include -arch x86_64 -I/Users/mainak/anaconda3/envs/testenv/include -arch x86_64 -c src/lib-pmpi/vt-mpi.c -o build/temp.macosx-10.9-x86_64-3.7/src/lib-pmpi/vt-mpi.o
--------------------------------------------------------------------------
The Open MPI wrapper compiler was unable to find the specified compiler
x86_64-apple-darwin13.4.0-clang in your PATH.
Note that this compiler was either specified at configure time or in
one of several possible environment variables.
--------------------------------------------------------------------------
warning: build_clib: command '/Users/mainak/anaconda3/envs/testenv/bin/mpicc' failed with exit status 1
warning: build_clib: building optional library "vt-mpi" failed
checking for library 'vt-hyb' ...
/Users/mainak/anaconda3/envs/testenv/bin/mpicc -Wno-unused-result -Wsign-compare -Wunreachable-code -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -I/Users/mainak/anaconda3/envs/testenv/include -arch x86_64 -I/Users/mainak/anaconda3/envs/testenv/include -arch x86_64 -c _configtest.c -o _configtest.o
--------------------------------------------------------------------------
The Open MPI wrapper compiler was unable to find the specified compiler
x86_64-apple-darwin13.4.0-clang in your PATH.
Note that this compiler was either specified at configure time or in
one of several possible environment variables.
--------------------------------------------------------------------------
failure.
removing: _configtest.c _configtest.o
checking for library 'vt.ompi' ...
/Users/mainak/anaconda3/envs/testenv/bin/mpicc -Wno-unused-result -Wsign-compare -Wunreachable-code -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -I/Users/mainak/anaconda3/envs/testenv/include -arch x86_64 -I/Users/mainak/anaconda3/envs/testenv/include -arch x86_64 -c _configtest.c -o _configtest.o
--------------------------------------------------------------------------
The Open MPI wrapper compiler was unable to find the specified compiler
x86_64-apple-darwin13.4.0-clang in your PATH.
Note that this compiler was either specified at configure time or in
one of several possible environment variables.
--------------------------------------------------------------------------
failure.
removing: _configtest.c _configtest.o
building 'vt-hyb' dylib library
/Users/mainak/anaconda3/envs/testenv/bin/mpicc -Wno-unused-result -Wsign-compare -Wunreachable-code -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -I/Users/mainak/anaconda3/envs/testenv/include -arch x86_64 -I/Users/mainak/anaconda3/envs/testenv/include -arch x86_64 -c src/lib-pmpi/vt-hyb.c -o build/temp.macosx-10.9-x86_64-3.7/src/lib-pmpi/vt-hyb.o
--------------------------------------------------------------------------
The Open MPI wrapper compiler was unable to find the specified compiler
x86_64-apple-darwin13.4.0-clang in your PATH.
Note that this compiler was either specified at configure time or in
one of several possible environment variables.
--------------------------------------------------------------------------
warning: build_clib: command '/Users/mainak/anaconda3/envs/testenv/bin/mpicc' failed with exit status 1
warning: build_clib: building optional library "vt-hyb" failed
running build_ext
MPI configuration: [mpi] from 'mpi.cfg'
MPI C compiler: /Users/mainak/anaconda3/envs/testenv/bin/mpicc
MPI C++ compiler: /Users/mainak/anaconda3/envs/testenv/bin/mpicxx
MPI F compiler: /Users/mainak/anaconda3/envs/testenv/bin/mpifort
MPI F90 compiler: /Users/mainak/anaconda3/envs/testenv/bin/mpif90
MPI F77 compiler: /Users/mainak/anaconda3/envs/testenv/bin/mpif77
checking for dlopen() availability ...
checking for header 'dlfcn.h' ...
gcc -Wno-unused-result -Wsign-compare -Wunreachable-code -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -I/Users/mainak/anaconda3/envs/testenv/include -arch x86_64 -I/Users/mainak/anaconda3/envs/testenv/include -arch x86_64 -I/Users/mainak/anaconda3/envs/testenv/include/python3.7m -c _configtest.c -o _configtest.o
success!
removing: _configtest.c _configtest.o
success!
checking for library 'dl' ...
gcc -Wno-unused-result -Wsign-compare -Wunreachable-code -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -I/Users/mainak/anaconda3/envs/testenv/include -arch x86_64 -I/Users/mainak/anaconda3/envs/testenv/include -arch x86_64 -I/Users/mainak/anaconda3/envs/testenv/include/python3.7m -c _configtest.c -o _configtest.o
gcc -flat_namespace -undefined suppress -arch x86_64 _configtest.o -Lbuild/temp.macosx-10.9-x86_64-3.7 -ldl -o _configtest
success!
removing: _configtest.c _configtest.o _configtest
checking for function 'dlopen' ...
gcc -Wno-unused-result -Wsign-compare -Wunreachable-code -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -I/Users/mainak/anaconda3/envs/testenv/include -arch x86_64 -I/Users/mainak/anaconda3/envs/testenv/include -arch x86_64 -I/Users/mainak/anaconda3/envs/testenv/include/python3.7m -c _configtest.c -o _configtest.o
gcc -arch x86_64 _configtest.o -Lbuild/temp.macosx-10.9-x86_64-3.7 -ldl -o _configtest
success!
removing: _configtest.c _configtest.o _configtest
building 'mpi4py.dl' extension
gcc -Wno-unused-result -Wsign-compare -Wunreachable-code -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -I/Users/mainak/anaconda3/envs/testenv/include -arch x86_64 -I/Users/mainak/anaconda3/envs/testenv/include -arch x86_64 -DHAVE_DLFCN_H=1 -DHAVE_DLOPEN=1 -I/Users/mainak/anaconda3/envs/testenv/include/python3.7m -c src/dynload.c -o build/temp.macosx-10.9-x86_64-3.7/src/dynload.o
gcc -bundle -undefined dynamic_lookup -L/Users/mainak/anaconda3/envs/testenv/lib -arch x86_64 -L/Users/mainak/anaconda3/envs/testenv/lib -arch x86_64 -arch x86_64 build/temp.macosx-10.9-x86_64-3.7/src/dynload.o -Lbuild/temp.macosx-10.9-x86_64-3.7 -ldl -o build/lib.macosx-10.9-x86_64-3.7/mpi4py/dl.cpython-37m-darwin.so
checking for MPI compile and link ...
/Users/mainak/anaconda3/envs/testenv/bin/mpicc -Wno-unused-result -Wsign-compare -Wunreachable-code -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -I/Users/mainak/anaconda3/envs/testenv/include -arch x86_64 -I/Users/mainak/anaconda3/envs/testenv/include -arch x86_64 -I/Users/mainak/anaconda3/envs/testenv/include/python3.7m -c _configtest.c -o _configtest.o
--------------------------------------------------------------------------
The Open MPI wrapper compiler was unable to find the specified compiler
x86_64-apple-darwin13.4.0-clang in your PATH.
Note that this compiler was either specified at configure time or in
one of several possible environment variables.
--------------------------------------------------------------------------
failure.
removing: _configtest.c _configtest.o
error: Cannot compile MPI programs. Check your configuration!!!
----------------------------------------
ERROR: Failed building wheel for mpi4py
Running setup.py clean for mpi4py
Failed to build mpi4py
Installing collected packages: mpi4py
Running setup.py install for mpi4py ... error
ERROR: Command errored out with exit status 1:
command: /Users/mainak/anaconda3/envs/testenv/bin/python -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/private/var/folders/vy/v2l8b_011rn1nt1nrx8ffb_00000gp/T/pip-install-y7nqbqak/mpi4py/setup.py'"'"'; __file__='"'"'/private/var/folders/vy/v2l8b_011rn1nt1nrx8ffb_00000gp/T/pip-install-y7nqbqak/mpi4py/setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' install --record /private/var/folders/vy/v2l8b_011rn1nt1nrx8ffb_00000gp/T/pip-record-gnkszmk8/install-record.txt --single-version-externally-managed --compile --install-headers /Users/mainak/anaconda3/envs/testenv/include/python3.7m/mpi4py
cwd: /private/var/folders/vy/v2l8b_011rn1nt1nrx8ffb_00000gp/T/pip-install-y7nqbqak/mpi4py/
Complete output (206 lines):
running install
running build
running build_src
running build_py
creating build
creating build/lib.macosx-10.9-x86_64-3.7
creating build/lib.macosx-10.9-x86_64-3.7/mpi4py
copying src/mpi4py/run.py -> build/lib.macosx-10.9-x86_64-3.7/mpi4py
copying src/mpi4py/__init__.py -> build/lib.macosx-10.9-x86_64-3.7/mpi4py
copying src/mpi4py/bench.py -> build/lib.macosx-10.9-x86_64-3.7/mpi4py
copying src/mpi4py/__main__.py -> build/lib.macosx-10.9-x86_64-3.7/mpi4py
creating build/lib.macosx-10.9-x86_64-3.7/mpi4py/futures
copying src/mpi4py/futures/_base.py -> build/lib.macosx-10.9-x86_64-3.7/mpi4py/futures
copying src/mpi4py/futures/server.py -> build/lib.macosx-10.9-x86_64-3.7/mpi4py/futures
copying src/mpi4py/futures/__init__.py -> build/lib.macosx-10.9-x86_64-3.7/mpi4py/futures
copying src/mpi4py/futures/pool.py -> build/lib.macosx-10.9-x86_64-3.7/mpi4py/futures
copying src/mpi4py/futures/aplus.py -> build/lib.macosx-10.9-x86_64-3.7/mpi4py/futures
copying src/mpi4py/futures/__main__.py -> build/lib.macosx-10.9-x86_64-3.7/mpi4py/futures
copying src/mpi4py/futures/_lib.py -> build/lib.macosx-10.9-x86_64-3.7/mpi4py/futures
copying src/mpi4py/__init__.pxd -> build/lib.macosx-10.9-x86_64-3.7/mpi4py
copying src/mpi4py/libmpi.pxd -> build/lib.macosx-10.9-x86_64-3.7/mpi4py
copying src/mpi4py/MPI.pxd -> build/lib.macosx-10.9-x86_64-3.7/mpi4py
creating build/lib.macosx-10.9-x86_64-3.7/mpi4py/include
creating build/lib.macosx-10.9-x86_64-3.7/mpi4py/include/mpi4py
copying src/mpi4py/include/mpi4py/mpi4py.MPI.h -> build/lib.macosx-10.9-x86_64-3.7/mpi4py/include/mpi4py
copying src/mpi4py/include/mpi4py/mpi4py.MPI_api.h -> build/lib.macosx-10.9-x86_64-3.7/mpi4py/include/mpi4py
copying src/mpi4py/include/mpi4py/mpi4py.h -> build/lib.macosx-10.9-x86_64-3.7/mpi4py/include/mpi4py
copying src/mpi4py/include/mpi4py/mpi4py.i -> build/lib.macosx-10.9-x86_64-3.7/mpi4py/include/mpi4py
copying src/mpi4py/include/mpi4py/mpi.pxi -> build/lib.macosx-10.9-x86_64-3.7/mpi4py/include/mpi4py
running build_clib
MPI configuration: [mpi] from 'mpi.cfg'
MPI C compiler: /Users/mainak/anaconda3/envs/testenv/bin/mpicc
MPI C++ compiler: /Users/mainak/anaconda3/envs/testenv/bin/mpicxx
MPI F compiler: /Users/mainak/anaconda3/envs/testenv/bin/mpifort
MPI F90 compiler: /Users/mainak/anaconda3/envs/testenv/bin/mpif90
MPI F77 compiler: /Users/mainak/anaconda3/envs/testenv/bin/mpif77
checking for library 'lmpe' ...
/Users/mainak/anaconda3/envs/testenv/bin/mpicc -Wno-unused-result -Wsign-compare -Wunreachable-code -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -I/Users/mainak/anaconda3/envs/testenv/include -arch x86_64 -I/Users/mainak/anaconda3/envs/testenv/include -arch x86_64 -c _configtest.c -o _configtest.o
--------------------------------------------------------------------------
The Open MPI wrapper compiler was unable to find the specified compiler
x86_64-apple-darwin13.4.0-clang in your PATH.
Note that this compiler was either specified at configure time or in
one of several possible environment variables.
--------------------------------------------------------------------------
failure.
removing: _configtest.c _configtest.o
building 'mpe' dylib library
creating build/temp.macosx-10.9-x86_64-3.7
creating build/temp.macosx-10.9-x86_64-3.7/src
creating build/temp.macosx-10.9-x86_64-3.7/src/lib-pmpi
/Users/mainak/anaconda3/envs/testenv/bin/mpicc -Wno-unused-result -Wsign-compare -Wunreachable-code -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -I/Users/mainak/anaconda3/envs/testenv/include -arch x86_64 -I/Users/mainak/anaconda3/envs/testenv/include -arch x86_64 -c src/lib-pmpi/mpe.c -o build/temp.macosx-10.9-x86_64-3.7/src/lib-pmpi/mpe.o
--------------------------------------------------------------------------
The Open MPI wrapper compiler was unable to find the specified compiler
x86_64-apple-darwin13.4.0-clang in your PATH.
Note that this compiler was either specified at configure time or in
one of several possible environment variables.
--------------------------------------------------------------------------
warning: build_clib: command '/Users/mainak/anaconda3/envs/testenv/bin/mpicc' failed with exit status 1
warning: build_clib: building optional library "mpe" failed
checking for library 'vt-mpi' ...
/Users/mainak/anaconda3/envs/testenv/bin/mpicc -Wno-unused-result -Wsign-compare -Wunreachable-code -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -I/Users/mainak/anaconda3/envs/testenv/include -arch x86_64 -I/Users/mainak/anaconda3/envs/testenv/include -arch x86_64 -c _configtest.c -o _configtest.o
--------------------------------------------------------------------------
The Open MPI wrapper compiler was unable to find the specified compiler
x86_64-apple-darwin13.4.0-clang in your PATH.
Note that this compiler was either specified at configure time or in
one of several possible environment variables.
--------------------------------------------------------------------------
failure.
removing: _configtest.c _configtest.o
checking for library 'vt.mpi' ...
/Users/mainak/anaconda3/envs/testenv/bin/mpicc -Wno-unused-result -Wsign-compare -Wunreachable-code -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -I/Users/mainak/anaconda3/envs/testenv/include -arch x86_64 -I/Users/mainak/anaconda3/envs/testenv/include -arch x86_64 -c _configtest.c -o _configtest.o
--------------------------------------------------------------------------
The Open MPI wrapper compiler was unable to find the specified compiler
x86_64-apple-darwin13.4.0-clang in your PATH.
Note that this compiler was either specified at configure time or in
one of several possible environment variables.
--------------------------------------------------------------------------
failure.
removing: _configtest.c _configtest.o
building 'vt' dylib library
/Users/mainak/anaconda3/envs/testenv/bin/mpicc -Wno-unused-result -Wsign-compare -Wunreachable-code -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -I/Users/mainak/anaconda3/envs/testenv/include -arch x86_64 -I/Users/mainak/anaconda3/envs/testenv/include -arch x86_64 -c src/lib-pmpi/vt.c -o build/temp.macosx-10.9-x86_64-3.7/src/lib-pmpi/vt.o
--------------------------------------------------------------------------
The Open MPI wrapper compiler was unable to find the specified compiler
x86_64-apple-darwin13.4.0-clang in your PATH.
Note that this compiler was either specified at configure time or in
one of several possible environment variables.
--------------------------------------------------------------------------
warning: build_clib: command '/Users/mainak/anaconda3/envs/testenv/bin/mpicc' failed with exit status 1
warning: build_clib: building optional library "vt" failed
checking for library 'vt-mpi' ...
/Users/mainak/anaconda3/envs/testenv/bin/mpicc -Wno-unused-result -Wsign-compare -Wunreachable-code -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -I/Users/mainak/anaconda3/envs/testenv/include -arch x86_64 -I/Users/mainak/anaconda3/envs/testenv/include -arch x86_64 -c _configtest.c -o _configtest.o
--------------------------------------------------------------------------
The Open MPI wrapper compiler was unable to find the specified compiler
x86_64-apple-darwin13.4.0-clang in your PATH.
Note that this compiler was either specified at configure time or in
one of several possible environment variables.
--------------------------------------------------------------------------
failure.
removing: _configtest.c _configtest.o
checking for library 'vt.mpi' ...
/Users/mainak/anaconda3/envs/testenv/bin/mpicc -Wno-unused-result -Wsign-compare -Wunreachable-code -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -I/Users/mainak/anaconda3/envs/testenv/include -arch x86_64 -I/Users/mainak/anaconda3/envs/testenv/include -arch x86_64 -c _configtest.c -o _configtest.o
--------------------------------------------------------------------------
The Open MPI wrapper compiler was unable to find the specified compiler
x86_64-apple-darwin13.4.0-clang in your PATH.
Note that this compiler was either specified at configure time or in
one of several possible environment variables.
--------------------------------------------------------------------------
failure.
removing: _configtest.c _configtest.o
building 'vt-mpi' dylib library
/Users/mainak/anaconda3/envs/testenv/bin/mpicc -Wno-unused-result -Wsign-compare -Wunreachable-code -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -I/Users/mainak/anaconda3/envs/testenv/include -arch x86_64 -I/Users/mainak/anaconda3/envs/testenv/include -arch x86_64 -c src/lib-pmpi/vt-mpi.c -o build/temp.macosx-10.9-x86_64-3.7/src/lib-pmpi/vt-mpi.o
--------------------------------------------------------------------------
The Open MPI wrapper compiler was unable to find the specified compiler
x86_64-apple-darwin13.4.0-clang in your PATH.
Note that this compiler was either specified at configure time or in
one of several possible environment variables.
--------------------------------------------------------------------------
warning: build_clib: command '/Users/mainak/anaconda3/envs/testenv/bin/mpicc' failed with exit status 1
warning: build_clib: building optional library "vt-mpi" failed
checking for library 'vt-hyb' ...
/Users/mainak/anaconda3/envs/testenv/bin/mpicc -Wno-unused-result -Wsign-compare -Wunreachable-code -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -I/Users/mainak/anaconda3/envs/testenv/include -arch x86_64 -I/Users/mainak/anaconda3/envs/testenv/include -arch x86_64 -c _configtest.c -o _configtest.o
--------------------------------------------------------------------------
The Open MPI wrapper compiler was unable to find the specified compiler
x86_64-apple-darwin13.4.0-clang in your PATH.
Note that this compiler was either specified at configure time or in
one of several possible environment variables.
--------------------------------------------------------------------------
failure.
removing: _configtest.c _configtest.o
checking for library 'vt.ompi' ...
/Users/mainak/anaconda3/envs/testenv/bin/mpicc -Wno-unused-result -Wsign-compare -Wunreachable-code -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -I/Users/mainak/anaconda3/envs/testenv/include -arch x86_64 -I/Users/mainak/anaconda3/envs/testenv/include -arch x86_64 -c _configtest.c -o _configtest.o
--------------------------------------------------------------------------
The Open MPI wrapper compiler was unable to find the specified compiler
x86_64-apple-darwin13.4.0-clang in your PATH.
Note that this compiler was either specified at configure time or in
one of several possible environment variables.
--------------------------------------------------------------------------
failure.
removing: _configtest.c _configtest.o
building 'vt-hyb' dylib library
/Users/mainak/anaconda3/envs/testenv/bin/mpicc -Wno-unused-result -Wsign-compare -Wunreachable-code -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -I/Users/mainak/anaconda3/envs/testenv/include -arch x86_64 -I/Users/mainak/anaconda3/envs/testenv/include -arch x86_64 -c src/lib-pmpi/vt-hyb.c -o build/temp.macosx-10.9-x86_64-3.7/src/lib-pmpi/vt-hyb.o
--------------------------------------------------------------------------
The Open MPI wrapper compiler was unable to find the specified compiler
x86_64-apple-darwin13.4.0-clang in your PATH.
Note that this compiler was either specified at configure time or in
one of several possible environment variables.
--------------------------------------------------------------------------
warning: build_clib: command '/Users/mainak/anaconda3/envs/testenv/bin/mpicc' failed with exit status 1
warning: build_clib: building optional library "vt-hyb" failed
running build_ext
MPI configuration: [mpi] from 'mpi.cfg'
MPI C compiler: /Users/mainak/anaconda3/envs/testenv/bin/mpicc
MPI C++ compiler: /Users/mainak/anaconda3/envs/testenv/bin/mpicxx
MPI F compiler: /Users/mainak/anaconda3/envs/testenv/bin/mpifort
MPI F90 compiler: /Users/mainak/anaconda3/envs/testenv/bin/mpif90
MPI F77 compiler: /Users/mainak/anaconda3/envs/testenv/bin/mpif77
checking for dlopen() availability ...
checking for header 'dlfcn.h' ...
gcc -Wno-unused-result -Wsign-compare -Wunreachable-code -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -I/Users/mainak/anaconda3/envs/testenv/include -arch x86_64 -I/Users/mainak/anaconda3/envs/testenv/include -arch x86_64 -I/Users/mainak/anaconda3/envs/testenv/include/python3.7m -c _configtest.c -o _configtest.o
success!
removing: _configtest.c _configtest.o
success!
checking for library 'dl' ...
gcc -Wno-unused-result -Wsign-compare -Wunreachable-code -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -I/Users/mainak/anaconda3/envs/testenv/include -arch x86_64 -I/Users/mainak/anaconda3/envs/testenv/include -arch x86_64 -I/Users/mainak/anaconda3/envs/testenv/include/python3.7m -c _configtest.c -o _configtest.o
gcc -flat_namespace -undefined suppress -arch x86_64 _configtest.o -Lbuild/temp.macosx-10.9-x86_64-3.7 -ldl -o _configtest
success!
removing: _configtest.c _configtest.o _configtest
checking for function 'dlopen' ...
gcc -Wno-unused-result -Wsign-compare -Wunreachable-code -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -I/Users/mainak/anaconda3/envs/testenv/include -arch x86_64 -I/Users/mainak/anaconda3/envs/testenv/include -arch x86_64 -I/Users/mainak/anaconda3/envs/testenv/include/python3.7m -c _configtest.c -o _configtest.o
gcc -arch x86_64 _configtest.o -Lbuild/temp.macosx-10.9-x86_64-3.7 -ldl -o _configtest
success!
removing: _configtest.c _configtest.o _configtest
building 'mpi4py.dl' extension
gcc -Wno-unused-result -Wsign-compare -Wunreachable-code -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -I/Users/mainak/anaconda3/envs/testenv/include -arch x86_64 -I/Users/mainak/anaconda3/envs/testenv/include -arch x86_64 -DHAVE_DLFCN_H=1 -DHAVE_DLOPEN=1 -I/Users/mainak/anaconda3/envs/testenv/include/python3.7m -c src/dynload.c -o build/temp.macosx-10.9-x86_64-3.7/src/dynload.o
gcc -bundle -undefined dynamic_lookup -L/Users/mainak/anaconda3/envs/testenv/lib -arch x86_64 -L/Users/mainak/anaconda3/envs/testenv/lib -arch x86_64 -arch x86_64 build/temp.macosx-10.9-x86_64-3.7/src/dynload.o -Lbuild/temp.macosx-10.9-x86_64-3.7 -ldl -o build/lib.macosx-10.9-x86_64-3.7/mpi4py/dl.cpython-37m-darwin.so
checking for MPI compile and link ...
/Users/mainak/anaconda3/envs/testenv/bin/mpicc -Wno-unused-result -Wsign-compare -Wunreachable-code -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -I/Users/mainak/anaconda3/envs/testenv/include -arch x86_64 -I/Users/mainak/anaconda3/envs/testenv/include -arch x86_64 -I/Users/mainak/anaconda3/envs/testenv/include/python3.7m -c _configtest.c -o _configtest.o
--------------------------------------------------------------------------
The Open MPI wrapper compiler was unable to find the specified compiler
x86_64-apple-darwin13.4.0-clang in your PATH.
Note that this compiler was either specified at configure time or in
one of several possible environment variables.
--------------------------------------------------------------------------
failure.
removing: _configtest.c _configtest.o
error: Cannot compile MPI programs. Check your configuration!!!
----------------------------------------
ERROR: Command errored out with exit status 1: /Users/mainak/anaconda3/envs/testenv/bin/python -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/private/var/folders/vy/v2l8b_011rn1nt1nrx8ffb_00000gp/T/pip-install-y7nqbqak/mpi4py/setup.py'"'"'; __file__='"'"'/private/var/folders/vy/v2l8b_011rn1nt1nrx8ffb_00000gp/T/pip-install-y7nqbqak/mpi4py/setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' install --record /private/var/folders/vy/v2l8b_011rn1nt1nrx8ffb_00000gp/T/pip-record-gnkszmk8/install-record.txt --single-version-externally-managed --compile --install-headers /Users/mainak/anaconda3/envs/testenv/include/python3.7m/mpi4py Check the logs for full command output.
|
I also tried with the "--upgrade" flag, no luck |
Uck. Now I remember. That's the reason I went with conda in the first place. It requires the mpicc compiler, which I conveniently happen to have installed on my laptop. Let me package it in a docker container... ;) Back to conda... Did you figure out why it won't let you import it? Also, perhaps use a fresh conda env for this troubleshooting. |
okay I figured out the issue finally ... conda was tripping me, had encountered this the other day while helping @kohl-carmen If you make a new environment in conda like this: $ conda create -n test_mpi python=3.8 the ps: there is a minor typo in the install instructions, it should be "--yes" not "yes" in the conda installation command. |
@klankinen if you still face issues with |
I have been struggling with
mpi4py
installation in #164. I followed all the instructions here and ran the following command:which runs as expected and gives:
However, when I run the test:
I get:
hnn_core/tests/test_compare_hnn.py::test_mpi /Users/mainak/Documents/github_repos/hnn-core/hnn_core/parallel_backends.py:186: UserWarning: mpi4py not installed. will run on single processor warn('mpi4py not installed. will run on single processor')
Also I think when
mpi4py
is not installed, the test should be skipped instead of passing.The text was updated successfully, but these errors were encountered: