Python3 Tornado in Windows

Alessandro
Jun 9, 2021

This all starts with the best intentions… you install python 3, the tornado libraries follow, and finally once you complete your first tornado web application and test it you get the following:

what is this error?? or so you say…

Well then to fix this issue you need to do the following:

Seems like the later version of tornado, in windows only, have a missing implementation error on the event loop policy. So you need to add the win32 if statement and import the sys library to your asyncio.py file located in the following folder: <installation path>\Python38\Lib\site-packages\tornado\platform

Now you should be set ;-)

--

--

Alessandro

Full mobile stack developer, researcher, simulation software developer, and parent.