rmcantin / bayesopt

BayesOpt: A toolbox for bayesian optimization, experimental design and stochastic bandits.
GNU Affero General Public License v3.0
396 stars 92 forks source link

compatibility with python3 #14

Closed NanyangYe closed 7 years ago

NanyangYe commented 7 years ago

According to the python code, it seems to be compatible with python 3 but when I tried to install it with python 3.5, and import bayesopt, the error occurred:

ImportError: dynamic module does not define module export function(PyInit_bayesopt)

Any idea to solve this, many thanks.

rmcantin commented 7 years ago

Python 3.x is not officially supported, but it should work just fine from Cython. Maybe the generated python/bayesopt.cpp is too old.

Try generating again the Cython code with the latest Cython version. The instructions are here: https://rmcantin.bitbucket.io/html/contriblib.html#modcython

rmcantin commented 7 years ago

Fixed with PR #11