Google cloud SDK drops a warning on macOS Catalina: Executing a script that is loading libcrypto in an unsafe way

huangapple go评论83阅读模式
英文:

Google cloud SDK drops a warning on macOS Catalina: Executing a script that is loading libcrypto in an unsafe way

问题

Google Cloud SDK 274.0.1及之前的某些版本在macOS Catalina上会出现以下警告:

警告:以不安全的方式执行加载libcrypto的脚本。这将在未来的macOS版本中失败。在环境中设置LIBRESSL_REDIRECT_STUB_ABORT=1以将其强制为错误。

要重现此错误,假设您已安装Google Cloud SDK,请执行以下命令:gcloud --version

我认为这与最新的Google Cloud SDK中的某些Python2模块有关。而Python2已不再受支持。Python2倒计时 不过我不能确定。也许与以下问题有关:

在macOS Catalina v10.15.1上导入pysftp时,Python为什么会抱怨libcrypto?

在macOS 10.15.1上以不安全的方式加载libcrypto的脚本

我认为后者的答案不是正确的答案。

英文:

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.

答案1

得分: 1

你很可能在错误的原因上是正确的,我建议你在这里打开一个报告,这样GCP工程师可以处理它。

可能需要一些时间来解决,但他们应该能够复制这个问题,并找到解决方案。

希望这对你有帮助!

英文:

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!

答案2

得分: 1

重新审视此问题后,我因受到警告而感到烦恼,我意识到我对Python2的假设恰恰是问题的原因。Python2仍然是MacOS上的标准版本。因此,假设您已在MacOS分发版上安装了Python3,请按照使用Python3使用gcloud的方法中所述设置CLOUDSDK_PYTHON=python3环境变量,这将消除警告。

英文:

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.

huangapple
  • 本文由 发表于 2020年1月7日 01:49:07
  • 转载请务必保留本文链接:https://go.coder-hub.com/59616666.html
匿名

发表评论

匿名网友

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen:

确定