Empresas
Empregos
  • Sobre nós
  • Soluções
    • Publicação de vagas
      Publique sua vaga e receba candidatos qualificados em 48h.
    • Avaliações de candidatos
      Mais de 500 testes técnicos e psicológicos, mais anti-fraude.
    • Headhunting
      Busca executiva personalizada do início ao fim.
    • Folha de Pagamento + EOR
      Dispersão de folha e EOR em mais de 15 países da LATAM.
  • Preços
  • Empregos

0

441
Visualizações
Solving an Attribute Error found while installing or building on Google Cloud Platform

So I have python version 3.8.12, and while trying to build a cloudrun app, I get the error:

ERROR: gcloud failed to load: module 'collections' has no attribute 'Mapping'

Now when I try to run and install Gcloud SDK again, I get the error:

Welcome to the Google Cloud SDK! Traceback (most recent call last):   File "/Users/eshanchatty/downloads/./google-cloud-sdk/bin/bootstrapping/install.py", line 12, in <module>
    import bootstrapping   File "/Users/eshanchatty/Downloads/google-cloud-sdk/bin/bootstrapping/bootstrapping.py", line 46, in <module>
    from googlecloudsdk.core.updater import update_manager   File "/Users/eshanchatty/Downloads/google-cloud-sdk/lib/googlecloudsdk/core/updater/update_manager.py", line 39, in <module>
    from googlecloudsdk.core.console import progress_tracker   File "/Users/eshanchatty/Downloads/google-cloud-sdk/lib/googlecloudsdk/core/console/progress_tracker.py", line 651, in <module>
    class _BaseStagedProgressTracker(collections.Mapping): AttributeError: module 'collections' has no attribute 'Mapping'

What is causing this, and how can I solve this?

over 4 years ago · Santiago Trujillo
2 Respostas
Responde à pergunta

0

Yesterday I updated Fedora to version 35. This version uses Python 3.10 by default.

In this version, collections does not have Mapping. I got the same errors as you did.

I haven't tried to reinstall Google Cloud SDK. Instead, I wrote this line to my ~/.bashrc file:

export CLOUDSDK_PYTHON=python2

Then closed and opened the terminal.

Now the SDK uses Python 2 instead of Python 3. This solved the issue for me.

over 4 years ago · Santiago Trujillo Relatório

0

I used this doc to fix my python on macos, eventually after fixing python the issue got resolved.

https://gist.github.com/MuhsinFatih/ee0154199803babb449b5bb98d3475f7

over 4 years ago · Santiago Trujillo Relatório
Responde à pergunta
Encontrar trabalhos remotos

Descubra a nova forma de encontrar um emprego!

melhores empregos
Principais categorias de trabalho
Empresas
Postar vaga Preços Comercial
Jurídico
Termos e Condições Política de privacidade
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomende algumas ofertas para mim
Preciso de ajuda