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