Hello,

I understand that you want to use the dev_appserver to test your 
application but you receive an error that version 3.8 of python is not 
found.

I have found a thread in Stackoverflow with the same question and you 
proposed information here 
<https://stackoverflow.com/questions/65689429/dev-appserver-py-says-unknown-runtime-python38>
.

I believe that Stackoverflow is the correct forum that you chose and all 
future interactions will be done in that thread.

But for best practices since Google Groups is meant for general 
discussions, I would suggest from this document 
<https://cloud.google.com/appengine/docs/standard/python3/testing-and-deploying-your-app>
:

To test your application's functionality before deploying, run your 
application in your local environment with the development tools that you 
usually use. We recommend that you use standard Python tools, such as 
virtualenv to create isolated environments and pytest to run unit tests and 
integration tests, rather than depending on dev_appserver, the local 
development server provided with the Google Cloud SDK.

On Wednesday, January 13, 2021 at 11:32:16 AM UTC-5 Boro wrote:

> I'm trying to upgrade the GAE runtime on several python projects from 
> python37 to python38.
> I've used dev_appserver.py to test the apps locally before we deploy but 
> I'm getting an unknown runtime error after changing the runtime to 
> python38. Python 3.8 should be a supported runtime according to the appengine 
> docs 
> <https://cloud.google.com/appengine/docs/standard/python3/configuring-your-app-with-app-yaml>
> .
>
> I've also updated all gcloud cli components to the latest version. Is this 
> just something that's been changed/deprecated and I'm just not aware of it? 
> or is it actually a bug and missing from the `dev_appserver.py` tool?
>
> Any help would be appreciated! :)
>
>
> ```
> RuntimeError: Unknown runtime 'python38'; supported runtimes are 'custom', 
> 'go', 'go111', 'java', 'java7', 'java8', 'php55', 'php72', 'python', 
> 'python-compat', 
> 'python27', 'python37'.
> ```
>
>
> Full traceback:
>
> ```
> Traceback (most recent call last):
>   File "/mnt/c/Users/Admin/AppData/Local/Google/Cloud 
> SDK/google-cloud-sdk/platform/google_appengine/dev_appserver.py", line 96, 
> in <module>
>     _run_file(__file__, globals())
>   File "/mnt/c/Users/Admin/AppData/Local/Google/Cloud 
> SDK/google-cloud-sdk/platform/google_appengine/dev_appserver.py", line 90, 
> in _run_file
>     execfile(_PATHS.script_file(script_name), globals_)
>   File "/mnt/c/Users/Admin/AppData/Local/Google/Cloud 
> SDK/google-cloud-sdk/platform/google_appengine/google/appengine/tools/devappserver2/devappserver2.py",
>  
> line 613, in <module>
>     main()
>   File "/mnt/c/Users/Admin/AppData/Local/Google/Cloud 
> SDK/google-cloud-sdk/platform/google_appengine/google/appengine/tools/devappserver2/devappserver2.py",
>  
> line 601, in main
>     dev_server.start(options)
>   File "/mnt/c/Users/Admin/AppData/Local/Google/Cloud 
> SDK/google-cloud-sdk/platform/google_appengine/google/appengine/tools/devappserver2/devappserver2.py",
>  
> line 373, in start
>     options.api_host, apiserver.port, wsgi_request_info_)
>   File "/mnt/c/Users/Admin/AppData/Local/Google/Cloud 
> SDK/google-cloud-sdk/platform/google_appengine/google/appengine/tools/devappserver2/dispatcher.py",
>  
> line 259, in start
>     ssl_port)
>   File "/mnt/c/Users/Admin/AppData/Local/Google/Cloud 
> SDK/google-cloud-sdk/platform/google_appengine/google/appengine/tools/devappserver2/dispatcher.py",
>  
> line 396, in _create_module
>     ssl_port=ssl_port)
>   File "/mnt/c/Users/Admin/AppData/Local/Google/Cloud 
> SDK/google-cloud-sdk/platform/google_appengine/google/appengine/tools/devappserver2/module.py",
>  
> line 1313, 
> in __init__
>     super(AutoScalingModule, self).__init__(**kwargs)
>   File "/mnt/c/Users/Admin/AppData/Local/Google/Cloud 
> SDK/google-cloud-sdk/platform/google_appengine/google/appengine/tools/devappserver2/module.py",
>  
> line 599, in __init__
>     self._module_configuration)
>   File "/mnt/c/Users/Admin/AppData/Local/Google/Cloud 
> SDK/google-cloud-sdk/platform/google_appengine/google/appengine/tools/devappserver2/module.py",
>  
> line 226, in _create_instance_factory
>     sorted(repr(k) for k in runtime_factories.FACTORIES))))
> RuntimeError: Unknown runtime 'python38'; supported runtimes are 'custom', 
> 'go', 'go111', 'java', 'java7', 'java8', 'php55', 'php72', 'python', 
> 'python-compat', 
> 'python27', 'python37'.
> ```
>

-- 
You received this message because you are subscribed to the Google Groups 
"Google App Engine" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/google-appengine/3838d7f4-1ab1-48a6-8840-a6700c4161c9n%40googlegroups.com.

Reply via email to