Details
-
Bug
-
Resolution: Fixed
-
Major
-
None
-
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