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

acouchbase/txcouchbase API Cluster creation should match couchbase API

    XMLWordPrintable

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • None
    • 3.1.3
    • None
    • None
    • 1

    Description

      Inheritance diagram for acouchbase & txcouchbase is rather messy. At the moment you cannot create a cluster object in the same manner as the couchbase API.

      The following works with the couchbase API.

      from couchbase.cluster import Cluster, ClusterOptions
      from couchbase.auth import PasswordAuthenticator
       
       
      cluster = Cluster('couchbase://localhost', ClusterOptions(PasswordAuthenticator('username', 'password')
      

      The following, keeping the same flow with the acouchbase API raises an exception.

      from acouchbase.cluster import Cluster
      from couchbase.cluster import ClusterOptions
      from couchbase.auth import PasswordAuthenticator
       
       
      cluster = Cluster('couchbase://localhost', ClusterOptions(PasswordAuthenticator('username', 'password')
      

      Exception:

      super(AIOClientMixin, cls).__new__(cls, *args, **kwargs) TypeError: object.__new__() takes exactly one argument (the type to instantiate)
      

      The same issue occurs w/ txcouchbase API

      Attachments

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

        Activity

          There are no comments yet on this issue.

          People

            jared.casey Jared Casey
            Ellis.Breen Ellis Breen
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes

                PagerDuty