Skip to content

Commit

Permalink
Now we can see the actual error:
Browse files Browse the repository at this point in the history
This is happening because m2r2 depends on mistune, but mistune 3.0+ removed the BlockGrammar class. Let's pin both mistune and m2r2 to compatible versions:
requirements.txt
Key changes:
Added mistune<3.0 to use a version that still has the BlockGrammar class
Kept other version pins the same
Reordered requirements to ensure mistune is installed before m2r2
This combination should resolve the dependency chain:
sphinx < 7.0 (for docutils compatibility)
docutils == 0.16 (for reprunicode)
mistune < 3.0 (for BlockGrammar)
m2r2 == 0.2.7 (known working version)
  • Loading branch information
endolith committed Nov 18, 2024
1 parent 491dc1a commit e887d42
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion docs/requirements.txt
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
sphinx<7.0
docutils==0.16
mistune<3.0
m2r2==0.2.7
-e .
numpydoc
m2r2==0.2.7
sphinxcontrib.mermaid
sphinx_rtd_theme<1.0
sphinxcontrib-apidoc

0 comments on commit e887d42

Please sign in to comment.