1
resposta

ERRO AO INSTALAR O CLOUD SDK, ALGUÉM JÁ PASSOU POR ISSO?

Output folder: C:\Program Files (x86)\Google\Cloud SDK
Downloading Google Cloud SDK core.
Extracting Google Cloud SDK core.
Create Google Cloud SDK bat file: C:\Program Files (x86)\Google\Cloud SDK\cloud_env.bat
Installing components.
Welcome to the Google Cloud SDK!
ERROR: gcloud failed to load: 'ascii' codec can't decode byte 0xed in position 10: ordinal not in range(128)
    gcloud_main = _import_gcloud_main()
    import googlecloudsdk.gcloud_main
    from googlecloudsdk.api_lib.iamcredentials import util as iamcred_util
    from googlecloudsdk.core.credentials import http as http_creds
    from googlecloudsdk.core import http
    from googlecloudsdk.core import context_aware
    files.GetHomeDir(), '.secureConnect', 'context_aware_metadata.json')
    return ExpandHomeDir('~')
    return encoding_util.Decode(os.path.expanduser(path))
    return userhome + path[i:]
This usually indicates corruption in your gcloud installation or problems with your Python interpreter.
Please verify that the following is the path to a working Python 2.7 executable:
    C:\Program Files (x86)\Google\Cloud SDK\google-cloud-sdk\platform\bundledpython\python.exe
If it is not, please set the CLOUDSDK_PYTHON environment variable to point to a working Python 2.7 executable.
If you are still experiencing problems, please reinstall the Cloud SDK using the instructions here:
    https://cloud.google.com/sdk/
Traceback (most recent call last):
  File "C:\Program Files (x86)\Google\Cloud SDK\google-cloud-sdk\\bin\bootstrapping\install.py", line 12, in <module>
    import bootstrapping
  File "C:\Program Files (x86)\Google\Cloud SDK\google-cloud-sdk\bin\bootstrapping\bootstrapping.py", line 44, in <module>
    from googlecloudsdk.core.credentials import store as c_store
  File "C:\Program Files (x86)\Google\Cloud SDK\google-cloud-sdk\lib\googlecloudsdk\core\credentials\store.py", line 33, in <module>
    from googlecloudsdk.core import http
  File "C:\Program Files (x86)\Google\Cloud SDK\google-cloud-sdk\lib\googlecloudsdk\core\http.py", line 29, in <module>
    from googlecloudsdk.core import context_aware
  File "C:\Program Files (x86)\Google\Cloud SDK\google-cloud-sdk\lib\googlecloudsdk\core\context_aware.py", line 34, in <module>
    files.GetHomeDir(), '.secureConnect', 'context_aware_metadata.json')
  File "C:\Program Files (x86)\Google\Cloud SDK\google-cloud-sdk\lib\googlecloudsdk\core\util\files.py", line 1213, in GetHomeDir
    return ExpandHomeDir('~')
  File "C:\Program Files (x86)\Google\Cloud SDK\google-cloud-sdk\lib\googlecloudsdk\core\util\files.py", line 1218, in ExpandHomeDir
    return encoding_util.Decode(os.path.expanduser(path))
  File "C:\Program Files (x86)\Google\Cloud SDK\google-cloud-sdk\platform\bundledpython\lib\ntpath.py", line 311, in expanduser
    return userhome + path[i:]
UnicodeDecodeError: 'ascii' codec can't decode byte 0xed in position 10: ordinal not in range(128)
Failed to install.
1 resposta

Olá Cícero,

Pela mensagem de erro parece que há algum problema na instalação do Python.

Caso não tenha o Python instalado, poderá encontrar a versão correspondente ao seu sistema operacional aqui: https://www.python.org/downloads/release/python-2715/

Peço que por favor confirme que o caminho C:\Program Files (x86)\Google\Cloud SDK\google-cloud-sdk\platform\bundledpython\ possui o executável python.exe

Se não tiver, tente colocar nas variáveis de ambiente do Windows , a variável de ambiente CLOUDSDK_PYTHON que aponte para o caminho do executável.