Cannot build docs - ModuleNotFoundError: 'myst_nb.parser'
See original GitHub issueI’m trying to build the hvplot docs with nbsite build --what=html --output=builtdocs --org holoviz --project-name hvplot
and getting the following:
Configuration error:
There is a programmable error in your configuration file:
Traceback (most recent call last):
File "...miniconda3/envs/my_dev_env/lib/python3.9/site-packages/sphinx/config.py", line 347, in eval_config_file
exec(code, namespace)
File "...hvplot/doc/conf.py", line 6, in <module>
from nbsite.shared_conf import *
File "...miniconda3/envs/my_dev_env/lib/python3.9/site-packages/nbsite/shared_conf.py", line 9, in <module>
from nbsite import nbbuild
File "...miniconda3/envs/my_dev_env/lib/python3.9/site-packages/nbsite/nbbuild.py", line 37, in <module>
from myst_nb.parser import nb_to_tokens, nb_output_to_disc, tokens_to_docutils
ModuleNotFoundError: No module named 'myst_nb.parser'
I’m using: myst-nb version 0.17.1 nbsite version 0.7.2a14
Issue Analytics
- State:
- Created 10 months ago
- Comments:5 (5 by maintainers)
Top Results From Across the Web
0.17.1: sphinx fails because it cannot find myst_parser module ...
Describe the bug context I'm trying to build MyST-Parser documentation. ... import __version__ ModuleNotFoundError: No module named 'myst_parser' The above ...
Read more >myst-parser — sphinx-extensions 0.1 documentation
myst -parser is a Markdown parser ( . md files) that allows you to combine all the power of Markdown with all the...
Read more >How to import Markdown with Sphinx and myst-parser into ...
I solved it. I checked the build logs, turns out I have some syntax errors (I did list[str] not List[str] with from typing...
Read more >myst-parser - PyPI
This repository serves as the reference implementation of MyST Markdown, as well as a collection of tools to support working with MyST in...
Read more >Sphinx and Markdown — Code documentation documentation
We will take the first steps in creating documentation using Sphinx, and learn some MyST flavored Markdown syntax along the way. Our goal...
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 in favor of https://github.com/holoviz/hvplot/issues/1004 and https://github.com/holoviz/hvplot/issues/1003
I don’t have a M1 (yet). Last time I tried to get the thumbnails to be created, I remember it was a pain 😕 This is one very good reason why I’d like us to generate thumbnails for the galleries across HoloViz, to make it simpler to build the sites (and additionally that should make the gallery look better…).
If you want to install geckodriver, maybe you can try with brew? Or using x86 conda envs may work, I think Philipp and Jean-Luc have played around with that.
Better starting from hvPlot’s
docs.yaml
instead of Panel, the install commands aren’t necessarily consistent across the repos.Some more explanation on the conda dance below:
~/.condarc
file. You can restore it withconda config --append channels defaults
(assuming you only have one channel there, if you have more, you’ll have to remember how they were ordered).conda install/create
calls don’t need to specify what channels they need, they get it from the configuration. It’s sad I have to remove defaults from the global config but I really found no way to configure an environment so that it doesn’t use defaults. There may be a better way, maybe what I’ll suggest instead is to update pyctdev so that it uses--override-channels
all the time, making sure no other user-defined channel is used.