google-cloud-sdk .bash.inc not found after upgrading to macOS Catalina - macos

I am encountering the following messages after upgrading to macOS Catalina on my terminal whenever I start up a new terminal:
/Users/<myname>/Downloads/google-cloud-sdk/path.bash.inc:3: = not found
/Users/<myname>/Downloads/google-cloud-sdk/completion.bash.inc:56: command not found: complete
/Users/<myname>/Downloads/google-cloud-sdk/completion.bash.inc:81: command not found: complete
/Users/<myname>/Downloads/google-cloud-sdk/completion.bash.inc:82: command not found: complete
I have re-run the ./install.sh command and gcloud commands work fine. How do I remove the above messages, or is there something else that is still missing?
EDIT:
Upgraded to macOS 10.15.4 and installed google-cloud-sdk is from here, the macOS 64-bit version.

I solved the same issue by following the instruction: https://gist.github.com/dwchiang/10849350. Simply, change the path.bash.inc into path.zsh.inc in ~/.bash_profile, same as the completion.zsh.inc.

This seems to be an issue with the fact that Cloud SDK is assuming that you are using bash while Catalina now uses Zsh by default as mentioned here. You may be able to remove the error by changing to bash by following the instructions over the link I shared, however, I can not test this out at the moment.
I also recommend you to report this issue to Google directly over at their issue reporting page so it can be reviewed and corrected if possible.
Additionally, make sure that you are using the latest Cloud SDK version by running the gcloud components update so that you can better report this on the issue.
I hope you find this information useful.

Related

How to fix VS COde "fatal error: runtime: bsdthread_register error" on MacOS Monterey

I'm getting "fatal error: runtime: bsdthread_register error" error on VS code when i try to run a command on terminal.
This used work fine on Big sur and older versions.
Is there a way to get this fixed on Monterey?
If this is a program you built from source, you will need to rebuild it with a newer version of Go:
https://github.com/golang/go/wiki/MacOS12BSDThreadRegisterIssue
This might not be the issue of vscode. If you open your shell terminal, the error might still be there. Try changing your default terminal to zsh instead of bash. You can follow this to see how to change the vscode default terminal.
The same situation happens when I use goimports command after upgrading go version to 1.17. Try to upgrade your go tools, Good Luck!
Since it's a MacBook:
brew install docker-machine

Google Cloud SDK v274.0.0 update asking for Python 2.7 interpreter on a machine that has only ever had Python 3+ (Windows)

This is really strange - I've found no help in the documentation, nor can we replicate the error on a machine of a similar build. The gcloud CLI has worked without any error on my Python 3 machine for months.
After today's update, any gcloud command is met with the below error message, looking for a Python 2.7 interpreter. I'm at a loss as to how to proceed - even when attempting to uninstall with the gcloud command the same error is thrown.
This is a known issue that is being tracked here
Version 2.74 installation is broken on Windows. You will need to install an older version. This can be fixed by hand-editing gcloud.cmd but I do not recommend this.
Use the following link to download a previous version after uninstalling the current version.
Installing from versioned archives
[UPDATE 12/30/2019]
Google has released a minor revision update that appears to fix this problem. The revised update is version 2.74.0.1.

Getting Google App to work

I've followed all the steps here https://console.developers.google.com/start/appengine?_ga=1.82598931.449716086.1415074596 successfully up to step 5.3. When I try to start the server:
dev_appserver.py appengine-try-python-flask
I get the following output:
-bash: dev_appserver.py: command not found
I'm on a Mac running OS X 10.10. Any ideas what I'm doing wrong?
I'm running Python 2.7.6.
It seems like you didn't correctly add the dev_appserver (and other GAE tools) to the bash.
Did you restart your shell(s) to pick up the new environment changes?
If you did and the problem still persists, you can try downloading manually the GAE SDK.
After that, open the GoogleAppEngineLauncher, and just click OK on 'Make command symlinks'. This will solve your issue.
It's all easily explained in the official documentation:
Download and Install the Google App Engine SDK

Reasons why git is not visible to Rstudio (OSX)

I have been trying for a few hours to use git within Rstudio on my macbook. However, the option to use git within version control is missing - the only option remains (none).
I have installed github, and then git directly, using the link given
in the rstudio website.
I have attempted to run the bash script
supplied with the git installation file.
I have verified that git is
active on the machine through both github and directly through the
command line.
I have located the git file in the hidden folder
/local/git/bin/git
and pointed Rstudio to this using global options.
I have reinstalled git a couple of times.
I have logged off and on again multiple times.
Any solutions very welcome.
Thanks,
Jon
The same just happened on my mac. I narrowed down the issue to the Xcode developers package update. The fix in my case was:
From a shell go to /usr/bin
sudo ./git
Agree to the terms
Close and reopen RStudio
VoilĂ . Git has returned to RStudio.
My RStudio git tab disappeared after upgrading to OS X El Capitan. I tried following the advice in the top answer:
but I got the error:
xcrun: error: invalid active developer path (/Library/Developer/CommandLineTools), missing xcrun at: /Library/Developer/CommandLineTools/usr/bin/xcrun
which led me to discover I had to reinstall XCode command-line tools. I did this via:
xcode-select --install
I also updated to latest release of RStudio. Then my git tab reappeared.
I just came across your question after I encountered a similar issue on windows. You've probably sorted yourself by now but just to let you & others know what worked for me.
From RStudio Tools, Global Options.
Option for Git Executable.
Browsed to git.exe in the git/bin folder.
Now working like a dream.
Andy
It's now working. As expected it took re-installing the operating system, as well as the following:
http://blog.rstudio.org/2013/10/22/rstudio-and-os-x-10-9-mavericks/
Using the preview version available from the link below solved the Rstudio/Git issue instantly.
Same issue with OSX High Sierra
This answer in this thread on GitHub helped me
In short, OSX seems to use another directory for the git file

Trying to Run middleman on mac

Answering my own question for anyone else having this issue. (using the search terms i thought of because they didn't bring up the answers for me).
Trying to install and run middleman following the getting started guide on their website with Mac OS X 10.9.2. When trying to run bundle install getting errors about openSSL and event machine.
Gist of Errors.
Refrence to an answer that someone on IRC helped me find.
Aparently this is caused by a mismatch in expected versions with something called Clang which is part of the Xcode tools for mac. The update to Xcode tools causes this to fail. Using the command:
ARCHFLAGS=-Wno-error=unused-command-line-argument-hard-error-in-future bundle install
seems to work to resolve this issue.

Resources