Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
TRaSH- opened this issue Oct 8, 2022 · 2 comments

Comments

@TRaSH-
Copy link

TRaSH- commented Oct 8, 2022

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(
@Stanzilla
Copy link

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

@do-me
Copy link

do-me commented Jul 31, 2023

@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

nwithan8 added a commit to selfhosters/selfhosters.net that referenced this issue Mar 25, 2024
- Replace deprecated lightgallery with drop-in `glightbox` replacement (g-provost/lightgallery-markdown#15 (comment))

- Fix CI, linting

---------

Co-authored-by: Roxedus <me@roxedus.dev>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants