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.

Myst support: missing dependency on mdit-py-plugins?

See original GitHub issue

Hello!

I just made a fresh installation of jupytext via conda-forge. Loading a myst document in jupyter raised an error:

ImportError: The MyST Markdown format requires python >= 3.6 and markdown-it-py~=1.0

However markdown-it-py is there:

mamba list
jupytext                  1.11.3             pyh6c4a22f_0    conda-forge
markdown-it-py            1.1.0              pyhd8ed1ab_0    conda-forge

Running the debugger, I noticed that it was actually the import of mdit-py-plugins that failed. After installing it with:

mamba install mdit-py-plugins

everything is fine.

Is mdit-py-plugins missing from the dependencies list of jupytext or of markdown-it-py?

Btw: the error message suggests version ~=1.0 of markdown-it-py; should it be >=1.0? 1.1 seems to work fine.

Thanks in advance!

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:6 (5 by maintainers)

github_iconTop GitHub Comments

1reaction
nthierycommented, Jun 17, 2021

Confirmed here! Thanks a lot for the quick fix!

0reactions
mwoutscommented, Jun 20, 2021

You’re welcome. Thanks for the confirmation!

Read more comments on GitHub >

github_iconTop Results From Across the Web

Issue with jupyter-book 0.11 and pip-compile #1351 - GitHub
I traced myst-parser back to 0.13.7 and it pins mdit-py-plugins to 0.2.5. Exactly and that works fine with markdown-it-py v0.6 ...
Read more >
Changelog - MyST-Parser - Read the Docs
MyST -Parser now supports, and is tested against, Python 3.7 to 3.10. ... Additionally, mdit-py-plugins has been upgraded to v0.3.0.
Read more >
mdit-py-plugins - PyPI
Collection of plugins for markdown-it-py.
Read more >
1960583 – Review Request: python-myst-parser - Markdown ...
MyST allows you to write Sphinx documentation entirely in markdown. ... It is dependent on python-markdown-it-py and python-mdit-py-plugins ...
Read more >
3. How to package a Python
The minimum version of Python your package will support. ... At the time of writing, one of the dependencies of myst-nb , mdit-py-plugins...
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