cloudstorage icon indicating copy to clipboard operation
cloudstorage copied to clipboard

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

Open karsil opened this issue 4 years ago • 4 comments

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,

karsil avatar Feb 23 '21 11:02 karsil

Depending on minio<7 seems to be a workaround. Not sure what kind of security implications this has, though.

scy avatar Feb 23 '22 09:02 scy

Is there any update about this? I'm currently facing the same problem.

mouslim97 avatar Jul 12 '22 12:07 mouslim97

Hi @mouslim97 , I have migrated to 7.x.x minio library.

madan-ram avatar Mar 22 '23 11:03 madan-ram

Raised pull request https://github.com/scottwernervt/cloudstorage/pull/90

madan-ram avatar Mar 22 '23 11:03 madan-ram