Closed emign closed 2 years ago
As a matter of fact this concerns two plugins, which import your library:
ezlinks and embed_file
Hello!
In waiting of a merge of my PR, I created a fork here : https://github.com/Mara-Li/mdx_wikilink_plus, and I published it to pip on the name of mdx_wikilink_plus_fork
: https://pypi.org/project/mdx-wikilink-plus-fork/
You can install it using pip install mdx-wikilink-plus-fork
.
I updated my package that have the package in dependencies, ie :
Simply update your requirements will fix the problems.
Embed File and Preview link use your wikilink fork ? That's strange because I get the errors using exactly these in my setup (check requirements.txt in the docker zip folder)
embed file still pulls the unforked library release:
mkdocs | File "/usr/local/lib/python3.10/site-packages/mkdocs_embed_file_plugins/plugin.py", line 11, in <module>
mkdocs | from mdx_wikilink_plus.mdx_wikilink_plus import WikiLinkPlusExtension
mkdocs | File "/usr/local/lib/python3.10/site-packages/mdx_wikilink_plus/__init__.py", line 4, in <module>
mkdocs | from .mdx_wikilink_plus import makeExtension
mkdocs | File "/usr/local/lib/python3.10/site-packages/mdx_wikilink_plus/mdx_wikilink_plus.py", line 25, in <module>
mkdocs | from markdown.util import etree
mkdocs | ImportError: cannot import name 'etree' from 'markdown.util' (/usr/local/lib/python3.10/site-packages/markdown/util.py)
EDIT: fixed it with
mkdocs-embed-file-plugins==1.4.0
in requirements.txt. I somehow assumed that not specifying the version number would fetch the latest one (I think it should, but maybe it's not due to caching)
1.4.1 is now on pypi.
Hi, I use mdc_wikilink_plus as a part of my mkdocs obsidian setup. During the build process of mkdocs I get the following error:
Is there any explanation for that behavior?
This is my requirements.txt
This can easily be reproduced with this docker setup:
docker_etree_import.zip