Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

354
Views
Resolver un error de atributo encontrado al instalar o compilar en Google Cloud Platform

Así que tengo la versión 3.8.12 de python, y al intentar crear una aplicación cloudrun, aparece el error:

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

Ahora, cuando intento ejecutar e instalar Gcloud SDK nuevamente, aparece el 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'

¿Qué está causando esto y cómo puedo solucionarlo?

over 4 years ago · Santiago Trujillo
2 answers
Answer question

0

Ayer actualicé Fedora a la versión 35. Esta versión usa Python 3.10 por defecto.

En esta versión, las colecciones no tienen Mapeo . Tengo los mismos errores que tu.

No he intentado reinstalar Google Cloud SDK. En su lugar, escribí esta línea en mi archivo ~/.bashrc :

 export CLOUDSDK_PYTHON=python2

Luego cerré y abrí la terminal.

Ahora el SDK usa Python 2 en lugar de Python 3. Esto resolvió el problema para mí.

over 4 years ago · Santiago Trujillo Report

0

Utilicé este documento para arreglar mi python en macos, finalmente, después de arreglar python, el problema se resolvió.

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

over 4 years ago · Santiago Trujillo Report
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!