Trying to build statmodels on a mac osx 10.9 running python 3.4 i got error.
i tried with both numpy from pip as well as a recente git version, same log :
In file included from statsmodels/tsa/kalmanf/kalman_loglike.c:257:
In file included from /usr/local/lib/python3.4/site-packages/numpy/core/include/numpy/arrayobject.h:4:
In file included from /usr/local/lib/python3.4/site-packages/numpy/core/include/numpy/ndarrayobject.h:17:
In file included from /usr/local/lib/python3.4/site-packages/numpy/core/include/numpy/ndarraytypes.h:1803:
"Using deprecated NumPy API, disable it by " "#defining NPY_NO_DEPRECATED_API
#warning "Using deprecated NumPy API, disable it by " \
statsmodels/tsa/kalmanf/kalman_loglike.c:7021:19: error: no member named 'f_tstate' in 'struct _frame'
(*frame)->f_tstate = PyThreadState_GET();
1 warning and 1 error generated.
error: command 'clang' failed with exit status 1
did you use the latest cython 0.20.1 ?
see #1311 for building for python 3.4
Closing this. Make sure you are using Cython 0.20.1 and that you don't have any cruft in your source directory by runnning
python setup.py clean
Please, re-open if this doesn't work.
cython was the latest version, python setup.py clean fixed the build.
@epifanio thanks for reporting back
@jseabold Are the nightly builds of the Windows binaries based on cython 0.20.1?
No, they're not. I haven't touched this box in a while. I'll update it and add Python 3.4 soon.