Skip to content

UnboundLocalError: cannot access local variable 'options' where it is not associated with a value #66

@sq6jnx

Description

@sq6jnx

When creating collection I get the following error:

  File "/usr/local/lib/python3.13/site-packages/couchbase/management/collections.py", line 170, in create_collection
    req = self._impl.request_builder.build_create_collection_request(self._bucket_name,
                                                                     *args,
                                                                     **kwargs)
  File "/usr/local/lib/python3.13/site-packages/couchbase/management/logic/collection_mgmt_req_builder.py", line 147, in build_create_collection_request
    final_args = forward_args(kwargs, *options)
                                       ^^^^^^^
UnboundLocalError: cannot access local variable 'options' where it is not associated with a value

I think there is options = [] statement missing in

.

EDIT: Affected versions are, at least, 4.6.0 and 4.6.1. I don't have this problem with 4.5.0.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions