question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Cannot build docs - ModuleNotFoundError: 'myst_nb.parser'

See original GitHub issue

I’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:closed
  • Created 10 months ago
  • Comments:5 (5 by maintainers)

github_iconTop GitHub Comments

0reactions
maximltcommented, Nov 30, 2022

have you tried to build thumbnails recently on your M1?

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.

Starting from scratch with inspiration from the panel docs.yaml:

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:

  • the first line is actually pretty dangerous to run as a user I think, as it’s going to remove the defaults channel from your ~/.condarc file. You can restore it with conda config --append channels defaults (assuming you only have one channel there, if you have more, you’ll have to remember how they were ordered).
  • I’ve converged to doing stuff like that to set explicitly the channels, that really helps conda to solve and the subsequent 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.
conda config --remove channels defaults
conda config --env --remove channels defaults
conda config --env --append channels pyviz/label/dev --append channels conda-forge
Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found