lightgallery-markdown icon indicating copy to clipboard operation
lightgallery-markdown copied to clipboard

DeprecationWarning: 'etree' is deprecated. Use 'xml.etree.ElementTree' instead.

Open TRaSH- opened this issue 2 years ago • 2 comments

Getting the following error related to this plugin

INFO     -  DeprecationWarning: Using the add method to register a processor or pattern is deprecated. Use the
            `register` method instead.
              File "c:\python38\lib\site-packages\lightgallery.py", line 57, in extendMarkdown
                md.treeprocessors.add("lightbox", ImagesTreeprocessor(config, md), "_end")
              File "c:\python38\lib\site-packages\markdown\util.py", line 462, in add
                warnings.warn(
INFO     -  DeprecationWarning: The 'md_globals' parameter of 'lightgallery.LightGalleryExtension.extendMarkdown' is
            deprecated.
              File "c:\python38\lib\site-packages\markdown\core.py", line 125, in registerExtensions
                ext._extendMarkdown(self)
              File "c:\python38\lib\site-packages\markdown\extensions\__init__.py", line 82, in _extendMarkdown
                warnings.warn(

TRaSH- avatar Oct 08 '22 13:10 TRaSH-

I recommend switching to https://github.com/blueswen/mkdocs-glightbox instead

Stanzilla avatar Oct 08 '22 17:10 Stanzilla

@Stanzilla 
thanks for the hint, quick and painless.

  1. pip install mkdocs-glightbox
  2.   - glightbox under plugins in mkdocs.yml
  3. lighthouse can be removed under markdown_extensions

do-me avatar Jul 31 '23 13:07 do-me