GoogleCloudPlatform / GoogleCloudPlatform/gsutil

Python 3.10 -- AttributeError: module 'collections' has no attribute 'Mapping'

Open
#1,331 23 comments 30 reactions 0 assignees View on GitHub
Dominant language
Python
Stars
918
Forks
335
PR merge metrics
No merged PRs in 30d

Description

Traceback (most recent call last):
File "/usr/lib64/google-cloud-sdk/bin/bootstrapping/gsutil.py", line 15, in
import bootstrapping
File "/usr/lib64/google-cloud-sdk/bin/bootstrapping/bootstrapping.py", line 46, in
from googlecloudsdk.core.updater import update_manager
File "/usr/lib64/google-cloud-sdk/lib/googlecloudsdk/core/updater/update_manager.py", line 39, in
from googlecloudsdk.core.console import progress_tracker
File "/usr/lib64/google-cloud-sdk/lib/googlecloudsdk/core/console/progress_tracker.py", line 651, in
class _BaseStagedProgressTracker(collections.Mapping):
AttributeError: module 'collections' has no attribute 'Mapping'

Contributor guide

Open the contributing guide

Research direction

Start with /usr/lib64/google-cloud-sdk/lib/googlecloudsdk/core/console/progress_tracker.py, especially the _BaseStagedProgressTracker definition at line 651. Reproduce the import failure with Python 3.10 and inspect the surrounding compatibility assumptions. Done means gsutil bootstrapping imports successfully without the reported collections.Mapping AttributeError.

Written by the indexing model from the issue text.

Assessment

Tech stack
python
Domain
cli
Issue type
Bug
Difficulty
2/5
Estimated time
1-3 hours
Activity status
Stale
Clarity
Clearly specified
Newbie friendliness
48/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.