I'm getting the same error while trying to build the epd numpy and scipy with cython0.16. The numpy build works smoothly,
In [2]: numpy.__version__
Out[2]: '1.6.1'
but, the development version of scipy fails to compile,
(epd-7.3.2)bash-3.2$ python setup.py install
Cythonizing sources
Processing scipy/special/_ufuncs_cxx.pyx
....
Error compiling Cython file:
------------------------------------------------------------
...
######################################################################
# Function specializers
######################################################################
def get_nonzero_line(np.ndarray[data_t] a):
return <Py_intptr_t> fused_nonzero_line[data_t]
^
------------------------------------------------------------
_ni_label.pyx:96:50: Type not in fused type
Traceback (most recent call last):
File "/home/rishi/.python_environments/epd-7.3.2/src/scipy/tools/cythonize.py", line 188, in <module>
main()
File "/home/rishi/.python_environments/epd-7.3.2/src/scipy/tools/cythonize.py", line 184, in main
find_process_files(root_dir)
File "/home/rishi/.python_environments/epd-7.3.2/src/scipy/tools/cythonize.py", line 176, in find_process_files
process(cur_dir, fromfile, tofile, function, hash_db)
File "/home/rishi/.python_environments/epd-7.3.2/src/scipy/tools/cythonize.py", line 153, in process
processor_function(fromfile, tofile)
File "/home/rishi/.python_environments/epd-7.3.2/src/scipy/tools/cythonize.py", line 71, in process_pyx
raise Exception('Cython failed')
Exception: Cython failed
Traceback (most recent call last):
File "setup.py", line 230, in <module>
setup_package()
File "setup.py", line 223, in setup_package
generate_cython()
File "setup.py", line 159, in generate_cython
raise RuntimeError("Running cythonize failed!")
RuntimeError: Running cythonize failed!
(epd-7.3.2)bash-3.2$ cython --version
Cython version 0.16