[i18n_subsites] Error to load plugin
Closed this issue · 6 comments
Hello,
I try to get i18n_subsites
working but I always get this error when I render the website or run with the local builtin server :
ERROR: Generator None (i18n_subsites.i18n_subsites) cannot be loaded
I used the default value for the configuration:
PLUGIN_PATHS = ['pelican-plugins']
PLUGINS = ['i18n_subsites']
Thanks in advance
ps: Python 3.8.6 and Pelican 4.5.3
Can you run pelican
with --debug
and share the full traceback you'll get?
DEBUG: Pelican version: 4.5.3
DEBUG: Python version: 3.8.6
DEBUG: Adding current directory to system path
DEBUG: Finding namespace plugins
DEBUG: Namespace plugins found:
| pelican.plugins.sitemap
DEBUG: Loading plugin `i18n_subsites`
DEBUG: Loading plugin `sitemap`
DEBUG: Registering plugin `i18n_subsites`
DEBUG: Registering plugin `pelican.plugins.sitemap`
--- AutoReload Mode: Monitoring `content`, `theme` and `settings` for changes. ---
Serving site at: 127.0.0.1:8000 - Tap CTRL-C to stop
-> Modified: settings, content, theme, [static]static. re-generating...
DEBUG: Found generator: ArticlesGenerator (internal)
DEBUG: Found generator: PagesGenerator (internal)
ERROR: Generator None (i18n_subsites.i18n_subsites) cannot be loaded
DEBUG: Found generator: SitemapGenerator (pelican.plugins.sitemap.sitemap)
DEBUG: Found generator: StaticGenerator (internal)
DEBUG: Template list: ['!simple/archives.html', '!simple/article.html', '!simple/author.html', '!simple/authors.html', '!simple/base.html', '!simple/categories.html', '!simple/category.html', '!simple/gosquared.html', '!simple/index.html', '!simple/page.html', '!simple/pagination.html', '!simple/period_archives.html', '!simple/tag.html', '!simple/tags.html', '!simple/translations.html', '!theme/404.html', '!theme/_includes/article_extract.html', '!theme/archives.html', '!theme/article.html', '!theme/author.html', '!theme/authors.html', '!theme/base.html', '!theme/categories.html', '!theme/category.html', '!theme/index.html', '!theme/page.html', '!theme/tag.html', '!theme/tags.html', '404.html', '_includes/article_extract.html', 'archives.html', 'article.html', 'author.html', 'authors.html', 'base.html', 'categories.html', 'category.html', 'gosquared.html', 'index.html', 'page.html', 'pagination.html', 'period_archives.html', 'tag.html', 'tags.html', 'translations.html']
DEBUG: Read file mail/Thunderbird.md -> Article
DEBUG: Signal article_generator_preread.send(ArticlesGenerator)
DEBUG: Successfully imported extension module "markdown.extensions.codehilite".
DEBUG: Successfully loaded extension "markdown.extensions.codehilite.CodeHiliteExtension".
DEBUG: Successfully imported extension module "markdown.extensions.extra".
DEBUG: Successfully loaded extension "markdown.extensions.fenced_code.FencedCodeExtension".
DEBUG: Successfully loaded extension "markdown.extensions.footnotes.FootnoteExtension".
DEBUG: Successfully loaded extension "markdown.extensions.attr_list.AttrListExtension".
DEBUG: Successfully loaded extension "markdown.extensions.def_list.DefListExtension".
DEBUG: Successfully loaded extension "markdown.extensions.tables.TableExtension".
DEBUG: Successfully loaded extension "markdown.extensions.abbr.AbbrExtension".
DEBUG: Successfully loaded extension "markdown.extensions.md_in_html.MarkdownInHtmlExtension".
DEBUG: Successfully loaded extension "markdown.extensions.extra.ExtraExtension".
DEBUG: Successfully imported extension module "markdown.extensions.meta".
DEBUG: Successfully loaded extension "markdown.extensions.meta.MetaExtension".
DEBUG: Signal article_generator_context.send(ArticlesGenerator, <metadata>)
DEBUG: Read file index.md -> Article
DEBUG: Read file hosting/ftp.md -> Article
DEBUG: Read file mail/webmail.md -> Article
DEBUG: Read file mail/k9mail.md -> Article
DEBUG: Read file support/contact.md -> Article
ERROR: Skipping /home/user/virtualenv/pelican/content/support/contact.md: could not find information about 'title'
DEBUG: Read file support/ticket.md -> Article
DEBUG: Read file static/img/logo_logo_fondNoir.svg -> Static
DEBUG: Signal static_generator_preread.send(StaticGenerator)
DEBUG: Signal static_generator_context.send(StaticGenerator, <metadata>)
DEBUG: i18n: Updating cross-site links and context of all generators.
[...]
Done: Processed 6 articles, 0 drafts, 0 pages, 0 hidden pages and 0 draft pages in 1.15 seconds.
Ah, yes. That warning was added to pelican
recently. i18n_subsites
uses one of the signals in an unintended way. Plugin should work, I believe but you'd see the error in the log.
Thanks for the info!
I'm still getting this message. The plugin seems to work as mentioned. Will this be "fixed" in a future version of the plugin or Pelican because this issue has been closed? Is there anything I can do to silence that message?
Yes, it will now be fixed in a future version :)
getpelican/pelican#2850