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 python 3.6 #22

Open krish240574 opened 6 years ago

krish240574 commented 6 years ago

I'm using Python 3.6.3 :: Anaconda custom (64-bit) - I get the following error, when I try running the examples - File "demo_quad.py", line 22, in import bayesopt ImportError: dynamic module does not define module export function (PyInit_bayesopt)

I have tried re-generating the bayesopt.cpp with cython and rebuilding and installing the entire code base with the new cpp, no luck. I know that this issue cropped up(#10 and #11 ), but I still face the same problem with python 3.6.3, thanks. Kumar

rmcantin commented 6 years ago

The code is compatible with Python 3.6. It seems that your problem is about loading the library. Try to see if the explanation at "Issues with multiple Python versions:" in the docs helps

https://rmcantin.bitbucket.io/html/install.html#notepython