Open
Description
I'm trying to use mdv on an old(ish) distribution, with Python 2.7.5 . When it runs, I get:
Traceback (most recent call last):
File "/home/lh156516/.local/bin/mdv", line 33, in <module>
sys.exit(load_entry_point('mdv==1.7.4', 'console_scripts', 'mdv')())
File "/home/lh156516/.local/lib/python3.9/site-packages/mdv/markdownviewer.py", line 1657, in run
print(main(**kw) if PY3 else str(main(**kw)))
File "/home/lh156516/.local/lib/python3.9/site-packages/mdv/markdownviewer.py", line 1375, in main
the_html = MD.convert(md)
File "/usr/local/lib/python3.9/site-packages/markdown/core.py", line 268, in convert
newRoot = treeprocessor.run(root)
File "/home/lh156516/.local/lib/python3.9/site-packages/mdv/markdownviewer.py", line 1150, in run
formatter(doc, out)
File "/home/lh156516/.local/lib/python3.9/site-packages/mdv/markdownviewer.py", line 1145, in formatter
formatter(c, out, hir + 1, parent=el)
File "/home/lh156516/.local/lib/python3.9/site-packages/mdv/markdownviewer.py", line 970, in formatter
t = html_parser.unescape(t)
AttributeError: 'HTMLParser' object has no attribute 'unescape'
If you don't support this Python version, the pip install should fail, or the script should say so. If you do support this version of python - then this is a bug.
Metadata
Assignees
Labels
No labels
Activity