Guest User

Untitled

a guest
Oct 18th, 2018
88
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 1.23 KB | None | 0 0
  1. >>> import couchbase
  2. >>> client = couchbase.Couchbase("localhost:8091", "Administrator","password")
  3. >>> bucket = client["default"]
  4. Traceback (most recent call last):
  5.   File "<stdin>", line 1, in <module>
  6.   File "/usr/local/lib/python2.7/dist-packages/couchbase-0.8.0-py2.7.egg/couchbase/client.py", line 141, in __getitem__
  7.     return self.bucket(key)
  8.   File "/usr/local/lib/python2.7/dist-packages/couchbase-0.8.0-py2.7.egg/couchbase/client.py", line 97, in bucket
  9.     return Bucket(bucket_name, self)
  10.   File "/usr/local/lib/python2.7/dist-packages/couchbase-0.8.0-py2.7.egg/couchbase/client.py", line 196, in __init__
  11.     self.info = rest.get_bucket(self.name)
  12.   File "/usr/local/lib/python2.7/dist-packages/couchbase-0.8.0-py2.7.egg/couchbase/rest_client.py", line 695, in get_bucket
  13.     bucketInfo = RestParser().parse_get_bucket_response(content)
  14.   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
  15.     return self.parse_get_bucket_json(parsed)
  16.   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
  17.     bucket.controllers = parsed['controllers']
  18. KeyError: 'controllers'
Add Comment
Please, Sign In to add comment