Skip to content

Fail run on windows using SDK 470.0.0 with pyhton 39 #3

Closed

Description

@mavalarbe

From CMD i'm trying this:

  1. Install Python39 con Path C:\python39 (Version 3.9.13)
  2. Install Python39 con Path C:\python27 (Version 2.7.18)
  3. Install Google SDK with version Google Cloud SDK 470.0.0, app-engine-python 1.9.111
  4. Download your copy of the file from the 'src' folder and overwrite the original file
  5. Set CLOUDSDK_DEVAPPSERVER_PYTHON with python 2 Path, using set CLOUDSDK_DEVAPPSERVER_PYTHON=C:\Python27\python.exe
  6. try run dev_appserver usign a simple hello_world example, using dev_appserver.py app.yaml

When i tried this its generate the next exception:

Traceback (most recent call last):
File "C:\CloudSDK\google-cloud-sdk\bin\dev_appserver.py", line 13, in
from bootstrapping import bootstrapping
File "C:\CloudSDK\google-cloud-sdk\bin\bootstrapping\bootstrapping.py", line 24, in
from . import setup # pylint:disable=g-import-not-at-top
File "C:\CloudSDK\google-cloud-sdk\bin\bootstrapping\setup.py", line 57, in
from googlecloudsdk.core.util import platforms
File "C:\CloudSDK\google-cloud-sdk\lib\googlecloudsdk_init_.py", line 23, in
import importlib.util
ImportError: No module named util

I Searched this and found that it's cause the version of python, but i'm not sure how to deal with that, can someone help me?

Activity

  1. NoCommandLine commented on Mar 31, 2024

    @NoCommandLine
    Owner

    Hi,

    Some breaking changes have been introduced into the newer versions of gcloud SDK. I'm yet to upgrade the patch to work with these newer versions (currently working on it, & hope to get it done in April).

    I have gcloud SDK v429.0.0 on my windows machine and the patch works on it. I think someone said they're on v431.0.0 and it works for them (see this).

    So, you can either wait for the updated patch or downgrade to one of the mentioned gcloud SDK versions.

  2. NoCommandLine commented on Apr 2, 2024

    @NoCommandLine
    Owner

    A new version of the patch to support gcloud SDK v470.0.0 is now available here.

    There is a known issue with the -python_virtualenv_path flag. When you use the flag, it gives an error on subsequent runs of your App (there's a permission denied error on the specified -python_virtualenv_path). The solution for now is to not use the flag until I come up with a fix for it.

  3. self-assigned this
    on Apr 2, 2024
  4. pinned this issue on Apr 2, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions