lightgallery-markdown
lightgallery-markdown copied to clipboard
Failed loading extension "lightgallery" with mkdocs material
Mkdocs could not load lightgallery extension
theme directory :
theme/css
theme/css/lightgallery.min.css
theme/fonts
theme/fonts/lg.svg
theme/fonts/lg.ttf
theme/fonts/lg.woff
theme/img
theme/img/loading.gif
theme/js
theme/js/lightgallery.min.js
theme/main.hml
mkdocs.yml :
site_name: Edricus Documentation
site_dir: public
edit_uri: ""
theme:
name: material
logo: src/logo.svg
icon:
repo: fontawesome/brands/git-alt
palette:
scheme: slate
font:
text: Ubuntu
code: Ubuntu Mono
features:
- navigation.tabs
- navigation.tracking
- navigation.instant
custom_dir: theme
markdown_extensions:
- meta
- admonition
- attr_list
- md_in_html
- pymdownx.superfences
- pymdownx.highlight
- pymdownx.inlinehilite
- pymdownx.details
- pymdownx.mark
- pymdownx.keys
- pymdownx.emoji
- lightgallery
plugins:
- git-revision-date-localized:
type: date
enable_creation_date: true
- search
extra_css:
- src/extra.css
mkdocs serve -v
INFO - Building documentation...
DEBUG - Loading configuration file: /home/edricus/Documents/edricus-docs/mkdocs.yml
ERROR - Config value: 'markdown_extensions'. Error: Failed loading extension "lightgallery".
DEBUG - Config value: 'site_name' = 'Edricus Documentation'
DEBUG - Config value: 'pages' = None
DEBUG - Config value: 'site_url' = 'https://edricus.gitlab.io/edricus-docs/'
DEBUG - Config value: 'site_description' = None
DEBUG - Config value: 'site_author' = None
DEBUG - Config value: 'theme' = {'name': 'material', 'logo': 'src/logo.svg', 'icon': {'repo': 'fontawesome/brands/git-alt'}, 'palette':
{'scheme': 'slate'}, 'font': {'text': 'Ubuntu', 'code': 'Ubuntu Mono'}, 'features': ['navigation.tabs', 'navigation.tracking',
'navigation.instant'], 'custom_dir': 'theme'}
DEBUG - Config value: 'docs_dir' = '/home/edricus/Documents/edricus-docs/docs'
DEBUG - Config value: 'site_dir' = '/tmp/mkdocs_t7fgibtr'
DEBUG - Config value: 'copyright' = None
DEBUG - Config value: 'google_analytics' = None
DEBUG - Config value: 'dev_addr' = Address(host='127.0.0.1', port=8000)
DEBUG - Config value: 'use_directory_urls' = True
DEBUG - Config value: 'repo_url' = 'https://gitlab.com/edricus/docs'
DEBUG - Config value: 'repo_name' = 'edricus/docs'
DEBUG - Config value: 'edit_uri' = ''
DEBUG - Config value: 'extra_css' = ['src/extra.css']
DEBUG - Config value: 'extra_javascript' = []
DEBUG - Config value: 'extra_templates' = []
DEBUG - Config value: 'markdown_extensions' = ['meta', 'admonition', 'attr_list', 'md_in_html', 'pymdownx.superfences', 'pymdownx.highlight',
'pymdownx.inlinehilite', 'pymdownx.details', 'pymdownx.mark', 'pymdownx.keys', 'pymdownx.emoji', 'lightgallery']
DEBUG - Config value: 'mdx_configs' = None
DEBUG - Config value: 'strict' = False
DEBUG - Config value: 'remote_branch' = 'gh-pages'
DEBUG - Config value: 'remote_name' = 'origin'
DEBUG - Config value: 'extra' = {}
DEBUG - Config value: 'plugins' = PluginCollection([('git-revision-date-localized',
<mkdocs_git_revision_date_localized_plugin.plugin.GitRevisionDateLocalizedPlugin object at 0x7fa9951f1e20>), ('search',
<material.plugins.search.plugin.SearchPlugin object at 0x7fa9951f1760>)])
DEBUG - Config value: 'watch' = None
Aborted with 1 Configuration Errors!
pip show lightgallery
pip show lightgallery
Name: lightgallery
Version: 0.5
Summary: Markdown extension to wrap images in lightbox/lightgallery
Home-page: https://github.com/g-provost/lightgallery-markdown
Author: Gauthier Provost
Author-email: [email protected]
License: MIT License
Location: /home/edricus/.local/lib/python3.9/site-packages
Requires: markdown
Required-by:
requirements.txt
jinja2==3.0.0
mkdocs==1.2.3
mkdocs-material==8.2.7
Pygments==2.11.2
pymdown-extensions==9.3
mkdocs-git-revision-date-plugin==0.3.2
mkdocs-git-revision-date-localized-plugin==1.0.0
git+https://github.com/g-provost/lightgallery-markdown#egg=lightgallery
I tried:
- renaming "main.hml" to "main.html" (it must be a typo)
- installing lightgallery from pip repo (
pip install lightgallery
) instead ofgit+https://github.com/g-provost/lightgallery-markdown#egg=lightgallery
detailed in a other issue, note that I used "https://" because "git://" didn't work
I have the same issue. @g-provost any advice would be much appreciated! TIA
Try to downgrade markdown package
pip install --upgrade markdown==3.3.7
Add markdown==3.3.7
to requirements.txt
I had the same fail issue, after adding this it worked