Skip to content

Installation issue mac os x (maverick) #618

@earendilllock

Description

@earendilllock

Dear all,
I have successfully installed all the dependencies due to http://www.firedrakeproject.org/download.html (Manual installation, cause script doesn't work for me).

after the command :
pip install git+https://github.com/firedrakeproject/firedrake.git

I've obtained such a message:

Cloning https://github.com/firedrakeproject/firedrake.git to /var/folders/8d/3ktv2nyd1sx0v5ylgblqy1j00000gn/T/pip-9SXC7w-build
Installing collected packages: firedrake
Running setup.py install for firedrake
Complete output from command /Users/earendilllock/anaconda/bin/python -c "import setuptools, tokenize;file='/var/folders/8d/3ktv2nyd1sx0v5ylgblqy1j00000gn/T/pip-9SXC7w-build/setup.py';exec(compile(getattr(tokenize, 'open', open)(file).read().replace('\r\n', '\n'), file, 'exec'))" install --record /var/folders/8d/3ktv2nyd1sx0v5ylgblqy1j00000gn/T/pip-W8Tmph-record/install-record.txt --single-version-externally-managed --compile:
/Users/earendilllock/anaconda/lib/python2.7/site-packages/setuptools/dist.py:294: UserWarning: The version specified ('0.11.0-775-g1eae5ba') is an invalid version, this may not work as expected with newer versions of setuptools, pip, and PyPI. Please see PEP 440 for more details.
"details." % self.metadata.version
running install
running build
got version from git {'version': '0.11.0-775-g1eae5ba', 'full': '1eae5ba864914dccfc3e35e029cce43183ec3eeb'}
running build_py
creating build
creating build/lib.macosx-10.5-x86_64-2.7
creating build/lib.macosx-10.5-x86_64-2.7/firedrake
copying firedrake/init.py -> build/lib.macosx-10.5-x86_64-2.7/firedrake
copying firedrake/_version.py -> build/lib.macosx-10.5-x86_64-2.7/firedrake
copying firedrake/assemble.py -> build/lib.macosx-10.5-x86_64-2.7/firedrake
copying firedrake/assemble_expressions.py -> build/lib.macosx-10.5-x86_64-2.7/firedrake
copying firedrake/assembly_cache.py -> build/lib.macosx-10.5-x86_64-2.7/firedrake
copying firedrake/bcs.py -> build/lib.macosx-10.5-x86_64-2.7/firedrake
copying firedrake/constant.py -> build/lib.macosx-10.5-x86_64-2.7/firedrake
copying firedrake/expression.py -> build/lib.macosx-10.5-x86_64-2.7/firedrake
copying firedrake/extrusion_utils.py -> build/lib.macosx-10.5-x86_64-2.7/firedrake
copying firedrake/ffc_interface.py -> build/lib.macosx-10.5-x86_64-2.7/firedrake
copying firedrake/fiat_utils.py -> build/lib.macosx-10.5-x86_64-2.7/firedrake
copying firedrake/function.py -> build/lib.macosx-10.5-x86_64-2.7/firedrake
copying firedrake/functionspace.py -> build/lib.macosx-10.5-x86_64-2.7/firedrake
copying firedrake/halo.py -> build/lib.macosx-10.5-x86_64-2.7/firedrake
copying firedrake/io.py -> build/lib.macosx-10.5-x86_64-2.7/firedrake
copying firedrake/linear_solver.py -> build/lib.macosx-10.5-x86_64-2.7/firedrake
copying firedrake/matrix.py -> build/lib.macosx-10.5-x86_64-2.7/firedrake
copying firedrake/mesh.py -> build/lib.macosx-10.5-x86_64-2.7/firedrake
copying firedrake/norms.py -> build/lib.macosx-10.5-x86_64-2.7/firedrake
copying firedrake/nullspace.py -> build/lib.macosx-10.5-x86_64-2.7/firedrake
copying firedrake/optimizer.py -> build/lib.macosx-10.5-x86_64-2.7/firedrake
copying firedrake/parameters.py -> build/lib.macosx-10.5-x86_64-2.7/firedrake
copying firedrake/parloops.py -> build/lib.macosx-10.5-x86_64-2.7/firedrake
copying firedrake/petsc.py -> build/lib.macosx-10.5-x86_64-2.7/firedrake
copying firedrake/projection.py -> build/lib.macosx-10.5-x86_64-2.7/firedrake
copying firedrake/solving.py -> build/lib.macosx-10.5-x86_64-2.7/firedrake
copying firedrake/solving_utils.py -> build/lib.macosx-10.5-x86_64-2.7/firedrake
copying firedrake/ufl_expr.py -> build/lib.macosx-10.5-x86_64-2.7/firedrake
copying firedrake/utility_meshes.py -> build/lib.macosx-10.5-x86_64-2.7/firedrake
copying firedrake/utils.py -> build/lib.macosx-10.5-x86_64-2.7/firedrake
copying firedrake/variational_solver.py -> build/lib.macosx-10.5-x86_64-2.7/firedrake
copying firedrake/vector.py -> build/lib.macosx-10.5-x86_64-2.7/firedrake
copying firedrake/version.py -> build/lib.macosx-10.5-x86_64-2.7/firedrake
creating build/lib.macosx-10.5-x86_64-2.7/evtk
copying evtk/init.py -> build/lib.macosx-10.5-x86_64-2.7/evtk
copying evtk/hl.py -> build/lib.macosx-10.5-x86_64-2.7/evtk
copying evtk/vtk.py -> build/lib.macosx-10.5-x86_64-2.7/evtk
copying evtk/xml.py -> build/lib.macosx-10.5-x86_64-2.7/evtk
creating build/lib.macosx-10.5-x86_64-2.7/firedrake/mg
copying firedrake/mg/init.py -> build/lib.macosx-10.5-x86_64-2.7/firedrake/mg
copying firedrake/mg/function.py -> build/lib.macosx-10.5-x86_64-2.7/firedrake/mg
copying firedrake/mg/functionspace.py -> build/lib.macosx-10.5-x86_64-2.7/firedrake/mg
copying firedrake/mg/interface.py -> build/lib.macosx-10.5-x86_64-2.7/firedrake/mg
copying firedrake/mg/mesh.py -> build/lib.macosx-10.5-x86_64-2.7/firedrake/mg
copying firedrake/mg/solver_hierarchy.py -> build/lib.macosx-10.5-x86_64-2.7/firedrake/mg
copying firedrake/mg/ufl_utils.py -> build/lib.macosx-10.5-x86_64-2.7/firedrake/mg
copying firedrake/mg/utils.py -> build/lib.macosx-10.5-x86_64-2.7/firedrake/mg
copying firedrake/firedrake_geometry.h -> build/lib.macosx-10.5-x86_64-2.7/firedrake
running build_ext
cythoning firedrake/dmplex.pyx to firedrake/dmplex.c

