jupyter-book build: NotImplementedError on Windows Python 3.8
See original GitHub issueMaintainer Edit:
This issue is related to jupyter/nbclient#85
So it looks like, for now on Windows, you need to use Python 3.7.
Describe the bug
I am following the tutorial set-up https://jupyterbook.org/start/build.html
In the second step it says use jupyter-book build mybookname
to build the book - i get an error.
Here is an error: File "C:\Program Files\Python38\lib\asyncio\events.py", line 501, in add_reader raise NotImplementedError NotImplementedError
Here is a screenshot of my terminal:
To Reproduce
Steps to reproduce the behavior:
pip install -U jupyter-book
jupyter-book create mybookname
jupyter-book build mybookname
Issue Analytics
- State:
- Created 3 years ago
- Reactions:5
- Comments:67 (31 by maintainers)
Top Results From Across the Web
Jupyter Notebook with Python 3.8 - NotImplementedError
EDIT. This issue exists in older versions of Jupyter Notebook and was fixed in version 6.0.3 (released 2020-01-21).
Read more >Working on Windows
If you're running a recent version of Windows 10 and would like to build with Python 3.8 or encounter issues not covered in...
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 >Overview — Data Science Study - GitHub Pages
Jupyter Book is now also tested against Windows OS. However, there is a known incompatibility for notebook execution when using Python 3.8.
Read more >book.pdf
easier if you install the Windows Subsystem for Linux (WSL) which will ... ˜/Documents/codebook$ conda create --name codebook python=3.8.
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
@chrisjsewell (I hope you’re the right person to tag) this seems to be fixed now from Tornado==6.1 and pyzmq==22.1.0 From cpython 3.8, ayncio changed the default eventloop and it basically broke Tornado. Their 6.1 release finally fixed that. I am able to successfully build a book using cpython 3.9 and jbook 0.12.1 using these dependency versions.
What docs/build steps/requirements would need to be updated to confirm/inform about this fix? here and here are the most obvious. Probably pin these versions in the setup.cfg? How does the CI work? does it do any automated windows testing?
For anyone that stumbles on to this and is looking for the fix, here is what worked:
Description of what the steps above:
I am not 100% sure uninstalling and reinstalling jupyter-book is necessary, but after it worked, I wasn’t going to touch it again!