MLflow, azure-storage-blob報(bào)錯:TypeError: new enumerations must be created as `ClassName([mixin_typ...

目前在python 3.6.9中,azure-storage-blob庫的12.7.0, 12.7.1版本引用會報(bào)錯:

Python 3.6.9 (default, Jul  3 2019, 15:36:16)
[GCC 5.4.0 20160609] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> import azure.storage.blob
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/home/qizhen/.local/lib/python3.6/site-packages/azure/storage/blob/__init__.py", line 10, in <module>
    from ._blob_client import BlobClient
  File "/home/qizhen/.local/lib/python3.6/site-packages/azure/storage/blob/_blob_client.py", line 24, in <module>
    from ._shared.base_client import StorageAccountHostsMixin, parse_connection_str, parse_query
  File "/home/qizhen/.local/lib/python3.6/site-packages/azure/storage/blob/_shared/base_client.py", line 44, in <module>
    from .constants import STORAGE_OAUTH_SCOPE, SERVICE_HOST_BASE, CONNECTION_TIMEOUT, READ_TIMEOUT
  File "/home/qizhen/.local/lib/python3.6/site-packages/azure/storage/blob/_shared/constants.py", line 8, in <module>
    from .._generated import AzureBlobStorage
  File "/home/qizhen/.local/lib/python3.6/site-packages/azure/storage/blob/_generated/__init__.py", line 9, in <module>
    from ._azure_blob_storage import AzureBlobStorage
  File "/home/qizhen/.local/lib/python3.6/site-packages/azure/storage/blob/_generated/_azure_blob_storage.py", line 19, in <module>
    from .operations import ServiceOperations
  File "/home/qizhen/.local/lib/python3.6/site-packages/azure/storage/blob/_generated/operations/__init__.py", line 9, in <module>
    from ._service_operations import ServiceOperations
  File "/home/qizhen/.local/lib/python3.6/site-packages/azure/storage/blob/_generated/operations/_service_operations.py", line 15, in <module>
    from .. import models as _models
  File "/home/qizhen/.local/lib/python3.6/site-packages/azure/storage/blob/_generated/models/__init__.py", line 10, in <module>
    from ._models_py3 import AccessPolicy
  File "/home/qizhen/.local/lib/python3.6/site-packages/azure/storage/blob/_generated/models/_models_py3.py", line 15, in <module>
    from ._azure_blob_storage_enums import *
  File "/home/qizhen/.local/lib/python3.6/site-packages/azure/storage/blob/_generated/models/_azure_blob_storage_enums.py", line 29, in <module>
    class AccessTier(with_metaclass(_CaseInsensitiveEnumMeta, str, Enum)):
  File "/usr/lib/python3.6/enum.py", line 119, in __prepare__
    member_type, first_enum = metacls._get_mixins_(bases)
  File "/usr/lib/python3.6/enum.py", line 441, in _get_mixins_
    raise TypeError("new enumerations must be created as "
TypeError: new enumerations must be created as `ClassName([mixin_type,] enum_type)`

目前已在github上給他們反映了,沒有回復(fù)
使用12.6.0版本不會報(bào)錯 pip install azure-storage-blob==12.6.0

?著作權(quán)歸作者所有,轉(zhuǎn)載或內(nèi)容合作請聯(lián)系作者
【社區(qū)內(nèi)容提示】社區(qū)部分內(nèi)容疑似由AI輔助生成,瀏覽時請結(jié)合常識與多方信息審慎甄別。
平臺聲明:文章內(nèi)容(如有圖片或視頻亦包括在內(nèi))由作者上傳并發(fā)布,文章內(nèi)容僅代表作者本人觀點(diǎn),簡書系信息發(fā)布平臺,僅提供信息存儲服務(wù)。

相關(guān)閱讀更多精彩內(nèi)容

友情鏈接更多精彩內(nèi)容