build on osx -python-3.4 #1513

Closed
epifanio opened this Issue Mar 26, 2014 · 5 comments

Projects

None yet

3 participants

@epifanio

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:
/usr/local/lib/python3.4/site-packages/numpy/core/include/numpy/npy_1_7_deprecated_api.h:15:2: warning: 
      "Using deprecated NumPy API, disable it by "          "#defining NPY_NO_DEPRECATED_API
      NPY_1_7_API_VERSION" [-W#warnings]
#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
MacBook-Pro-di-Massimo-2:statsmodels epi$ 
@josef-pkt
Member

did you use the latest cython 0.20.1 ?

see #1311 for building for python 3.4

@jseabold
Member

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.

@jseabold jseabold closed this Mar 26, 2014
@epifanio

cython was the latest version, python setup.py clean fixed the build.
Thanks

@jseabold jseabold added the FAQ label Mar 26, 2014
@josef-pkt
Member

@epifanio thanks for reporting back

@jseabold Are the nightly builds of the Windows binaries based on cython 0.20.1?

@jseabold
Member

No, they're not. I haven't touched this box in a while. I'll update it and add Python 3.4 soon.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment