You need to modify the html.py in Mezzanine.

Modify lib/python3.5/site-packages/mezzanine/utils/html.py

Before:

try:
    from html.parser import HTMLParser, HTMLParseError
    from html.entities import name2codepoint
except ImportError:  # Python 2
    from HTMLParser import HTMLParser, HTMLParseError
    from htmlentitydefs import name2codepoint

After:

try:
    from html.parser import HTMLParser
    from html.entities import name2codepoint
    try:
        from html.parser import HTMLParseError
    except ImportError:  # Python 3.5+
        class HTMLParseError(Exception):
            pass
except ImportError:  # Python 2
    from HTMLParser import HTMLParser, HTMLParseError
    from htmlentitydefs import name2codepoint


CategoryMezzanine

Mezzanine/Mezzanine-4-0-x-fix-for-python-3-5 (last edited 2017-04-19 14:28:01 by wilhelms)