Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

build on osx -python-3.4 #1513

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

Comments

Projects
None yet
3 participants
@epifanio
Copy link

commented Mar 26, 2014

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

This comment has been minimized.

Copy link
Member

commented Mar 26, 2014

did you use the latest cython 0.20.1 ?

see #1311 for building for python 3.4

@jseabold

This comment has been minimized.

Copy link
Member

commented Mar 26, 2014

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

This comment has been minimized.

Copy link
Author

commented Mar 26, 2014

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

@jseabold jseabold added the FAQ label Mar 26, 2014

@josef-pkt

This comment has been minimized.

Copy link
Member

commented Mar 26, 2014

@epifanio thanks for reporting back

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

@jseabold

This comment has been minimized.

Copy link
Member

commented Mar 26, 2014

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
You can’t perform that action at this time.