美文网首页
MLflow, azure-storage-blob报错:Typ

MLflow, azure-storage-blob报错:Typ

作者: qizhen816 | 来源:发表于2021-02-08 11:45 被阅读0次

    目前在python 3.6.9中,azure-storage-blob库的12.7.0, 12.7.1版本引用会报错:

    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上给他们反映了,没有回复
    使用12.6.0版本不会报错 pip install azure-storage-blob==12.6.0

    相关文章

      网友评论

          本文标题:MLflow, azure-storage-blob报错:Typ

          本文链接:https://www.haomeiwen.com/subject/lsvxxltx.html