Hello,

According 
to 
https://cloud.google.com/appengine/docs/flexible/python/customizing-the-python-runtime#selecting_the_python_version
I can tell virtualenv to use Python 3.5, but this doesn't seem to take 
effect after a gcloud deploy, judging by the stack trace.

Two tell-tale signs: "python2.7" in the trace, and failing on a 
Python3-style print statement ("SyntaxError: invalid syntax" in logs)

File "/home/vmagent/app/api/app.py", line 32: print('xxx', flush=True)

at import_app (/env/local/lib/python2.7/site-packages/gunicorn/util.py:352 
<https://console.cloud.google.com/debug/fromlog?appModule=default&appVersion=20170823t152809&file=%2Fenv%2Flocal%2Flib%2Fpython2.7%2Fsite-packages%2Fgunicorn%2Futil.py&line=352&project=pdfcrunch-20170821&authuser=1>
)
at load_wsgiapp (/env/local/lib/python2.7/site-packages/gunicorn/app/wsgiapp
.py:52 
<https://console.cloud.google.com/debug/fromlog?appModule=default&appVersion=20170823t152809&file=%2Fenv%2Flocal%2Flib%2Fpython2.7%2Fsite-packages%2Fgunicorn%2Fapp%2Fwsgiapp.py&line=52&project=pdfcrunch-20170821&authuser=1>
)
at load (/env/local/lib/python2.7/site-packages/gunicorn/app/wsgiapp.py:65 
<https://console.cloud.google.com/debug/fromlog?appModule=default&appVersion=20170823t152809&file=%2Fenv%2Flocal%2Flib%2Fpython2.7%2Fsite-packages%2Fgunicorn%2Fapp%2Fwsgiapp.py&line=65&project=pdfcrunch-20170821&authuser=1>
)
at wsgi (/env/local/lib/python2.7/site-packages/gunicorn/app/base.py:67 
<https://console.cloud.google.com/debug/fromlog?appModule=default&appVersion=20170823t152809&file=%2Fenv%2Flocal%2Flib%2Fpython2.7%2Fsite-packages%2Fgunicorn%2Fapp%2Fbase.py&line=67&project=pdfcrunch-20170821&authuser=1>
)
at load_wsgi (/env/local/lib/python2.7/site-packages/gunicorn/workers/base.
py:135 
<https://console.cloud.google.com/debug/fromlog?appModule=default&appVersion=20170823t152809&file=%2Fenv%2Flocal%2Flib%2Fpython2.7%2Fsite-packages%2Fgunicorn%2Fworkers%2Fbase.py&line=135&project=pdfcrunch-20170821&authuser=1>
)


What is the work-around? Is an old Docker layer being cached? How to 
force/clean it?

Thanks!

-- 
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 post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/google-appengine.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/google-appengine/dd493fd9-cdcc-458b-8e8d-ed6732043822%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to