Skip to content

version 7.2.19 has a breaking change: MinIO() constructor now requires endpoint parameter #1532

@AvicennaJr

Description

@AvicennaJr

The MinIO() constructor signature changed - endpoint is now a required parameter instead of optional.

This used to work:

client = Minio(
    access_key="Q3AM3UQ867SPQQA43P2F",
    secret_key="zuf+fteSIswRu7BJ86wekitniflbZami1YY3TG"
)

Now I am getting this error on version 7.2.19:

Traceback (most recent call last):
  File "generate-config.py", line 7, in <module>
    client = Minio(
TypeError: Minio.__init__() takes 1 positional argument but 2 positional arguments (and 2 keyword-only arguments) were given

The breaking change has also not been listed in the release.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions