GoogleCloudPlatform / cloud-code-vscode

Cloud Code for Visual Studio Code: Issues, Documentation and more
Other
417 stars 111 forks source link

Cloud SDK repeatedly attempts to install on Mac OS with python 3.11 #689

Open travisdoesmath opened 1 year ago

travisdoesmath commented 1 year ago

Type: Bug

Context

Error Message Cloud SDK was installed but was found to be invalid or corrupted so it was removed. Attempting to reinstall. Managed dependencies will be unavailable during this process. (install attempt 3)

Steps to reproduce Install Cloud Code Extension from VS Code

Extension version: 1.20.5 VS Code version: Code 1.73.1 (Universal) (6261075646f055b99068d3688932416f2346dd3b, 2022-11-09T02:08:38.961Z) OS version: Darwin arm64 22.1.0 Modes: Sandboxed: No

System Info |Item|Value| |---|---| |CPUs|Apple M1 (8 x 24)| |GPU Status|2d_canvas: enabled
canvas_oop_rasterization: disabled_off
direct_rendering_display_compositor: disabled_off_ok
gpu_compositing: enabled
metal: disabled_off
multiple_raster_threads: enabled_on
opengl: enabled_on
rasterization: enabled
raw_draw: disabled_off_ok
skia_renderer: enabled_on
video_decode: enabled
video_encode: enabled
vulkan: disabled_off
webgl: enabled
webgl2: enabled
webgpu: disabled_off| |Load (avg)|4, 9, 10| |Memory (System)|8.00GB (0.12GB free)| |Process Argv|--crash-reporter-id 142649ca-defc-4ea6-af4a-68f64f408485| |Screen Reader|no| |VM|0%|
A/B Experiments ``` vsliv368cf:30146710 vsreu685:30147344 python383:30185418 vspor879:30202332 vspor708:30202333 vspor363:30204092 vslsvsres303:30308271 pythonvspyl392:30443607 vserr242cf:30382550 pythontb:30283811 vsjup518:30340749 pythonptprofiler:30281270 vshan820:30294714 vstes263:30335439 vscoreces:30445986 pythondataviewer:30285071 vscod805:30301674 binariesv615:30325510 bridge0708:30335490 bridge0723:30353136 cmake_vspar411:30581797 vsaa593cf:30376535 pythonvs932:30410667 cppdebug:30492333 vsclangdf:30486550 c4g48928:30535728 dsvsc012cf:30540253 azure-dev_surveyone:30548225 pyindex848cf:30577861 nodejswelcome1cf:30587006 282f8724:30602487 gswce1:30612156 3d0df643:30613357 dbltrim-noruby:30604474 f6dab269:30613381 fim-prod:30623723 ```

Output from logs, following instructions from #679

[12/7/2022, 9:54:37 AM] Dependency check detected gcloud not installed
[12/7/2022, 9:54:37 AM] Dependency installer starting installation
[12/7/2022, 9:54:38 AM] Starting gcloud install using archive https://dl.google.com/dl/cloudsdk/channels/rapid/downloads/google-cloud-sdk-411.0.0-darwin-arm.tar.gz, installing in /Users/travistaylor/Library/Application Support/cloud-code/installer
[12/7/2022, 9:54:56 AM] Dependency installer: gcloud installation completed successfully in 18772.242083999794ms
[12/7/2022, 9:54:56 AM] Running 'gcloud auth list --format value(account) --filter status=ACTIVE --quiet --verbosity warning' (managed)
[12/7/2022, 9:54:57 AM] travis@travisrtaylor.com

[12/7/2022, 9:54:57 AM] Checking if update is needed. Current version is 411.0.0, latest is 411.0.0.
[12/7/2022, 9:54:57 AM] No update needed.
[12/7/2022, 9:54:57 AM] Running 'gcloud components list --format json --quiet --verbosity warning' (managed)
[12/7/2022, 9:54:57 AM] 'gcloud auth list --format value(account) --filter status=ACTIVE --quiet --verbosity warning' exited with code 0 took 1657ms (managed)
[12/7/2022, 9:54:58 AM] 
Your current Google Cloud CLI version is: 411.0.0

[12/7/2022, 9:54:58 AM] The latest available version is: 411.0.0

