[PYCBC-76] It doesn't work with the latest python requests package Created: 26/Dec/12  Updated: 02/May/13  Resolved: 02/May/13

Status: Closed
Project: Couchbase Python Client Library
Component/s: library
Affects Version/s: 1.0.0
Fix Version/s: None
Security Level: Public

Type: Bug Priority: Critical
Reporter: by zhang Assignee: Mark Nunberg
Resolution: Incomplete Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified
Environment: Ubuntu 12.04/12.10
Requests: 1.0.4 (the latest version from pip install)
Couchbase python client library: HEAD from github

When I try to connect Couchbase as
self.client = Couchbase('', 'user', 'pwd)
I get this error:
couchbase-python-client/couchbase/client.py", line 61, in __init__
    self.couch_api_base = config["nodes"][0].get("couchApiBase")
TypeError: 'instancemethod' object has no attribute '__getitem__'

If I revert requests to 0.14.2, then everything is good.

From http://pypi.python.org/pypi/requests:
(version 1.0.0) This is not a backwards compatible change.

Comment by rabbit [ 07/Jan/13 ]
This needs to be fixed ASAP. A quick fix is to add requests==0.14.2 in requirements.txt
Comment by Mark Nunberg [ 02/May/13 ]
Using libcouchbase for io
Generated at Wed Oct 01 13:54:49 CDT 2014 using JIRA 5.2.4#845-sha1:c9f4cc41abe72fb236945343a1f485c2c844dac9.