python 3.5+ support?
FoundationDB documentation says it supports only python 2.7-3.4, as declared here and here.
However, Ubuntu 16.04 comes with python 3.5, and Ubuntu 18.04 comes with python 3.6 (with 2.7 available as an extra set of packages). So it seems you have to make a tough choice: either code to obsolete python 2.7, or build python 3.4 from source.
I found a commit which suggests otherwise:
commit 694053829f9cc98692c93b65b83d0b0b1a7543e1
Author: Alec Grieser <[email protected]>
Date: Wed Apr 18 17:20:45 2018 -0700
class scheduling tutorial now works in python 2.7 and python 3.6
this now uses are tuple encoding for integers instead of ASCII-encoding them
So does fdb actually work with 3.5-3.6 (in which case the documentation needs updating), or is there still work to be done to make it compatible with 3.5-3.6?
Aside: 3.7.0 is due to be released 2018-05-16
build python 3.4 from source.
You do not need to compile python 3.4 yourself. Use pyenv instead.
Also there is this ticket that tracks the progress of Python 3.5+ bindings for asyncio. I did not think about supporting the synchronous API, I don't have good ideas for that yet.
Sorry, I am curious, what is the use-case for a synchronous API?
You do not need to compile python 3.4 yourself. Use pyenv instead.
Sure, but pyenv is still building from source.
what is the use-case for a synchronous API?
Just to be able to exercise FoundationDB with the existing documented python API and examples.
Just to be able to exercise FoundationDB with the existing documented python API and examples.
Then, I plan support in found, some synchronous operations, to help people get started and ease debugging in the REPL.
FWIW, I recommend you try to follow the scheduling tutorial with the python 3 version you have and report back here the issues you find.
I don't believe the bindings have been tested much with anything higher than Python 3.4, but I'm not aware of any reason why they won't work. Certainly if you found anything, you can report it back to us or file a PR to fix it.
Actually, we've done a fair amount of testing at Python version 3.5.2, so that should work. I also wouldn't really expect anything to be broken at version 3.6 that isn't already broken at 3.5 (like asyncio support), but I haven't verified yet.
Closing this as fixed.