[12/7/2022, 9:54:58 AM] [
  {
    "current_version_string": null,
    "id": "app-engine-go",
    "is_configuration": false,
    "is_hidden": false,
    "latest_version_string": "1.9.72",
    "name": "App Engine Go Extensions",
    "platform": {
      "architecture": {
        "file_name": "arm",
        "id": "arm",
        "name": "arm"
      },
      "operating_system": {
        "file_name": "darwin",
        "id": "MACOSX",
        "name": "Mac OS X"
      }
    },
    "platform_required": false,
    "size": 4164730,
    "state": {
      "name": "Not Installed"
    }
  },
  {
    "current_version_string": null,
    "id": "appctl",
    "is_configuration": false,
    "is_hidden": false,
    "latest_version_string": "0.1.12",
    "name": "Appctl",
    "platform": {
      "architecture": {
        "file_name": "x86_64",
        "id": "x86_64",
        "name": "x86_64"
      },
      "operating_system": {
        "file_name": "darwin",
        "id": "MACOSX",
        "name": "Mac OS X"
      }
    },
    "platform_required": false,
    "size": 19381598,
    "state": {
      "name": "Not Installed"
    }
  },
  {
    "current_version_string": null,
    "id": "package-go-module",
    "is_configuration": false,
    "is_hidden": false,
    "latest_version_string": "0.3.0",
    "name": "Artifact Registry Go Module Package Helper",
    "platform": {
      "architecture": {
        "file_name": "x86_64",
        "id": "x86_64",
        "name": "x86_64"
      },
      "operating_system": {
        "file_name": "darwin",
        "id": "MACOSX",
        "name": "Mac OS X"
      }
    },
    "platform_required": false,
    "size": 840902,
    "state": {
      "name": "Not Installed"
    }
  },
  {
    "current_version_string": null,
    "id": "cbt",
    "is_configuration": false,
    "is_hidden": false,
    "latest_version_string": "0.13.0",
    "name": "Cloud Bigtable Command Line Tool",
    "platform": {
      "architecture": {
        "file_name": "arm",
        "id": "arm",
        "name": "arm"
      },
      "operating_system": {
        "file_name": "darwin",
        "id": "MACOSX",
        "name": "Mac OS X"
      }
    },
    "platform_required": false,
    "size": 10302644,
    "state": {
      "name": "Not Installed"
    }
  },
  {
    "current_version_string": null,
    "id": "bigtable",
    "is_configuration": false,
    "is_hidden": false,
    "latest_version_string": "",
    "name": "Cloud Bigtable Emulator",
    "platform": {
      "architecture": {
        "file_name": "arm",
        "id": "arm",
        "name": "arm"
      },
      "operating_system": {
        "file_name": "darwin",
        "id": "MACOSX",
        "name": "Mac OS X"
      }
    },
    "platform_required": false,
    "size": 6650817,
    "state": {
      "name": "Not Installed"
    }
  },
  {
    "current_version_string": null,
    "id": "datalab",
    "is_configuration": false,
    "is_hidden": false,
    "latest_version_string": "20190610",
    "name": "Cloud Datalab Command Line Tool",
    "platform": {
      "architecture": {
        "file_name": "arm",
        "id": "arm",
        "name": "arm"
      },
      "operating_system": {
        "file_name": "darwin",
        "id": "MACOSX",
        "name": "Mac OS X"
      }
    },
    "platform_required": false,
    "size": 74849,
    "state": {
      "name": "Not Installed"
    }
  },
  {
    "current_version_string": null,
    "id": "cloud-datastore-emulator",
    "is_configuration": false,
    "is_hidden": false,
    "latest_version_string": "2.3.0",
    "name": "Cloud Datastore Emulator",
    "platform": {
      "architecture": {
        "file_name": "arm",
        "id": "arm",
        "name": "arm"
      },
      "operating_system": {
        "file_name": "darwin",
        "id": "MACOSX",
        "name": "Mac OS X"
      }
    },
    "platform_required": false,
    "size": 36755687,
    "state": {
      "name": "Not Installed"
    }
  },
  {
    "current_version_string": null,
    "id": "cloud-firestore-emulator",
    "is_configuration": false,
    "is_hidden": false,
    "latest_version_string": "1.15.1",
    "name": "Cloud Firestore Emulator",
    "platform": {
      "architecture": {
        "file_name": "arm",
        "id": "arm",
        "name": "arm"
      },
      "operating_system": {
        "file_name": "darwin",
        "id": "MACOSX",
        "name": "Mac OS X"
      }
    },
    "platform_required": false,
    "size": 42101953,
    "state": {
      "name": "Not Installed"
    }
  },
  {
    "current_version_string": null,
    "id": "pubsub-emulator",
    "is_configuration": false,
    "is_hidden": false,
    "latest_version_string": "0.7.2",
    "name": "Cloud Pub/Sub Emulator",
    "platform": {
      "architecture": {
        "file_name": "arm",
        "id": "arm",
        "name": "arm"
      },
      "operating_system": {
        "file_name": "darwin",
        "id": "MACOSX",
        "name": "Mac OS X"
      }
    },
    "platform_required": false,
    "size": 65401414,
    "state": {
      "name": "Not Installed"
    }
  },
  {
    "current_version_string": null,
    "id": "cloud-run-proxy",
    "is_configuration": false,
    "is_hidden": false,
    "latest_version_string": "0.3.0",
    "name": "Cloud Run Proxy",
    "platform": {
      "architecture": {
        "file_name": "arm",
        "id": "arm",
        "name": "arm"
      },
      "operating_system": {
        "file_name": "darwin",
        "id": "MACOSX",
        "name": "Mac OS X"
      }
    },
    "platform_required": false,
    "size": 7735939,
    "state": {
      "name": "Not Installed"
    }
  },
  {
    "current_version_string": null,
    "id": "cloud_sql_proxy",
    "is_configuration": false,
    "is_hidden": false,
    "latest_version_string": "1.27.0",
    "name": "Cloud SQL Proxy",
    "platform": {
      "architecture": {
        "file_name": "arm",
        "id": "arm",
        "name": "arm"
      },
      "operating_system": {
        "file_name": "darwin",
        "id": "MACOSX",
        "name": "Mac OS X"
      }
    },
    "platform_required": false,
    "size": 7700917,
    "state": {
      "name": "Not Installed"
    }
  },
  {
    "current_version_string": null,
    "id": "docker-credential-gcr",
    "is_configuration": false,
    "is_hidden": false,
    "latest_version_string": "1.5.0",
    "name": "Google Container Registry's Docker credential helper",
    "platform": {
      "architecture": {
        "file_name": "arm",
        "id": "arm",
        "name": "arm"
      },
      "operating_system": {
        "file_name": "darwin",
        "id": "MACOSX",
        "name": "Mac OS X"
      }
    },
    "platform_required": false,
    "size": 0,
    "state": {
      "name": "Not Installed"
    }
  },
  {
    "current_version_string": null,
    "id": "kustomize",
    "is_configuration": false,
    "is_hidden": false,
    "latest_version_string": "4.4.0",
    "name": "Kustomize",
    "platform": {
      "architecture": {
        "file_name": "arm",
        "id": "arm",
        "name": "arm"
      },
      "operating_system": {
        "file_name": "darwin",
        "id": "MACOSX",
        "name": "Mac OS X"
      }
    },
    "platform_required": false,
    "size": 7742264,
    "state": {
      "name": "Not Installed"
    }
  },
  {
    "current_version_string": null,
    "id": "log-streaming",
    "is_configuration": false,
    "is_hidden": false,
    "latest_version_string": "0.3.0",
    "name": "Log Streaming",
    "platform": {
      "architecture": {
        "file_name": "arm",
        "id": "arm",
        "name": "arm"
      },
      "operating_system": {
        "file_name": "darwin",
        "id": "MACOSX",
        "name": "Mac OS X"
      }
    },
    "platform_required": false,
    "size": 12455711,
    "state": {
      "name": "Not Installed"
    }
  },
  {
    "current_version_string": null,
    "id": "minikube",
    "is_configuration": false,
    "is_hidden": false,
    "latest_version_string": "1.28.0",
    "name": "Minikube",
    "platform": {
      "architecture": {
        "file_name": "arm",
        "id": "arm",
        "name": "arm"
      },
      "operating_system": {
        "file_name": "darwin",
        "id": "MACOSX",
[12/7/2022, 9:54:58 AM] 
        "name": "Mac OS X"
      }
    },
    "platform_required": false,
    "size": 31219928,
    "state": {
      "name": "Not Installed"
    }
  },
  {
    "current_version_string": null,
    "id": "nomos",
    "is_configuration": false,
    "is_hidden": false,
    "latest_version_string": "1.13.1-rc.4",
    "name": "Nomos CLI",
    "platform": {
      "architecture": {
        "file_name": "x86_64",
        "id": "x86_64",
        "name": "x86_64"
      },
      "operating_system": {
        "file_name": "darwin",
        "id": "MACOSX",
        "name": "Mac OS X"
      }
    },
    "platform_required": false,
    "size": 25597173,
    "state": {
      "name": "Not Installed"
    }
  },
  {
    "current_version_string": null,
    "id": "local-extract",
    "is_configuration": false,
    "is_hidden": false,
    "latest_version_string": "1.5.5",
    "name": "On-Demand Scanning API extraction helper",
    "platform": {
      "architecture": {
        "file_name": "arm",
        "id": "arm",
        "name": "arm"
      },
      "operating_system": {
        "file_name": "darwin",
        "id": "MACOSX",
        "name": "Mac OS X"
      }
    },
    "platform_required": false,
    "size": 12035272,
    "state": {
      "name": "Not Installed"
    }
  },
  {
    "current_version_string": null,
    "id": "skaffold",
    "is_configuration": false,
    "is_hidden": false,
    "latest_version_string": "2.0.3",
    "name": "Skaffold",
    "platform": {
      "architecture": {
        "file_name": "arm",
        "id": "arm",
        "name": "arm"
      },
      "operating_system": {
        "file_name": "darwin",
        "id": "MACOSX",
        "name": "Mac OS X"
      }
    },
    "platform_required": false,
    "size": 20837636,
    "state": {
      "name": "Not Installed"
    }
  },
  {
    "current_version_string": null,
    "id": "terraform-tools",
    "is_configuration": false,
    "is_hidden": false,
    "latest_version_string": "0.8.0",
    "name": "Terraform Tools",
    "platform": {
      "architecture": {
        "file_name": "arm",
        "id": "arm",
        "name": "arm"
      },
      "operating_system": {
        "file_name": "darwin",
        "id": "MACOSX",
        "name": "Mac OS X"
      }
    },
    "platform_required": false,
    "size": 54037009,
    "state": {
      "name": "Not Installed"
    }
  },
  {
    "current_version_string": null,
    "id": "anthos-auth",
    "is_configuration": false,
    "is_hidden": false,
    "latest_version_string": "1.4.4",
    "name": "anthos-auth",
    "platform": {
      "architecture": {
        "file_name": "arm",
        "id": "arm",
        "name": "arm"
      },
      "operating_system": {
        "file_name": "darwin",
        "id": "MACOSX",
        "name": "Mac OS X"
      }
    },
    "platform_required": false,
    "size": 20108065,
    "state": {
      "name": "Not Installed"
    }
  },
  {
    "current_version_string": null,
    "id": "config-connector",
    "is_configuration": false,
    "is_hidden": false,
    "latest_version_string": "1.93.0",
    "name": "config-connector",
    "platform": {
      "architecture": {
        "file_name": "arm",
        "id": "arm",
        "name": "arm"
      },
      "operating_system": {
        "file_name": "darwin",
        "id": "MACOSX",
        "name": "Mac OS X"
      }
    },
    "platform_required": false,
    "size": 58308273,
    "state": {
      "name": "Not Installed"
    }
  },
  {
    "current_version_string": null,
    "id": "alpha",
    "is_configuration": false,
    "is_hidden": false,
    "latest_version_string": "2022.12.05",
    "name": "gcloud Alpha Commands",
    "platform": {
      "architecture": {
        "file_name": "arm",
        "id": "arm",
        "name": "arm"
      },
      "operating_system": {
        "file_name": "darwin",
        "id": "MACOSX",
        "name": "Mac OS X"
      }
    },
    "platform_required": false,
    "size": 800,
    "state": {
      "name": "Not Installed"
    }
  },
  {
    "current_version_string": null,
    "id": "beta",
    "is_configuration": false,
    "is_hidden": false,
    "latest_version_string": "2022.12.05",
    "name": "gcloud Beta Commands",
    "platform": {
      "architecture": {
        "file_name": "arm",
        "id": "arm",
        "name": "arm"
      },
      "operating_system": {
        "file_name": "darwin",
        "id": "MACOSX",
        "name": "Mac OS X"
      }
    },
    "platform_required": false,
    "size": 797,
    "state": {
      "name": "Not Installed"
    }
  },
  {
    "current_version_string": null,
    "id": "app-engine-java",
    "is_configuration": false,
    "is_hidden": false,
    "latest_version_string": "2.0.10",
    "name": "gcloud app Java Extensions",
    "platform": {
      "architecture": {
        "file_name": "arm",
        "id": "arm",
        "name": "arm"
      },
      "operating_system": {
        "file_name": "darwin",
        "id": "MACOSX",
        "name": "Mac OS X"
      }
    },
    "platform_required": false,
    "size": 67002407,
    "state": {
      "name": "Not Installed"
    }
  },
  {
    "current_version_string": null,
    "id": "app-engine-php",
    "is_configuration": false,
    "is_hidden": false,
    "latest_version_string": "",
    "name": "gcloud app PHP Extensions",
    "platform": {
      "architecture": {
        "file_name": "arm",
        "id": "arm",
        "name": "arm"
      },
      "operating_system": {
        "file_name": "darwin",
        "id": "MACOSX",
        "name": "Mac OS X"
      }
    },
    "platform_required": false,
    "size": 22985548,
    "state": {
      "name": "Not Installed"
    }
  },
  {
    "current_version_string": null,
    "id": "app-engine-python",
    "is_configuration": false,
    "is_hidden": false,
    "latest_version_string": "1.9.101",
    "name": "gcloud app Python Extensions",
    "platform": {
      "architecture": {
        "file_name": "arm",
        "id": "arm",
        "name": "arm"
      },
      "operating_system": {
        "file_name": "darwin",
        "id": "MACOSX",
        "name": "Mac OS X"
      }
    },
    "platform_required": false,
    "size": 9044876,
    "state": {
      "name": "Not Installed"
    }
  },
  {
    "current_version_string": null,
    "id": "app-engine-python-extras",
    "is_configuration": false,
    "is_hidden": false,
    "latest_version_string": "1.9.96",
    "name": "gcloud app Python Extensions (Extra Libraries)",
    "platform": {
      "architecture": {
        "file_name": "arm",
        "id": "arm",
        "name": "arm"
      },
      "operating_system": {
        "file_name": "darwin",
        "id": "MACOSX",
        "name": "Mac OS X"
      }
    },
    "platform_required": false,
    "size": 27709995,
    "state": {
      "name": "Not Installed"
    }
  },
  {
    "current_version_string": null,
    "id": "gke-gcloud-auth-plugin",
    "is_configuration": false,
    "is_hidden": false,
    "latest_version_string": "0.4.0",
    "name": "gke-gcloud-auth-plugin",
    "platform": {
      "architecture": {
        "file_name": "arm",
        "id": "arm",
        "name": "arm"
      },
      "operating_system": {
        "file_name": "darwin",
        "id": "MACOSX",
        "name": "Mac OS X"
      }
    },
    "platform_required": false,
    "size": 7477444,
    "state": {
      "name": "Not Installed"
    }
  },
  {
    "current_version_string": null,
    "id": "kpt",
    "is_configuration": false,
    "is_hidden": false,
    "latest_version_string": "1.0.0-beta.19",
    "name": "kpt",
    "platform": {
      "architecture": {
        "file_name": "arm",
        "id": "arm",
        "name": "arm"
      },
      "operating_system": {
        "file_name": "darwin",
        "id": "MACOSX",
        "name": "Mac OS X"
      }
    },
    "platform_required": false,
    "size": 13340067,
    "state": {
      "name": "Not Installed"
    }
  },
  {
    "current_version_string": null,
    "id": "kubectl",
    "is_configuration": false,
    "is_hidden": false,
    "latest_version_string": "1.23.14",
    "name": "kubectl",
    "platform": {
      "architecture": {
        "file_name": "arm",
        "id": "arm",
[12/7/2022, 9:54:58 AM] 
        "name": "arm"
      },
      "operating_system": {
        "file_name": "darwin",
        "id": "MACOSX",
        "name": "Mac OS X"
      }
    },
    "platform_required": true,
    "size": 49360,
    "state": {
      "name": "Not Installed"
    }
  },
  {
    "current_version_string": null,
    "id": "kubectl-oidc",
    "is_configuration": false,
    "is_hidden": false,
    "latest_version_string": "1.4.4",
    "name": "kubectl-oidc",
    "platform": {
      "architecture": {
        "file_name": "arm",
        "id": "arm",
        "name": "arm"
      },
      "operating_system": {
        "file_name": "darwin",
        "id": "MACOSX",
        "name": "Mac OS X"
      }
    },
    "platform_required": false,
    "size": 20108100,
    "state": {
      "name": "Not Installed"
    }
  },
  {
    "current_version_string": null,
    "id": "pkg",
    "is_configuration": false,
    "is_hidden": false,
    "latest_version_string": "",
    "name": "pkg",
    "platform": {
      "architecture": {
        "file_name": "arm",
        "id": "arm",
        "name": "arm"
      },
      "operating_system": {
        "file_name": "darwin",
        "id": "MACOSX",
        "name": "Mac OS X"
      }
    },
    "platform_required": false,
    "size": 0,
    "state": {
      "name": "Not Installed"
    }
  },
  {
    "current_version_string": "2.0.83",
    "id": "bq",
    "is_configuration": false,
    "is_hidden": false,
    "latest_version_string": "2.0.83",
    "name": "BigQuery Command Line Tool",
    "platform": {
      "architecture": {
        "file_name": "arm",
        "id": "arm",
        "name": "arm"
      },
      "operating_system": {
        "file_name": "darwin",
        "id": "MACOSX",
        "name": "Mac OS X"
      }
    },
    "platform_required": false,
    "size": 1694761,
    "state": {
      "name": "Installed"
    }
  },
  {
    "current_version_string": "5.17",
    "id": "gsutil",
    "is_configuration": false,
    "is_hidden": false,
    "latest_version_string": "5.17",
    "name": "Cloud Storage Command Line Tool",
    "platform": {
      "architecture": {
        "file_name": "arm",
        "id": "arm",
        "name": "arm"
      },
      "operating_system": {
        "file_name": "darwin",
        "id": "MACOSX",
        "name": "Mac OS X"
      }
    },
    "platform_required": false,
    "size": 16292401,
    "state": {
      "name": "Installed"
    }
  },
  {
    "current_version_string": "2022.12.05",
    "id": "core",
    "is_configuration": false,
    "is_hidden": false,
    "latest_version_string": "2022.12.05",
    "name": "Google Cloud CLI Core Libraries",
    "platform": {
      "architecture": {
        "file_name": "arm",
        "id": "arm",
        "name": "arm"
      },
      "operating_system": {
        "file_name": "darwin",
        "id": "MACOSX",
        "name": "Mac OS X"
      }
    },
    "platform_required": false,
    "size": 27015219,
    "state": {
      "name": "Installed"
    }
  },
  {
    "current_version_string": "1.0.0",
    "id": "gcloud-crc32c",
    "is_configuration": false,
    "is_hidden": false,
    "latest_version_string": "1.0.0",
    "name": "Google Cloud CRC32C Hash Tool",
    "platform": {
      "architecture": {
        "file_name": "arm",
        "id": "arm",
        "name": "arm"
      },
      "operating_system": {
        "file_name": "darwin",
        "id": "MACOSX",
        "name": "Mac OS X"
      }
    },
    "platform_required": false,
    "size": 1201853,
    "state": {
      "name": "Installed"
    }
  }
]

