Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- >>> import couchbase
- >>> client = couchbase.Couchbase("localhost:8091", "Administrator","password")
- >>> bucket = client["default"]
- Traceback (most recent call last):
- File "<stdin>", line 1, in <module>
- File "/usr/local/lib/python2.7/dist-packages/couchbase-0.8.0-py2.7.egg/couchbase/client.py", line 141, in __getitem__
- return self.bucket(key)
- File "/usr/local/lib/python2.7/dist-packages/couchbase-0.8.0-py2.7.egg/couchbase/client.py", line 97, in bucket
- return Bucket(bucket_name, self)
- File "/usr/local/lib/python2.7/dist-packages/couchbase-0.8.0-py2.7.egg/couchbase/client.py", line 196, in __init__
- self.info = rest.get_bucket(self.name)
- File "/usr/local/lib/python2.7/dist-packages/couchbase-0.8.0-py2.7.egg/couchbase/rest_client.py", line 695, in get_bucket
- bucketInfo = RestParser().parse_get_bucket_response(content)
- File "/usr/local/lib/python2.7/dist-packages/couchbase-0.8.0-py2.7.egg/couchbase/rest_client.py", line 1045, in parse_get_bucket_response
- return self.parse_get_bucket_json(parsed)
- File "/usr/local/lib/python2.7/dist-packages/couchbase-0.8.0-py2.7.egg/couchbase/rest_client.py", line 1054, in parse_get_bucket_json
- bucket.controllers = parsed['controllers']
- KeyError: 'controllers'
Add Comment
Please, Sign In to add comment