-
-
Notifications
You must be signed in to change notification settings - Fork 2.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Asyncio NotImplemented Error after Python 3.8.0 #1885
Comments
Thanks for the report. This appears to be related to tornadoweb/tornado#2608. I'm assuming this will need to be fixed by lepture/python-livereload. However, I don't see any reports there yet and I don't have a way to test this on Windows myself. If anyone can confirm this error exists in plain python-livereload on Windows, please report this upstream to that project. We will determine how to proceed based on that. |
+1 |
As a test could someone who is getting the error confirm that the error also occurs when running these commands:
That runs livereload directly without MkDocs light wrapper. My expectation is that the error will also occur there. If it does, the error needs to be reported upstream to that project to be fixed. If it does not occur there, then we will fix it in MkDocs. |
Python version:
mkdocs build command
livereload site command
|
@SaDiablo thanks for the update. I have used your error message to report the issue upstream to lepture/python-livereload#209. When we get a response there, it will inform us how to proceed here. |
It happened the same to me once I updated the pip version using Chocolatey
OS: Windows 10 v1903
When running the
|
Yes, we know it is a problem. However, the problem is upstream and we can only wait for it to be fixed there. Adding "me too" reports will not change that. |
If you have PHP installed, then you can build and then serve
If you made any change then open a new cmd and rebuild
|
I just noticed lepture/python-livereload includes the text "MAINTAINERS NEEDED" in the Project Description at the top of the page. Given that no response has been made even if just to answer the question of how Python-Livereload plans to move forward, I think we will need to provide our own solution. However, it should be done in such a way that any upstream fix won't create a problem. |
As of Python 3.8, the default event loop on Windows is `proactor`, however Tornado requires the old default "selector" event loop. As Tornado has decided to leave this to users to set, MkDocs needs to set it. See tornadoweb/tornado#2608. Fixes mkdocs#1885.
I just pushed a fix to #1922, However, I do not have a system available to test this on. Any feed back from someone who has experienced the error would be helpful. |
As of Python 3.8, the default event loop on Windows is `proactor`, however Tornado requires the old default "selector" event loop. As Tornado has decided to leave this to users to set, MkDocs needs to set it. See tornadoweb/tornado#2608. Fixes mkdocs#1885.
This fix seems to workI experienced the issue too and patched cf2b136 as my I hope I'm doing this right as I'm just starting to use mkdocs or github. |
@fendttobias thanks for the feedback. Due to the nature of the issue, the only way it could be working is if you applied the patch correctly. That is very helpful. |
As of Python 3.8, the default event loop on Windows is `proactor`, however Tornado requires the old default "selector" event loop. As Tornado has decided to leave this to users to set, MkDocs needs to set it. See tornadoweb/tornado#2608. Fixes #1885.
I am facing the original problem of |
@root-ansh the patch has been applied to the master branch here on Github and will be included in the next release. If you want to apply the patch manually, then you will need to modify the source code by applying the changes in 2172c9f before installing it. |
Thanks for explaining, @waylan . When can we expect the next release? |
MkDocs is developed by volunteers in our spare time. Therefore it is impossible to provide a timeline. The best I can say it that the next release will be released when it is ready. If you would like to help move things along, the 1.1 milestone provides a list of items which need to be resolved before the release is made. |
…do work with windows 10 and up import asyncio if sys.platform == 'win32': asyncio.set_event_loop_policy(asyncio.WindowsSelectorEventLoopPolicy())
Confirmed. I am on Windows 10 1809 and I used source code from 2172c9f to edit serve.py. After restarting vscode and running mkdocs serve command I'm able to browse site on localhost:8000. Thank you mkdocs team for providing a fix. |
I get this error when try to run streamlit on Windows 10 using Python 3.9:
Find a solution to myself refer to Jupyter Notebook with Python 3.8 - NotImplementedError on similar question.
|
Using a new install of Python 3.8.0, pip installed latest version of MkDocs, and then tried to run
mkdocs serve
, which encountered the below error.I tried again on a new docs directory (
mkdocs new testing
), but encountered the same issue again.Python version: 3.8.0
OS: Windows 10 Pro v1709
error:
The text was updated successfully, but these errors were encountered: