getpelican/pelican-plugins

Cannot load i18n_subsites

marimeireles opened this issue · 2 comments

I have a somewhat related issue to: #1086

Using pelican 4.7.2.

           ERROR    Cannot load plugin `i18n_subsites`                                   log.py:96
                    Cannot import plugin `i18n_subsites`

The rest of my environment.

Please let me know if I can help some way!

Thank you.

haplo commented

@marimeireles I'm in the same boat, getting the same error. Did you find the fix? 🙏

haplo commented

OK I found the issue for me, which was that PLUGIN_PATHS setting must be strings. I had:

PLUGIN_PATHS = [Path.home() / 'Code' / 'pelican-plugins']

Casting into a str fixed it:

PLUGIN_PATHS = [str(Path.home() / 'Code' / 'pelican-plugins')]