Skip to content

Cannot use gcloud commands after installing the extension in vscode #1066

@devisandireddy

Description

@devisandireddy

Environment:
(Hint: "Report Extension Issue on Github" command will fill these out for you.)

Version information

Cloud Code Extension version:

VSCode version:1.99.3

OS:

Cloud SDK:2.29.0

Skaffold:

Kubectl:

Description:
Installed Cloud code using extension. Cannot run the commands of gcloud in the vscode terminal. I was able to run this in an terminal outside vscode on the mac.

Repro step:
gcloud init
ERROR: gcloud failed to load. This usually indicates corruption in your gcloud installation or problems with your Python interpreter.

Please verify that the following is the path to a working Python 3.8-3.13 executable:
/usr/local/bin/python3

If it is not, please set the CLOUDSDK_PYTHON environment variable to point to a working Python executable.

If you are still experiencing problems, please reinstall the Google Cloud CLI using the instructions here:
https://cloud.google.com/sdk/docs/install

Traceback (most recent call last):
File "/Users/devisandireddy/Library/Application Support/cloud-code/installer/google-cloud-sdk/lib/gcloud.py", line 110, in gcloud_exception_handler
yield
File "/Users/devisandireddy/Library/Application Support/cloud-code/installer/google-cloud-sdk/lib/gcloud.py", line 172, in main
from googlecloudsdk.core.util import encoding
File "/Users/devisandireddy/Library/Application Support/cloud-code/installer/google-cloud-sdk/lib/googlecloudsdk/core/util/encoding.py", line 25, in
import six
ModuleNotFoundError: No module named 'six'

Metadata

Metadata

Assignees

No one assigned

    Labels

    questionFurther information is requested

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions