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

[HELP] ERROR While Importing UBUNTU?? #564

Open
kroscek opened this issue Oct 16, 2017 · 6 comments
Open

[HELP] ERROR While Importing UBUNTU?? #564

kroscek opened this issue Oct 16, 2017 · 6 comments

Comments

@kroscek
Copy link

kroscek commented Oct 16, 2017

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

@zhenwendai
Copy link
Member

Do you get this error message during compilation or import?

@kroscek
Copy link
Author

kroscek commented Oct 23, 2017

@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

@zhenwendai
Copy link
Member

@mzwiessele, do you have any cues what might be the reason? It is weird because the compilation should not happen during import.

@mzwiessele
Copy link
Member

mzwiessele commented Oct 26, 2017 via email

@kroscek
Copy link
Author

kroscek commented Nov 14, 2017

@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?

@mzwiessele
Copy link
Member

So you cannot import GPy? Have you looked at your paths, so that the right GPy is being used (the one you compiled)?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants