Skip to content

AttributeError: module 'collections' has no attribute 'MutableMapping' #88

@kkruse-rax

Description

@kkruse-rax

Hi,

Just wanted to open an issue to see about an update here for python 3.10. This error occurs because collections moved MutableMapping in python 3.10.

Seems a workaround until then may be have the following before importing cloudstorage, but not ideal long term:

import collections 
if sys.version_info.major == 3 and sys.version_info.minor >= 10:
    from collections.abc import MutableMapping
else:
    from collections import MutableMapping

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions