Open kroscek opened 7 years ago
Do you get this error message during compilation or import?
@zhenwendai The error pop-up during import as I installed GPy via pip. But compiling from the source can get the same error message during compilation
@mzwiessele, do you have any cues what might be the reason? It is weird because the compilation should not happen during import.
I think I did see something like it before, and had to completely reinstall GPy and all dependencies. That is I had to manually uninstall the packages and caches and it worked again. I have never found the reason for it.
On 26. Oct 2017, at 12:12, Zhenwen Dai notifications@github.com wrote:
@mzwiessele, do you have any cues what might be the reason? It is weird because the compilation should not happen during import.
— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub, or mute the thread.
@mzwiessele I can compile GPy from the source without error but importing did have an error message like the above. Also, completely reinstall GPy and my anaconda2 and delete all folders: .config/GPy .pyxbld doesnt solve the problem. Also changing user.cfg and setting: [cython] working = False
Also not solved the problem. Not sure what's going on?
So you cannot import GPy? Have you looked at your paths, so that the right GPy is being used (the one you compiled)?
I installed GPy via pip install GPy into my anaconda2 toolkit. When I want to import GaussianProcessRegressor, it generates error: ++++++++++++++++++++++++++++++++++++++++++++++++++++++ ++++++++++++++++++++++++++++++++++++++++++++++++++++++ In file included from /home/lemma/anaconda2/lib/python2.7/site-packages/numpy/core/include/numpy/ndarraytypes.h:1777:0, from /home/lemma/anaconda2/lib/python2.7/site-packages/numpy/core/include/numpy/ndarrayobject.h:18, from /home/lemma/anaconda2/lib/python2.7/site-packages/numpy/core/include/numpy/arrayobject.h:4, from /home/lemma/.pyxbld/temp.linux-x86_64-2.7/pyrex/GPy/kern/src/stationary_cython.c:485: /home/lemma/anaconda2/lib/python2.7/site-packages/numpy/core/include/numpy/npy_1_7_deprecated_api.h:15:2: warning: #warning "Using deprecated NumPy API, disable it by " "#defining NPY_NO_DEPRECATED_API NPY_1_7_API_VERSION" [-Wcpp]
warning "Using deprecated NumPy API, disable it by " \
^ /home/lemma/.pyxbld/temp.linux-x86_64-2.7/pyrex/GPy/kern/src/stationary_cython.c:487:30: fatal error: stationary_utils.h: No such file or directory
include "stationary_utils.h"
compilation terminated. warning in stationary: failed to import cython module: falling back to numpy ++++++++++++++++++++++++++++++++++++++++++++++++++++++ ++++++++++++++++++++++++++++++++++++++++++++++++++++++ I have tested: from GPy.util.config import config print(config.getboolean('cython', 'working')) it returns TRUE