Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

install.sh has python problems when installing Google Cloud SDK on OS X

I'm trying to install Google Cloud SDK for OS X from here https://cloud.google.com/sdk/docs/quickstart-mac-os-x

I unzip it and then try to run the install.sh script by doing sh install.sh but keep getting this error:

/Library/Frameworks/Python.framework/Versions/2.7/Resources/Python.app/Contents/MacOS/Python: can't open file '/Users/bill/bin/bootstrapping/install.py': [Errno 2] No such file or directory

I tried installing and uninstalling Python and also changing which version of Python the installer uses by doing CLOUDSDK_PYTHON=path/to/pyton2.7, but it didn't resolve the iusse.

like image 553
Harry M Avatar asked Dec 13 '22 21:12

Harry M


1 Answers

For me, here how I solve it.

The google-cloud-sdk folder was in /Users/MyUserName/Downloads and I saw that I had the same command error:

can't open file '/Users/MyUserName/Downloads/bin/bootstrapping/install.py'

I saw that the "google-cloud-sdk" folder was not mentioned in the path. So I said to myself that I should try to launch the full command in the upper folder and... it worked :)

In other words:

  • I downloaded the file from: https://cloud.google.com/sdk/docs/?hl=fr in my download folder (/Users/MyUserName/Downloads)
  • I opened the terminal and typed: cd /Users/MyUserName/Downloads
  • Then I typed ./google-cloud-sdk/install.sh

Hope this will help! :)

Cheers,

like image 106
t2lc Avatar answered Dec 16 '22 11:12

t2lc