Couchbase
  • Why NoSQL?
  • Couchbase Server
  • Download
  • Resources
  • Careers
Home | Forums | SDKs | SDKs

Python error

3 replies [Last post]
  • Login or register to post comments
Mon, 12/24/2012 - 08:59
ghetto
Offline
Joined: 12/24/2012
Groups: None

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

Top
  • Login or register to post comments
Wed, 12/26/2012 - 09:37
ingenthr
Offline
Joined: 03/16/2010
Groups:

Is this against a memcached bucket type by chance? The couchApiBase is on Couchbase bucket types only.

Top
  • Login or register to post comments
Thu, 12/27/2012 - 08:39
ghetto
Offline
Joined: 12/24/2012
Groups: None

No, it's not.
I have error in couchbase-python-client's test code.

Top
  • Login or register to post comments
Sat, 12/29/2012 - 05:10
KamilMadac
Offline
Joined: 12/29/2012
Groups: None

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

Top
  • Login or register to post comments
  • Login or register to post comments
  • Login
  • Register

Company

  • About Us
  • Leadership
  • Customers
  • Partners
  • Contact Us

Product

  • Couchbase Server
  • Couchbase SDKs
  • Use Cases
  • Documentation
  • Forums

Open Source

  • Couchbase Project
  • Couchbase vs. CouchDB

Commercial

  • Subscriptions & Support
  • Training & Services

News

  • Blog
  • Newsletter
  • Press Releases
  • Buzz

Follow Us

    
  • Customer Login
  • Terms of Service
  • Privacy Policy
  • Trademark Policy
  • Site Map

© 2013 COUCHBASE All rights reserved.

Sign in to Couchbase Community

close
  • Create new account
  • Request new password
You are logging into the Forums, Wiki and Issue Tracker