Error using pelican-quickstart “No module named html_parser”

前端 未结 5 1664
后悔当初
后悔当初 2021-02-07 14:49

I decided to give pelican a try, but when I run pelican-quickstart, I get the following dialog:

$ pelican-quickstart
Traceback (most re         


        
5条回答
  •  再見小時候
    2021-02-07 15:27

    Reinstall Pelican doesn't help me, so I made a little fix in pelican

    Modifications were made in following file

    /Library/Python/2.7/site-packages/pelican/readers.py
    

    at line 24 place

    from six.moves import html_parser
    

    instead of

    from six.moves.html_parser import HTMLParser
    

    and at line 299

        class _HTMLParser(html_parser.HTMLParser):
    

    instead of

        class _HTMLParser(HTMLParser):
    

    Modification actual for pelican 3.6.0, but seems to applicable for other version if search for this lines in readers.py file. This is just quick workaround, hope this problem will be solved at pelican's side.

提交回复
热议问题