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 ;-)

Sign up to discover human stories that deepen your understanding of the world.

Free

Distraction-free reading. No ads.

Organize your knowledge with lists and highlights.

Tell your story. Find your audience.

Membership

Read member-only stories

Support writers you read most

Earn money for your writing

Listen to audio narrations

Read offline with the Medium app

Alessandro
Alessandro

Written by Alessandro

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

No responses yet

Write a response