Asyncio NotImplemented Error with Python 3.8 and Windows
See original GitHub issueAs explained in tornadoweb/tornado#2608, the default behavior in Python 3.8 has changed and we get an error on Windows only:
>livereload site
[I 191026 22:40:22 server:296] Serving on http://127.0.0.1:35729
Traceback (most recent call last):
File "c:\program files\python38\lib\runpy.py", line 192, in _run_module_as_main
return _run_code(code, main_globals, None,
File "c:\program files\python38\lib\runpy.py", line 85, in _run_code
exec(code, run_globals)
File "C:\Program Files\Python38\Scripts\livereload.exe\__main__.py", line 7, in <module>
File "c:\program files\python38\lib\site-packages\livereload\cli.py", line 60, in main
server.serve(host=args.host, port=args.port, root=args.directory,
File "c:\program files\python38\lib\site-packages\livereload\server.py", line 298, in serve
self.application(
File "c:\program files\python38\lib\site-packages\livereload\server.py", line 253, in application
app.listen(port, address=host)
File "c:\program files\python38\lib\site-packages\tornado\web.py", line 2112, in listen
server.listen(port, address)
File "c:\program files\python38\lib\site-packages\tornado\tcpserver.py", line 152, in listen
self.add_sockets(sockets)
File "c:\program files\python38\lib\site-packages\tornado\tcpserver.py", line 165, in add_sockets
self._handlers[sock.fileno()] = add_accept_handler(
File "c:\program files\python38\lib\site-packages\tornado\netutil.py", line 279, in add_accept_handler
io_loop.add_handler(sock, accept_handler, IOLoop.READ)
File "c:\program files\python38\lib\site-packages\tornado\platform\asyncio.py", line 99, in add_handler
self.asyncio_loop.add_reader(fd, self._handle_events, fd, IOLoop.READ)
File "c:\program files\python38\lib\asyncio\events.py", line 501, in add_reader
raise NotImplementedError
NotImplementedError
It appears that Tornado is not going to override the default themselves, but instead expect applications using Tornado to override the default. In other words, Tornado expects Python-Livereload to set this itself.
Of course users of Python-Livereload who are calling the lib programmatically through Python code can just do the override themselves. However, anyone using the command line tool will need Python-Livereload to address this for them. Therefore, my question is: will Python-Livereload be addressing this for all users or only the command line tool?
Issue Analytics
- State:
- Created 4 years ago
- Reactions:4
- Comments:7 (2 by maintainers)
Top Results From Across the Web
Asyncio NotImplemented Error after Python 3.8.0 #1885 - GitHub
I tried again on a new docs directory ( mkdocs new testing ), but encountered the same issue again. Python version: 3.8.0. OS:...
Read more >Asyncio NotImplementedError for events - Stack Overflow
python 3.8 windows OS 10 Django 3.0. I have upgraded to python 3.8 from 3.6.8 but when I started my django project I...
Read more >Docs won't build on Windows on python>=3.8 (#182) · Issues
_handle_events(0, 0)) File "C:\Users\Diogo\.conda\envs\q38\lib\asyncio\events.py", line 501, in add_reader raise NotImplementedError ...
Read more >Platform Support — Python 3.11.1 documentation
The asyncio module is designed to be portable, but some platforms have subtle differences and limitations due to the platforms' underlying architecture and ......
Read more >NotImplementedError when installing Jupyter Notebook on ...
If you try to install Jupyter notebook under Windows and Python 3.8, it will install without any warning, as if everything were OK....
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Closing this, new release on pypi fixes this issue.
Could we get a response on this? At a minimum, what is the plan? As the developer of a third party tool which calls Python-Livereload through the Python API, should I be addressing this myself, or will you be addressing it?