[12/7/2022, 9:54:58 AM] 'gcloud components list --format json --quiet --verbosity warning' exited with code 0 took 853ms (managed)
[12/7/2022, 9:54:58 AM] Gcloud component list execution success. Result: [object Object]
[12/7/2022, 9:54:58 AM] Starting 'install' of gcloud components alpha, beta, gke-gcloud-auth-plugin, kubectl, skaffold, minikube, gsutil
[12/7/2022, 9:55:43 AM] 'install' of components alpha, beta, gke-gcloud-auth-plugin, kubectl, skaffold, minikube, gsutil done in 44220.96258299984ms.
[12/7/2022, 9:55:43 AM] Gcloud components installation succeeded in 44220.96258299984ms.
[12/7/2022, 9:55:43 AM] Dependency installer: Validating installation by calling gcloud version
[12/7/2022, 9:55:43 AM] Dependency installer: validity check failed with non-zero exit code 1, error 'ERROR: gcloud crashed (ValueError): Command type [CommandType.DESCRIBE] has already been registered.
,
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
'
[12/7/2022, 9:55:43 AM] Wiping managed dependency directory '/Users/travistaylor/Library/Application Support/cloud-code/installer'...
travisdoesmath commented 1 year ago

I was able to resolve the error by switching python versions from 3.11.0 to 3.10.6

pyenv install 3.10.6
pyenv global 3.10.6
SKrupa commented 1 year ago

It looks like Cloud SDK only supports 3.5-3.9: https://cloud.google.com/sdk/docs/install-sdk#mac We should add better error handling around this though so it's clear what versions are supported and how to remedy the issue.

travisdoesmath commented 1 year ago

Confusingly, I was able to install the Cloud SDK in the terminal with 3.11, but ran into this problem when installing the Cloud Code extension.

SKrupa commented 1 year ago

Interesting, we'll investigate what the root cause of this might be and see if we can get 3.11 working in cloud code if it's working in your regular terminal.