You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Fail run on windows using SDK 470.0.0 with pyhton 39 #3
Install Python39 con Path C:\python39 (Version 3.9.13)
Install Python39 con Path C:\python27 (Version 2.7.18)
Install Google SDK with version Google Cloud SDK 470.0.0, app-engine-python 1.9.111
Download your copy of the file from the 'src' folder and overwrite the original file
Set CLOUDSDK_DEVAPPSERVER_PYTHON with python 2 Path, using set CLOUDSDK_DEVAPPSERVER_PYTHON=C:\Python27\python.exe
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?
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.
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.
Activity
NoCommandLine commentedon Mar 31, 2024
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.0on my windows machine and the patch works on it. I think someone said they're onv431.0.0and 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.
NoCommandLine commentedon Apr 2, 2024
A new version of the patch to support
gcloud SDK v470.0.0is now available here.There is a known issue with the
-python_virtualenv_pathflag. 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.