Error compiling Cython file:
------------------------------------------------------------
...
import numpy as np
cimport numpy as np
import cython
cimport petsc4py.PETSc as PETSc

cimport mpi4py.MPI as MPI
       ^
------------------------------------------------------------

firedrake/dmplex.pyx:9:8: 'mpi4py/MPI.pxd' not found
warning: firedrake/dmplex.pyx:1079:4: Buffer unpacking not optimized away.
warning: firedrake/dmplex.pyx:1079:4: Buffer unpacking not optimized away.
warning: firedrake/dmplex.pyx:1471:4: Buffer unpacking not optimized away.
warning: firedrake/dmplex.pyx:1471:4: Buffer unpacking not optimized away.
warning: firedrake/dmplex.pyx:1472:4: Buffer unpacking not optimized away.
warning: firedrake/dmplex.pyx:1472:4: Buffer unpacking not optimized away.

Error compiling Cython file:
------------------------------------------------------------
...
                           new_ilocal, PETSC_OWN_POINTER,
                           new_iremote, PETSC_OWN_POINTER))
    return pruned_sf


def halo_begin(PETSc.SF sf, dat, MPI.Datatype dtype, reverse):
                                ^
------------------------------------------------------------

firedrake/dmplex.pyx:1859:33: 'Datatype' is not a type identifier

