macos - 错误: gcloud crashed (AttributeError): 'Thread' object has no attribute 'isAlive'

标签 macos gcloud

尝试通过 iap 连接到 VM 时,macO 会出现此问题。相同的命令可以在具有相同凭据的另一个系统上运行,因此一定与我的本地环境有关。

这是我尝试运行的命令:

gcloud compute ssh **** --project=**** --zone=europe-west4-a --tunnel-through-iap

它失败并出现以下错误:

ERROR: gcloud crashed (AttributeError): 'Thread' object has no attribute 'isAlive'

If you would like to report this issue, please run the following command:
  gcloud feedback

To check gcloud for common problems, please run the following command:
  gcloud info --run-diagnostics
kex_exchange_identification: Connection closed by remote host
ERROR: (gcloud.compute.ssh) [/usr/bin/ssh] exited with return code [255].

谷歌没有给我任何答案

最佳答案

这似乎是一个Python问题。我猜你使用的是太新的Python3。请使用 Python 3.5 - 3.8 或 Python 2.7.9 或更高版本。

这里是文档: https://cloud.google.com/sdk/docs/install#mac

关于macos - 错误: gcloud crashed (AttributeError): 'Thread' object has no attribute 'isAlive' ,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/65021939/

相关文章:

google-cloud-endpoints - 通过 Google Cloud Endpoints 公开 Swagger-UI 文档

docker - 是否可以在 boot2docker 上安装 gcloud(谷歌云 sdk)?

google-cloud-platform - 为什么我在终端上的 gcloud 中收到 "get-credentials requires edit permission"错误,当它在 Cloud Shell 中成功时?

c++ - 如何使用c++以编程方式从操作系统中的pid获取uid?

macos - 系统是否支持带有红色关闭按钮的 HUD 样式窗口?

xcode - 在 OS X 上删除 CoreData 存储?

ruby - Rspec 进程在不同的地方挂起,无法终止进程。如何诊断?

objective-c - 10.8中如何显示文件复制进度

gcloud - 从命令行激活 gcloud 服务帐户时出错

java - 如何控制有界源 split ?