virtualenv python3 selection not taking effect in container

30 views
Skip to first unread message

Juan Uys

unread,
Aug 23, 2017, 12:23:08 PM8/23/17
to Google App Engine

Hello,

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)



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

Thanks!

Juan Uys

unread,
Aug 23, 2017, 12:45:51 PM8/23/17
to Google App Engine
Turns out the dropdown for the version in the log viewer was on a previous version, and it does in fact now use py3.6

Yannick (Cloud Platform Support)

unread,
Aug 23, 2017, 1:05:00 PM8/23/17
to Google App Engine
Glad to hear you've resolved your issue. If in the future you come across some some behavior that looks like an issue with the platform, you can report it using our issue tracker.

Juan Uys

unread,
Aug 24, 2017, 6:47:28 AM8/24/17
to Google App Engine
Thanks, Yannick. I've now learnt a new behaviour where I check the version drop-downs whenever I do anything on the console.

Perhaps the UI can flag a "(!) there's a more recent version", at least for newcomers.


On Wednesday, 23 August 2017 17:23:08 UTC+1, Juan Uys wrote:
Reply all
Reply to author
Forward
0 new messages