
Hi, I’m trying to build the Sphinx Documentation locally. Everything works fine until I serve it. I get an NotImplementedError because of asyncio. After googling this, I found out that there have been some changes made to tornado due to which this error is thrown. I got a fix by including this in the “docserver.py” -
import asyncio
if sys.platform == ‘win32’:
asyncio.set_event_loop_policy(asyncio.WindowsSelectorEventLoopPolicy())
This stops the error from occuring and the server works fine, but it gives a 404 for the all routes with “en/latest/filename” which contain the actual documentation. I am unable to solve this issue. Could someone help me out?
PS : Looks like this might be Windows Specific because of asyncio
Asyncio Issue : python 3.8 changes default asyncio loop on windows https://bugs.python.org/issue37373 · Issue #2751 · tornadoweb/tornado · GitHub
Python Version : 3.8.2