Error compiling Cython file:
------------------------------------------------------------
...
        CHKERR(PetscSFBcastBegin(sf.sf, dtype.ob_mpi,
                                 <const void *>buf.data,
                                 <void *>buf.data))


def halo_end(PETSc.SF sf, dat, MPI.Datatype dtype, reverse):
                              ^
------------------------------------------------------------

firedrake/dmplex.pyx:1894:31: 'Datatype' is not a type identifier

Error compiling Cython file:
------------------------------------------------------------
...
    cdef:
        PETSc.SF sf
        PetscInt nroots, nleaves
        PetscInt *ilocal
        PetscSFNode *iremote
        MPI.Datatype dtype = MPI.INT
       ^
------------------------------------------------------------

firedrake/dmplex.pyx:1767:8: 'Datatype' is not a type identifier

Error compiling Cython file:
------------------------------------------------------------
...

    Forward exchanges are implemented using :data:`PetscSFBcastBegin`,
    reverse exchanges with :data:`PetscSFReduceBegin`.
    """
    cdef:
        MPI.Op op = MPI.SUM
       ^
------------------------------------------------------------

firedrake/dmplex.pyx:1872:8: 'Op' is not a type identifier

Error compiling Cython file:
------------------------------------------------------------
...

    Forward exchanges are implemented using :data:`PetscSFBcastEnd`,
    reverse exchanges with :data:`PetscSFReduceEnd`.
    """
    cdef:
        MPI.Op op = MPI.SUM
       ^
------------------------------------------------------------

firedrake/dmplex.pyx:1907:8: 'Op' is not a type identifier
building 'firedrake.dmplex' extension
creating build/temp.macosx-10.5-x86_64-2.7
creating build/temp.macosx-10.5-x86_64-2.7/firedrake
mpicc -fno-strict-aliasing -I/Users/earendilllock/anaconda/include -arch x86_64 -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -I/Users/earendilllock/anaconda/lib/python2.7/site-packages/numpy/core/include -I/Users/earendilllock/anaconda/lib/python2.7/site-packages/petsc4py/include -I/Users/earendilllock/anaconda/lib/python2.7/site-packages/petsc/include -I/Users/earendilllock/anaconda/include/python2.7 -c firedrake/dmplex.c -o build/temp.macosx-10.5-x86_64-2.7/firedrake/dmplex.o
firedrake/dmplex.c:1:2: error: Do not use this file, it is the result of a failed Cython compilation.
#error Do not use this file, it is the result of a failed Cython compilation.
 ^
1 error generated.
error: command 'mpicc' failed with exit status 1

----------------------------------------

Command "/Users/earendilllock/anaconda/bin/python -c "import setuptools, tokenize;file='/var/folders/8d/3ktv2nyd1sx0v5ylgblqy1j00000gn/T/pip-9SXC7w-build/setup.py';exec(compile(getattr(tokenize, 'open', open)(file).read().replace('\r\n', '\n'), file, 'exec'))" install --record /var/folders/8d/3ktv2nyd1sx0v5ylgblqy1j00000gn/T/pip-W8Tmph-record/install-record.txt --single-version-externally-managed --compile" failed with error code 1 in /var/folders/8d/3ktv2nyd1sx0v5ylgblqy1j00000gn/T/pip-9SXC7w-build

Could you please help me to obtain firedrake (the ideal solution would be anaconda package for os x), but I would very pleased of any help.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions