Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Google Cloud SDK gcloud error

I use Google Cloud SDK under Window 7 64bit. Google Cloud SDK and python install success. and run gcloud.

The error occurs as shown below.

C:\Program Files\Google\Cloud SDK>gcloud
Traceback (most recent call last):
  File "C:\Program Files\Google\Cloud SDK\google-cloud-sdk\bin\..\./lib\googlecloudsdk\gcloud\gcloud.py", line 137, in <
module>
    _cli = CreateCLI()
  File "C:\Program Files\Google\Cloud SDK\google-cloud-sdk\bin\..\./lib\googlecloudsdk\gcloud\gcloud.py", line 98, in Cr
eateCLI
sdk_root = config.Paths().sdk_root
AttributeError: 'Paths' object has no attribute 'sdk_root'

Can ask for help? Thanks

like image 541
panicstyle Avatar asked Aug 30 '26 12:08

panicstyle


1 Answers

I had the same problem. And this helped me solve this problem

Manually removed directory: C:\Program Files\Google\Cloud SDK

Then rerun: GoogleCloudSDKInstaller.exe

And make sure that you have connection to needed DL servers (I was first behind company firewall and installer didn't download all files - and no complains either by installer...)

Then I was OK again..

Source: https://code.google.com/p/google-cloud-sdk/issues/detail?id=62&thanks=62&ts=1407851956

like image 189
alemonas Avatar answered Sep 01 '26 07:09

alemonas



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!