Hi, I upgraded the couchbase to 4.5. I assume it will update the python modules inlcluding subdocument.
However it seems the couchbase server is upgraded successfully, but no subdocument module is found.
May I ask where to find these newly added modules and where to get the packages to install these modules.
I think I got a solution which is to upgrade through pip. It can upgrade to the latest 2.1.2.
However, it complains about the following:
building ‘couchbase._libcouchbase’ extension
x86_64-linux-gnu-gcc -pthread -fno-strict-aliasing -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -fPIC -I/usr/include/python2.7 -c src/exceptions.c -o build/temp.linux-x86_64-2.7/src/exceptions.o
In file included from src/exceptions.c:17:0:
src/pycbc.h:29:31: fatal error: libcouchbase/cbft.h: No such file or directory
error: command ‘x86_64-linux-gnu-gcc’ failed with exit status 1
After upgrading the libcouchbase-dev to the latest version, I am able to install couchbase python client library.
Though it says the installation is successful, there are still some Errors, for example:
File “/usr/local/lib/python2.7/dist-packages/acouchbase/iterator.py”, line 17
yield from self._future
SyntaxError: invalid syntax
Is it normal? Do I need to worry about it when I use the library in production?
No, this is not something you need to worry about. This is because it’s trying to byte-compile a Python3-only module, hence the error. This is perfectly normal.