SheffieldML / GPyOpt

Gaussian Process Optimization using GPy
BSD 3-Clause "New" or "Revised" License
927 stars 261 forks source link

GPyOpt doesn't install on python 3.7 #193

Open benmoseley opened 6 years ago

benmoseley commented 6 years ago

When running pip install gpyopt on python 3.7 I receive the following error:

GPy/kern/src/stationary_cython.c:19389:21: error: ‘PyThreadState’ {aka ‘struct _ts’} has no member named ‘exc_type’; did you mean ‘curexc_type’

I think this might be related to python 3.7 compatibility. Could be related to these posts: https://github.com/mcfletch/pyopengl/issues/11 https://github.com/pygame/pygame/issues/382

apaleyes commented 5 years ago

Thanks for reporting. Did you try upgrading Cython as those issues suggest? If so, can you tell us how that went?

DavidWalz commented 5 years ago

Same here: build fails for python 3.7, cython 0.29, GPy-devel

GPy/kern/src/stationary_cython.c: In function ‘__Pyx_ExceptionSave’: GPy/kern/src/stationary_cython.c:19389:21: error: ‘PyThreadState’ {aka ‘struct _ts’} has no member named ‘exc_type’; did you mean ‘curexc_type’?

Not sure if I'm missing something as this is supposed to be resolved: https://github.com/cython/cython/issues/1955

iantheconway commented 5 years ago

Same here. Has anyone found a work around?

apaleyes commented 5 years ago

I am afraid this is completely blocked by GPy: https://github.com/SheffieldML/GPy/issues/713 . Please consider 3.6 until GPy solves it.