ImportError: cannot import name 'PostPolicy' from 'minio'
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,
Depending on minio<7 seems to be a workaround. Not sure what kind of security implications this has, though.
Is there any update about this? I'm currently facing the same problem.
Hi @mouslim97 , I have migrated to 7.x.x minio library.
Raised pull request https://github.com/scottwernervt/cloudstorage/pull/90