Uploaded image for project: 'Couchbase Python Client Library'
  1. Couchbase Python Client Library
  2. PYCBC-76

It doesn't work with the latest python requests package

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Critical
    • Resolution: Incomplete
    • Affects Version/s: 1.0.0
    • Fix Version/s: None
    • Component/s: library
    • Security Level: Public
    • Labels:
      None
    • Environment:
      Ubuntu 12.04/12.10
      Requests: 1.0.4 (the latest version from pip install)
      Couchbase python client library: HEAD from github

      Description

      When I try to connect Couchbase as
      self.client = Couchbase('127.0.0.1', '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.

      No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

        byzhang by zhang created issue -
        Hide
        rabbit rabbit added a comment -

        This needs to be fixed ASAP. A quick fix is to add requests==0.14.2 in requirements.txt

        Show
        rabbit rabbit added a comment - This needs to be fixed ASAP. A quick fix is to add requests==0.14.2 in requirements.txt
        ingenthr Matt Ingenthron made changes -
        Field Original Value New Value
        Assignee Matt Ingenthron [ ingenthr ] Mark Nunberg [ mnunberg ]
        Hide
        mnunberg Mark Nunberg added a comment -

        Using libcouchbase for io

        Show
        mnunberg Mark Nunberg added a comment - Using libcouchbase for io
        mnunberg Mark Nunberg made changes -
        Status Open [ 1 ] Closed [ 6 ]
        Resolution Incomplete [ 4 ]
        brett19 Brett Lawson made changes -
        Workflow jira [ 23363 ] Couchbase SDK Workflow [ 44608 ]

          People

          • Assignee:
            mnunberg Mark Nunberg
            Reporter:
            byzhang by zhang
          • Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Gerrit Reviews

              There are no open Gerrit changes