Dear Lawrence, Here is what I get when trying the commands you suggested: campus-10-41-49-255:~ mmfg$ mpicc -show clang -I/usr/local/Cellar/open-mpi/1.8.4/include -L/usr/local/opt/libevent/lib -L/usr/local/Cellar/open-mpi/1.8.4/lib -lmpi campus-10-41-49-255:~ mmfg$ mpicc --version Apple LLVM version 5.1 (clang-503.0.40) (based on LLVM 3.4svn) Target: x86_64-apple-darwin13.4.0 Thread model: posix campus-10-41-49-255:~ mmfg$ mpicxx -show clang++ -I/usr/local/Cellar/open-mpi/1.8.4/include -L/usr/local/opt/libevent/lib -L/usr/local/Cellar/open-mpi/1.8.4/lib -lmpi_cxx -lmpi campus-10-41-49-255:~ mmfg$ mpicxx --version Apple LLVM version 5.1 (clang-503.0.40) (based on LLVM 3.4svn) Target: x86_64-apple-darwin13.4.0 Thread model: posix Thanks, Floriane ________________________________________ De : firedrake-bounces@imperial.ac.uk <firedrake-bounces@imperial.ac.uk> de la part de Lawrence Mitchell <lawrence.mitchell@imperial.ac.uk> Envoyé : mercredi 2 décembre 2015 13:26 À : firedrake@imperial.ac.uk Objet : Re: [firedrake] FD on mac On 02/12/15 12:09, Floriane Gidel [RPG] wrote:
Dear all,
In my case, the installation seemed to work, but when I try to run "from firedrake import *" I get the following error:
Traceback (most recent call last): File "<stdin>", line 1, in <module> File "/Users/mmfg/anaconda/lib/python2.7/site-packages/firedrake/__init__.py", line 31, in <module> from firedrake.assemble import * File "/Users/mmfg/anaconda/lib/python2.7/site-packages/firedrake/assemble.py", line 10, in <module> from firedrake import assemble_expressions File "/Users/mmfg/anaconda/lib/python2.7/site-packages/firedrake/assemble_expressions.py", line 17, in <module> from firedrake import function File "/Users/mmfg/anaconda/lib/python2.7/site-packages/firedrake/function.py", line 14, in <module> from firedrake import functionspace File "/Users/mmfg/anaconda/lib/python2.7/site-packages/firedrake/functionspace.py", line 17, in <module> import firedrake.mesh as mesh_t File "/Users/mmfg/anaconda/lib/python2.7/site-packages/firedrake/mesh.py", line 16, in <module> import firedrake.spatialindex as spatialindex ImportError: dlopen(/Users/mmfg/anaconda/lib/python2.7/site-packages/firedrake/spatialindex.so, 2): Symbol not found: __ZN5Tools11PropertySet11setPropertyESsRKNS_7VariantE Referenced from: /Users/mmfg/anaconda/lib/python2.7/site-packages/firedrake/spatialindex.so Expected in: dynamic lookup
This appears because the C++ compiler used to build the firedrake spatialindex extension was not the same as used to build the installed libspatialindex library I think. I presume you installed the latter using homebrew. What is the output of: brew info spatialindex I don't know where you got MPI from, but what do the following produce: mpicc -show mpicc --version mpicxx -show mpicxx --version
So I tried to run "import firedrake.spatialindex as spatial index" and I get this error:
Traceback (most recent call last): File "<stdin>", line 1, in <module> File "/Users/mmfg/anaconda/lib/python2.7/site-packages/firedrake/__init__.py", line 3, in <module> import firedrake.petsc as petsc AttributeError: 'module' object has no attribute 'petsc'
This broke because the previous import failed. Thanks, Lawrence