0

Update: Still an issue with version 291.0.0.

Google Cloud SDK 274.0.1 and some earlier versions drop the following warning on macOS Catalina:

WARNING: Executing a script that is loading libcrypto in an unsafe way. This will fail in a future version of macOS. Set the LIBRESSL_REDIRECT_STUB_ABORT=1 in the environment to force this into an error.

To reproduce this error, assuming you have the Google Cloud SDK installed execute the following command: gcloud --version

My assumption is that it has something to do with certain Python2 modules inside the latest Google Cloud SDK. And Python2 is no longer supported. Python2 countdown However I am not sure. Perhaps this is related to these issues:

Why is Python Complaining About libcrypto When Importing pysftp on macOS Catalina v10.15.1? and

Executing a script that is loading libcrypto in an unsafe way on macOS 10.15.1

The answer at the latter is IMHO not the correct answer.

Pullie
  • 2,685
  • 3
  • 25
  • 31

2 Answers2

1

You are most likely right in the reason for the error, I would suggest you to open a report for this over here so that GCP engineers can address it.

It may take some time to be addressed, however, they should be able to replicate the issue and with this find the solution for it.

Hope you find this helpful!

rsalinas
  • 1,507
  • 8
  • 9
1

Revisiting this issue after getting annoyed by the warning, I realised that my assumption about Python2 was precisely the cause. Python2 is still the standard version on MacOS. So assuming you have Python3 installed on your MacOS distribution set the CLOUDSDK_PYTHON=python3 environment variable as explained in: Is there a way to use gcloud with Python3 This will get rid of the warning.

Pullie
  • 2,685
  • 3
  • 25
  • 31