Skip to content

ImportError: cannot import name 'PostPolicy' from 'minio' #78

@karsil

Description

@karsil

Hey everyone,

when importing the MinioDriver by
from cloudstorage.drivers.minio import MinioDriver
the following error occurs:

from minio import Minio, PostPolicy, definitions
ImportError: cannot import name 'PostPolicy' from 'minio'

Apparently the underlying minio library changed, I guess. Both PostPolicy and definitions throw an ImportError. I was able to fix the first import by changing the import to from minio.datatypes import PostPolicy. definitions is still an open topic,

Metadata

Metadata

Assignees

Labels

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions