runtime_config:
python_version: 3.5
Traceback (most recent call last):
File "/env/lib/python3.6/site-packages/google/auth/transport/requests.py", line 120, in __call__
**kwargs)
File "/env/lib/python3.6/site-packages/requests/sessions.py", line 512, in request
resp = self.send(prep, **send_kwargs)
File "/env/lib/python3.6/site-packages/requests/sessions.py", line 622, in send
r = adapter.send(request, **kwargs)
File "/env/lib/python3.6/site-packages/requests/adapters.py", line 513, in send
raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPConnectionPool(host='metadata.google.internal', port=80): Max retries exceeded with url: /computeMetadata/v1/instance/service-accounts/default/?recursive=true (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7fd48226c4a8>: Failed to establish a new connection: [Errno 111] Connection refused',))
Please would it be possible to update the app.yaml file with the following information and see what is the behavior.
App.yaml
----------------------
#[START RUNTIME]
runtime: python
env: flex
entrypoint: gunicorn -b :$PORT mysite.wsgi
runtime_config:
python_version: 3
#[END RUNTIME]
Please check the following sample django documentation and cross reference the app.yaml in your environment.
Also, it would be really helpful it you could also check the following documentation to configure the app.yaml with version 3 for runtime configuration.
https://cloud.google.com/appengine/docs/flexible/python/runtime
Another possibility is to try and deploy the file in a different location with two versions for run-time interpreter, version 3 and 3.5, see which one is actually working for you. Thanks.
python_version: 3"
in app.yaml file, then the runtime config uses python3.6 by default. I specifically want it to use python3.5.5 and not python3.6.