scottwernervt / cloudstorage

Unified cloud storage API for storage services.
http://cloudstorage.readthedocs.io/en/latest/
MIT License
93 stars 27 forks source link

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

Open karsil opened 3 years ago

karsil commented 3 years ago

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,

scy commented 2 years ago

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

mouslim97 commented 2 years ago

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

madan-ram commented 1 year ago

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

madan-ram commented 1 year ago

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