Python error
When trying to set or get an object the operation itself seems to work
but I get the following exception print out every time:
Traceback (most recent call last):
File "./test.py", line 6, in
client = CouchbaseClient("http://localhost:8091/pools/default","default","",False)
File "/usr/local/lib/python2.7/dist-packages/couchbase/couchbaseclient.py",
line 325, in __init__
self.rest = RestConnection(server)
File "/usr/local/lib/python2.7/dist-packages/couchbase/rest_client.py",
line 181, in __init__
self.couch_api_base = self.config["nodes"][0].get("couchApiBase")
TypeError: 'instancemethod' object has no attribute '__getitem__'
Environment Information:
- Ubuntu 12.04.01
- Python 2.7.3
- Couchbase Server 2.0.0
- requests 0.14.0
- python couchbase driver 0.8.1
No, it's not.
I have error in couchbase-python-client's test code.
I had the same problem on Ubuntu 12.10 and couchbase client 0.8.1 installed from PIP repositories.
There is a bug that brackets are missing in json method call: https://github.com/kvogt/couchbase-python-client/commit/f0d0238db20f6e01...
Installing client from git directly solved the issue :
pip install git+git://github.com/kvogt/couchbase-python-client.git
Is this against a memcached bucket type by chance? The couchApiBase is on Couchbase bucket types only.