When trying to set or get an object the operation itself seems to work (new documents appear in the DB on set at least) but I get the following exception printout every time:
< pre >
all_players_bucket.set(player['id'], 0, 0, json.dumps(player))
File "/Users/mbhamala/dev/feral/src/tanks/cage/eggs/couchbase-0.8.0-py2.7.egg/couchbase/client.py", line 222, in set
return self.mc_client.set(key, expiration, flags, value)
File "/Users/mbhamala/dev/feral/src/tanks/cage/eggs/couchbase-0.8.0-py2.7.egg/couchbase/couchbaseclient.py", line 556, in set
return self._respond(item, event)
File "/Users/mbhamala/dev/feral/src/tanks/cage/eggs/couchbase-0.8.0-py2.7.egg/couchbase/couchbaseclient.py", line 512, in _respond
error: cannot switch to a different thread
My server uses gevent and I'm wondering if this exception is related to gevent.
For this test case I create a new Couchbase client on every request with so there shouldn't be multiple greenlets using the same connection.
test_client = Couchbase('localhost:8091', username='Administrator', password='password')
Using Python couchbase 0.8.0 with requests 0.14.0
Anyone experienced anything similar?