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

Python client error

1 reply [Last post]
  • Login or register to post comments
Thu, 01/10/2013 - 07:14
Me
Offline
Joined: 01/09/2013
Groups: None

Hey, the current Python client gives me the following error:

Traceback (most recent call last):
File "cb.py", line 5, in
couchbase = Couchbase("127.0.0.1:8091", "default", "")
File "/usr/local/lib/python2.7/dist-packages/couchbase/client.py", line 61, in __init__
self.couch_api_base = config["nodes"][0].get("couchApiBase")
TypeError: 'instancemethod' object has no attribute '__getitem__'

What can I do?

"""
from couchbase.client import Couchbase

couchbase = Couchbase("127.0.0.1:8091", "default", "")

bucket = client["default"]

print bucket.get("test")
"""

... Ubuntu 12.10

Top
  • Login or register to post comments
Fri, 01/11/2013 - 07:55
rbin
Offline
Joined: 01/10/2013
Groups: None

Hi There,

This is a known bug that is currently undergoing a fix.

A quick-hack fix is to add 'requests==0.14.2' in your requirements.txt file.

If you have any other issues, please feel free to email me on Robin@couchbase.com and I'll be happy to help!

Best,

Robin J.
Developer Advocate
 

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