When running mkdocs serve with Python3 to run the site locally, we are faced with the following error.
File "<frozen importlib._bootstrap_external>", line 883, in exec_module
File "<frozen importlib._bootstrap>", line 241, in _call_with_frames_removed
File "/Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/site-packages/markdownextradata/plugin.py", line 20, in <module>
class MarkdownExtraDataPlugin(BasePlugin):
File "/Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/site-packages/markdownextradata/plugin.py", line 26, in MarkdownExtraDataPlugin
('data', mkdocs.config.config_options.Type(mkdocs.utils.string_types, default=None)),
AttributeError: module 'mkdocs.utils' has no attribute 'string_types'
We are using
mkdocs-markdownextradata-plugin
in one of our documentation sites along with mkdocs. Therequirements.txt
of our site is as follows.When running
mkdocs serve
with Python3 to run the site locally, we are faced with the following error.