We're trying to get Dedalus back running on the berkeley savio cluster.
Any idea what's going on with this hgapi install error in the attached email? Ben -- this seems reminiscent of a problem that was coming up on Janus.
Anyway, the matplotlib issue goes away when you use version 1.3.1. I tried removing hgapi from the requirements.txt since it doesn't seem like it's actually required for the installation. However, when I run the install script, I get a bunch of cython errors:
(python_build_2)[lecoanet@ln003 dedalus]$ python3 setup.py build_ext --inplace
Looking for fftw prefix
Found env var FFTW_PATH = /global/software/sl-6.x86_64/modules/intel/2013_sp1.4.211/fftw/3.3.4-intel
Looking for mpi prefix
Found env var MPI_PATH = /global/software/sl-6.x86_64/modules/intel/2013_sp1.2.144/openmpi/1.6.5-intel
Looking for fftw prefix
Found env var FFTW_PATH = /global/software/sl-6.x86_64/modules/intel/2013_sp1.4.211/fftw/3.3.4-intel
missing cimport in module 'mpi4py.MPI': dedalus/libraries/fftw/fftw_wrappers.pyx
missing cimport in module 'mpi4py.mpi_c': dedalus/libraries/fftw/fftw_wrappers.pyx
missing cimport in module 'mpi4py.mpi_c': ./dedalus/libraries/fftw/fftw_c_api.pxd
missing cimport in module 'mpi4py.MPI': dedalus/core/transposes.pyx
missing cimport in module 'mpi4py.mpi_c': dedalus/core/transposes.pyx
missing cimport in module '..libraries.fftw': dedalus/core/transposes.pyx
Compiling dedalus/libraries/fftw/fftw_wrappers.pyx because it changed.
Compiling dedalus/core/transposes.pyx because it changed.
Cythonizing dedalus/core/transposes.pyx
Error compiling Cython file:
------------------------------------------------------------
...
import logging
logger = logging.getLogger(__name__.split('.')[-1])
from mpi4py import MPI
from mpi4py.MPI cimport Comm as py_comm_t
^
------------------------------------------------------------
dedalus/core/transposes.pyx:12:0: 'mpi4py/MPI.pxd' not found
Error compiling Cython file:
------------------------------------------------------------
...
import logging
logger = logging.getLogger(__name__.split('.')[-1])
from mpi4py import MPI
from mpi4py.MPI cimport Comm as py_comm_t
^
------------------------------------------------------------
dedalus/core/transposes.pyx:12:0: 'Comm.pxd' not found
Error compiling Cython file:
------------------------------------------------------------
...
import logging
logger = logging.getLogger(__name__.split('.')[-1])
from mpi4py import MPI
from mpi4py.MPI cimport Comm as py_comm_t
^
------------------------------------------------------------
dedalus/core/transposes.pyx:12:24: Name 'Comm' not declared in module 'mpi4py.MPI'
Error compiling Cython file:
------------------------------------------------------------
...
import logging
logger = logging.getLogger(__name__.split('.')[-1])
from mpi4py import MPI
from mpi4py.MPI cimport Comm as py_comm_t
from mpi4py.mpi_c cimport MPI_Comm as mpi_comm_t
^
------------------------------------------------------------
dedalus/core/transposes.pyx:13:0: 'mpi4py/mpi_c.pxd' not found
Error compiling Cython file:
------------------------------------------------------------
...
import logging
logger = logging.getLogger(__name__.split('.')[-1])
from mpi4py import MPI
from mpi4py.MPI cimport Comm as py_comm_t
from mpi4py.mpi_c cimport MPI_Comm as mpi_comm_t
^
------------------------------------------------------------
dedalus/core/transposes.pyx:13:0: 'MPI_Comm.pxd' not found
Error compiling Cython file:
------------------------------------------------------------
...
import logging
logger = logging.getLogger(__name__.split('.')[-1])
from mpi4py import MPI
from mpi4py.MPI cimport Comm as py_comm_t
from mpi4py.mpi_c cimport MPI_Comm as mpi_comm_t
^
------------------------------------------------------------
dedalus/core/transposes.pyx:13:26: Name 'MPI_Comm' not declared in module 'mpi4py.mpi_c'
Error compiling Cython file:
------------------------------------------------------------
...
FFTW Cython declarations. Comments refer to corresponding sections of the
FFTW3 documentation.
"""
from mpi4py.mpi_c cimport MPI_Comm as mpi_comm_t
^
------------------------------------------------------------
dedalus/libraries/fftw/fftw_c_api.pxd:7:26: Name 'MPI_Comm' not declared in module 'mpi4py.mpi_c'
Error compiling Cython file:
------------------------------------------------------------
...
ptrdiff_t fftw_mpi_local_size_many_transposed(int rank,
ptrdiff_t *shape,
ptrdiff_t itemsize,
ptrdiff_t block0,
ptrdiff_t block1,
mpi_comm_t comm,
^
------------------------------------------------------------
dedalus/libraries/fftw/fftw_c_api.pxd:118:50: 'mpi_comm_t' is not a type identifier
Error compiling Cython file:
------------------------------------------------------------
...
ptrdiff_t itemsize,
ptrdiff_t block0,
ptrdiff_t block1,
double *in_,
double *out,
mpi_comm_t comm,
^
------------------------------------------------------------
dedalus/libraries/fftw/fftw_c_api.pxd:132:43: 'mpi_comm_t' is not a type identifier
Error compiling Cython file:
------------------------------------------------------------
...
pycomm : mpi4py communicator
Communicator
"""
cdef readonly py_comm_t pycomm
^
------------------------------------------------------------
dedalus/core/transposes.pyx:41:18: 'py_comm_t' is not a type identifier
Error compiling Cython file:
------------------------------------------------------------
...
pycomm : mpi4py communicator
Communicator
"""
cdef readonly py_comm_t pycomm
^
------------------------------------------------------------
dedalus/core/transposes.pyx:41:28: C attribute of type '<error>' cannot be accessed from Python
Error compiling Cython file:
------------------------------------------------------------
...
# def _fftw_setup(self, scales):
# logger.debug("Building FFTW transpose plan for (scales, axis, in_place) = (%s, %s, %s)" %(scales, axis, IN_PLACE))
def build_plans(self, p_t n0, p_t n1, p_t howmany, p_t block0, p_t block1,
py_comm_t pycomm, in_place, flags=['FFTW_MEASURE']):
^
------------------------------------------------------------
dedalus/core/transposes.pyx:108:20: 'py_comm_t' is not a type identifier
Error compiling Cython file:
------------------------------------------------------------
...
pycomm : mpi4py communicator
Communicator
"""
cdef readonly py_comm_t pycomm
^
------------------------------------------------------------
dedalus/core/transposes.pyx:235:18: 'py_comm_t' is not a type identifier
Error compiling Cython file:
------------------------------------------------------------
...
pycomm : mpi4py communicator
Communicator
"""
cdef readonly py_comm_t pycomm
^
------------------------------------------------------------
dedalus/core/transposes.pyx:235:28: C attribute of type '<error>' cannot be accessed from Python
Error compiling Cython file:
------------------------------------------------------------
...
"""
# Shape array
cdef p_t *shape = [n0, n1]
# C MPI communicator
cdef mpi_comm_t comm = pycomm.ob_mpi
^
------------------------------------------------------------
dedalus/core/transposes.pyx:133:13: 'mpi_comm_t' is not a type identifier
warning: dedalus/core/transposes.pyx:301:38: Index should be typed for more efficient access
Traceback (most recent call last):
File "setup.py", line 148, in <module>
ext_modules = cythonize(extensions))
File "/global/home/users/lecoanet/python_build_2/lib/python3.2/site-packages/Cython/Build/Dependencies.py", line 865, in cythonize
cythonize_one(*args[1:])
File "/global/home/users/lecoanet/python_build_2/lib/python3.2/site-packages/Cython/Build/Dependencies.py", line 985, in cythonize_one
raise CompileError(None, pyx_file)
Cython.Compiler.Errors.CompileError: dedalus/core/transposes.pyx
Any idea what this all means? It's similar to some errors we were getting before due to old versions of cython. However, I think I'm running with the latest & greatest cython: