Skip to content
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

Sphinx error when myst_parser is combined with myst_nb #962

Open
padix-key opened this issue Aug 15, 2024 · 2 comments
Open

Sphinx error when myst_parser is combined with myst_nb #962

padix-key opened this issue Aug 15, 2024 · 2 comments
Labels
bug Something isn't working

Comments

@padix-key
Copy link

What version of myst-parser are you using?

4.0.0

What version dependencies are you using?

sphinx 7.4.7
docutils 0.21.2
myst-nb 1.1.1

What operating system are you using?

Mac

Describe the Bug

When I run sphinx_build with both myst_parser and myst_nb I get the following error.
This does not happen with myst_parser only enabled.

File ".../python3.10/site-packages/myst_parser/sphinx_ext/main.py", line 49, in setup_sphinx
    app.registry.transforms.remove(SphinxUnreferencedFootnotesDetector)
ValueError: list.remove(x): x not in list

Expected Behavior

No response

To Reproduce

No response

@padix-key padix-key added the bug Something isn't working label Aug 15, 2024
@iso2013
Copy link

iso2013 commented Aug 20, 2024

Based on the Jupyter Book configuration, it seems like you're only meant to enable myst_nb, not both myst_parser and myst_md. Does this issue occur with just myst_nb listed in the extensions?

@padix-key
Copy link
Author

No, then it works, thanks. However, I would prefer a more meaningful exception, as I assume that this mistake might be common.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants