I have a Flask application that uses "asyncio" and using Python Web App deployment. It runs locally within docker with no issues.
After deploying the applications, it refuses to start with an "invalid syntax" error within the standard "asyncio" library.
This happens with either of the Python 3.7 or 3.8 containers.
Error output (example):
<log cut for brevity>
2021-01-13T17:22:33.533861769Z File "/antenv/lib/python3.7/site-packages/asyncio/init.py", line 21, in <module>
2021-01-13T17:22:33.533865470Z from .base_events import *
2021-01-13T17:22:33.533869570Z File "/antenv/lib/python3.7/site-packages/asyncio/base_events.py", line 296
2021-01-13T17:22:33.533873370Z future = tasks.async(future, loop=self)
2021-01-13T17:22:33.533876770Z ^
2021-01-13T17:22:33.533880170Z SyntaxError: invalid syntax
Any suggestions on why this runs fine in local docker but not on the deployed container?
][1]