Python SDK will not install 0n Windows 10

Good day!

I have been trying to get the Python SDK to install on my windows machine for most of the day. I have tried several variations from examples I’ve found on the net, including here. The closest I get is from a package on git, but it refuses to install because I’m using Python 3.6 instead of 3.4 even though it claims to have been updated in February 2018.

The closest I’ve come with pip is it fails to find cl.exe and exits.

For what it’s worth, I can’t get it to install on my Linux machine either.

Is there a couchbase mobile SDK for Python? I can’t seem to find it.

Thanks!

Hi Peter,

The Python SDK is in heavy development in the moment, including on 3.6, although our primary user base is on Unix-based OSes. However, I plan to update the Python builds to provide a 3.6 version ASAP. I certainly have the executables built and tested here.

In the meantime you can build it with setup.py as described on GitHub - but you will need VC++14 (aka VS2015) installed to do so.

With regards to Couchbase Lite (a.k.a. mobile), I am not aware of a Python client, although you could use Jython or IronPython to talk to the Java or .NET Couchbase Lite SDKs instead. I’ll ask the mobile guys to clarify this.

Couchbase Lite does not support Python. It is targeted at “edge” (mobile devices) so the targeted platforms are iOS (swift, ObjC) , Android (Java)and Windows/ UWP (C#) . You can build UWP apps for your desktop but that’s the extent of desktop support in 2.0 . In Couchbase Mobile 1.4, we support desktop Java but v2.0 is what we recommend if you are getting started.

hi @ellis.breen, any updates on python 3.6 support for Windows?

Yes, we have a new CI/CD system which we intend to use for the next release (due next week), which has VC14 and hence can support Python 3.6+ on Windows. We plan to ship binary wheels for Windows 3.6+ which should install via PIP.

Hope that helps!

Thanks,

Ellis

1 Like

Are you still planning to release the binary wheels? Pip won’t install couchbase on windows, even the 2.5.1 release from last week:

c:\users\foo\appdata\local\temp\pip-install-e8hrm6ax\couchbase\src\pycbc.h(193): fatal error C1083: Cannot open include file: ‘libcouchbase/couchbase.h’: No such file or directory

Apologies, there was a slight delay with setting up the new CI system - the old one was only capable of 3.3 and 3.4 wheels (which we have uploaded). The new one is now up and running and has produced 3.7 wheels for Windows which I’ll upload today, which should resolve this issue.

Many thanks,

Ellis

Just uploaded it and tested it on Python 3.7 for Win64/Win32 - please try again now.

Many thanks,

Ellis

1 Like

Hi there,

Could you please build a wheel for us folks stuck on python 3.6? Would be greatly appreciated!

Fixed, just uploaded 3.6 Windows wheels for Couchbase 2.5.5 - enjoy!

Ellis

Ellis, you beauty! Thanks a lot.

1 Like

@ellis.breen sorry to bother you again, did you remove the wheel for python 3.6? Any chance of getting it again?