danielfrg / mkdocs-jupyter

Use Jupyter Notebook in mkdocs
https://mkdocs-jupyter.danielfrg.com
Apache License 2.0
402 stars 49 forks source link

Compatibility Issue: Plugin Breaks with MkDocs Version 1.6.0 Due to Missing Module #200

Closed matanco64 closed 4 months ago

matanco64 commented 6 months ago

When trying to use the plugin after installing Version 1.6.0 of MkDocs, I'm getting:

           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "<frozen importlib._bootstrap>", line 1204, in _gcd_import
  File "<frozen importlib._bootstrap>", line 1176, in _find_and_load
  File "<frozen importlib._bootstrap>", line 1147, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 690, in _load_unlocked
  File "<frozen importlib._bootstrap_external>", line 940, in exec_module
  File "<frozen importlib._bootstrap>", line 241, in _call_with_frames_removed
  File "/usr/local/lib/python3.11/site-packages/mkdocs_jupyter/plugin.py", line 9, in <module>
    from mkdocs.tests.base import get_markdown_toc
ModuleNotFoundError: No module named 'mkdocs.tests'

This happens immediately when loading the plugin

chuckwondo commented 6 months ago

I just ran into this as well. I see that mkdocs now excludes mkdocs.tests from export in its entirety:

oprypin commented 6 months ago
cwognum commented 5 months ago

@oprypin I think it actually made it into a release, it's just the conda-forge release is broken. See https://github.com/danielfrg/mkdocs-jupyter/issues/197 and https://github.com/conda-forge/mkdocs-jupyter-feedstock/issues/31

evelynmitchell commented 5 months ago

I'm running into this issue building docs in https://github.com/evelynmitchell/swarms/blob/master/docs/mkdocs.yml (commented out currently, to get the build working)

I believe everything should be up to date, as this is being run out of ghactions: https://github.com/evelynmitchell/swarms/blob/master/.github/workflows/docs.yml

danielfrg commented 4 months ago

fix in the latest release. thanks for the reports