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

error message HTML sanity #32

Closed
arnauldb opened this issue Apr 2, 2018 · 2 comments
Closed

error message HTML sanity #32

arnauldb opened this issue Apr 2, 2018 · 2 comments

Comments

@arnauldb
Copy link

@arnauldb arnauldb commented Apr 2, 2018

Hello,

I try to use Html sanity. I put the htmlsanity.py file in a "m" directory (pelican/plugins/m).

Added to my pelicanconf.py:

PLUGINS = ['m.htmlsanity']
M_HTMLSANITY_SMART_QUOTES = True
M_HTMLSANITY_HYPHENATION = True

Installed the Pyphen li­brary using: pip install Pyphen

But I have this error:

ERROR: Cannot load plugin `m.htmlsanity`
     | ImportError: No module named m.htmlsanity

Thank you for any help.

@mosra
Copy link
Owner

@mosra mosra commented Apr 2, 2018

Hi,

what's your PLUGIN_PATHS setting? It should point to the base directory where you put the plugins so it knows where to look, relative to your pelicanconf.py. In your case that would be probably this:

PLUGIN_PATHS = ['pelican/plugins']
@mosra
Copy link
Owner

@mosra mosra commented Apr 25, 2018

Closing as resolved.

@mosra mosra closed this Apr 25, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
2 participants