Thanks for the quick fix Matt. However, building the c-extension fails on my machine (osx). Here's the error output in case it gives you idea what might be wrong...
pip install couchbase
Downloading/unpacking couchbase
Running setup.py egg_info for package couchbase
Installing collected packages: couchbase
Running setup.py install for couchbase
building 'couchbase/libcouchbase' extension
cc -fno-strict-aliasing -fno-common -dynamic -I/usr/local/include -DNDEBUG -g -O3 -Wall -Wstrict-prototypes -I/usr/local/Cellar/python/2.7.3/Frameworks/Python.framework/Versions/2.7/include/python2.7 -c couchbase/libcouchbase.c -o build/temp.macosx-10.8-x86_64-2.7/couchbase/libcouchbase.o
couchbase/libcouchbase.c:785:22: error: unknown type name '__time_t'; did you mean 'time_t'?
static CYTHON_INLINE __time_t __Pyx_PyInt_from_py___time_t(PyObject *);
^~~~~~~~
time_t
/usr/include/sys/select.h:87:26: note: 'time_t' declared here
typedef __darwin_time_t time_t;
^
couchbase/libcouchbase.c:14645:22: error: unknown type name '__time_t'; did you mean 'time_t'?
static CYTHON_INLINE __time_t __Pyx_PyInt_from_py___time_t(PyObject* x) {
^~~~~~~~
time_t
/usr/include/sys/select.h:87:26: note: 'time_t' declared here
typedef __darwin_time_t time_t;
^
couchbase/libcouchbase.c:14646:11: error: unknown type name '__time_t'; did you mean 'time_t'?
const __time_t neg_one = (__time_t)-1, const_zero = (__time_t)0;
^~~~~~~~
time_t
/usr/include/sys/select.h:87:26: note: 'time_t' declared here
typedef __darwin_time_t time_t;
^
couchbase/libcouchbase.c:14646:31: error: use of undeclared identifier '__time_t'; did you mean 'time_t'?
const __time_t neg_one = (__time_t)-1, const_zero = (__time_t)0;
^
couchbase/libcouchbase.c:14646:58: error: use of undeclared identifier '__time_t'; did you mean 'time_t'?
const __time_t neg_one = (__time_t)-1, const_zero = (__time_t)0;
^
couchbase/libcouchbase.c:14648:16: error: use of undeclared identifier '__time_t'; did you mean 'time_t'?
if (sizeof(__time_t) == sizeof(char)) {
^
couchbase/libcouchbase.c:14650:21: error: use of undeclared identifier '__time_t'; did you mean 'time_t'?
return (__time_t)__Pyx_PyInt_AsUnsignedChar(x);
^
couchbase/libcouchbase.c:14652:21: error: use of undeclared identifier '__time_t'; did you mean 'time_t'?
return (__time_t)__Pyx_PyInt_AsSignedChar(x);
^
couchbase/libcouchbase.c:14653:23: error: use of undeclared identifier '__time_t'; did you mean 'time_t'?
} else if (sizeof(__time_t) == sizeof(short)) {
^
couchbase/libcouchbase.c:14655:21: error: use of undeclared identifier '__time_t'; did you mean 'time_t'?
return (__time_t)__Pyx_PyInt_AsUnsignedShort(x);
^
couchbase/libcouchbase.c:14657:21: error: use of undeclared identifier '__time_t'; did you mean 'time_t'?
return (__time_t)__Pyx_PyInt_AsSignedShort(x);
^
couchbase/libcouchbase.c:14658:23: error: use of undeclared identifier '__time_t'; did you mean 'time_t'?
} else if (sizeof(__time_t) == sizeof(int)) {
^
couchbase/libcouchbase.c:14660:21: error: use of undeclared identifier '__time_t'; did you mean 'time_t'?
return (__time_t)__Pyx_PyInt_AsUnsignedInt(x);
^
couchbase/libcouchbase.c:14662:21: error: use of undeclared identifier '__time_t'; did you mean 'time_t'?
return (__time_t)__Pyx_PyInt_AsSignedInt(x);
^
couchbase/libcouchbase.c:14663:23: error: use of undeclared identifier '__time_t'; did you mean 'time_t'?
} else if (sizeof(__time_t) == sizeof(long)) {
^
couchbase/libcouchbase.c:14665:21: error: use of undeclared identifier '__time_t'; did you mean 'time_t'?
return (__time_t)__Pyx_PyInt_AsUnsignedLong(x);
^
couchbase/libcouchbase.c:14667:21: error: use of undeclared identifier '__time_t'; did you mean 'time_t'?
return (__time_t)__Pyx_PyInt_AsSignedLong(x);
^
couchbase/libcouchbase.c:14668:23: error: use of undeclared identifier '__time_t'; did you mean 'time_t'?
} else if (sizeof(__time_t) == sizeof(PY_LONG_LONG)) {
^
couchbase/libcouchbase.c:14670:21: error: use of undeclared identifier '__time_t'; did you mean 'time_t'?
return (__time_t)__Pyx_PyInt_AsUnsignedLongLong(x);
^
fatal error: too many errors emitted, stopping now [-ferror-limit=]
20 errors generated.
error: command 'cc' failed with exit status 1
Teemu