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 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' Do you know where it could come from? Thank you, 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 09:27 À : firedrake@imperial.ac.uk Objet : Re: [firedrake] FD on mac Hi Onno, (and others) On 01/12/15 21:51, Onno Bokhove wrote:
Hi Lawrence,
We are exactly stuck on the mpif90 issues indicated below, after I mysteriously was able to have a successful "make" of FD. But the codes did not work and Tim-IT spotted the problem: two version of python, one used by anaconda and one old version were interfering with another.
So we removed the anaconda from the root, installed one in the user directory; set the path, and at that point the first petsc installing command failed again on the point remarked below.
OK, so the issue is absolutely that the homebrew provided openmpi binary package has not been built correctly. A workaround until it is fixed upstream is the following: # Remove any existing openmpi package brew uninstall openmpi # Ensure the gcc package (including gfortran) is available brew install gcc # Build openmpi from source (this picks up the fortran compiler # and provides the correct set of wrappers) brew install --with-fortran --build-from-source openmpi On my machine, I immediately see something like the following: ==> Using Homebrew-provided fortran compiler This may be changed by setting the FC environment variable Once openmpi has been installed, the firedrake install script /should/ work: it works locally for me after this sequence of steps. Please try it and let us know. Cheers, Lawrence