Closed stmax82 closed 8 years ago
Hi stmax82,
the main problem is that apsis does not support python 3. Of course, as I realized when checking the documentation, that's not stated anywhere. My apologies for that!
I've updated the documentation and readme to clearly state it (see 05da0611551b5eb11aec6efd97023919d44b1efd).
We have not worked on python 3 compatibility since GPy, which we use for bayesian optimization, hadn't supported python 3 when we began writing apsis. Apparently, they do now; with the upcoming changes to the architecture python 3 compatibility is not a priority for now. I'll change this issue to 'python 3 support' and will come back to it.
In the meantime, you can use apsis with python 2. While we don't support Windows officially - and I have only tested it on Win7 - the only required change is that you have to initialize the LabAssistant with write_directory_base
pointing to some existing directory; the default assumes Linux-like path structures.
assistant = PrettyLabAssistant(write_directory_base=YOUR_PATH)
would be the corresponding change to the tutorial. 4fe26d34205976c87265ce9e696d8d536fc4dac1 has fixed this for the next version (see server_client branch), which I've already tested on Windows 7, but which still needs additional documentation and more tests.
Thanks for the report, and apologies again for not stating that apsis doesn't support python3. No, I don't know how we could miss that :-)
With the merge of server_client the client now also works with Python3. This should close this issue, as you can use the client in your python3 program, and run the server with python2.
I tried to run the example from the tutorial: http://apsis.readthedocs.org/en/latest/tutorials/usage/base.html
The line:
fails with the error:
Happens on Python 3.4 / Windows 8 x64.
Here's the complete stacktrace: