getpelican / pelican-plugins

Collection of plugins for the Pelican static site generator
Other
1.39k stars 856 forks source link

Cannot load i18n_subsites #1361

Closed marimeireles closed 2 years ago

marimeireles commented 2 years ago

I have a somewhat related issue to: https://github.com/getpelican/pelican-plugins/issues/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 2 years ago

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

haplo commented 2 years ago

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')]