mkdocs-jupyter icon indicating copy to clipboard operation
mkdocs-jupyter copied to clipboard

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

Open matanco64 opened this issue 1 year ago • 4 comments

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

matanco64 avatar May 05 '24 08:05 matanco64

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

  • In 1.5.3: https://github.com/mkdocs/mkdocs/blob/1.5.3/pyproject.toml#L98-L99
  • In 1.6.0: https://github.com/mkdocs/mkdocs/blob/1.6.0/pyproject.toml#L96-L97

chuckwondo avatar May 12 '24 14:05 chuckwondo

  • Already addressed in https://github.com/danielfrg/mkdocs-jupyter/pull/184 but it still needs to make it into a release

oprypin avatar May 12 '24 14:05 oprypin

@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

cwognum avatar May 23 '24 15:05 cwognum

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

evelynmitchell avatar Jun 07 '24 21:06 evelynmitchell

fix in the latest release. thanks for the reports

danielfrg avatar Jul 20 '24 19:07 danielfrg