# mdv README.md Traceback (most recent call last): File "/usr/local/bin/mdv", line 33, in <module> sys.exit(load_entry_point('mdv==1.7.4', 'console_scripts', 'mdv')()) File "/usr/local/lib/python3.9/site-packages/mdv/markdownviewer.py", line 1657, in run print(main(**kw) if PY3 else str(main(**kw))) File "/usr/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 "/usr/local/lib/python3.9/site-packages/mdv/markdownviewer.py", line 1150, in run formatter(doc, out) File "/usr/local/lib/python3.9/site-packages/mdv/markdownviewer.py", line 1145, in formatter formatter(c, out, hir + 1, parent=el) File "/usr/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'
Confirmed. Upstream issue: https://github.com/axiros/terminal_markdown_viewer/issues/102
A commit in branch main references this bug: URL: https://cgit.FreeBSD.org/ports/commit/?id=33f15559408689b40626d525e41e34c5d77b77a4 commit 33f15559408689b40626d525e41e34c5d77b77a4 Author: Emanuel Haupt <ehaupt@FreeBSD.org> AuthorDate: 2022-10-14 15:59:52 +0000 Commit: Emanuel Haupt <ehaupt@FreeBSD.org> CommitDate: 2022-10-14 16:00:37 +0000 devel/py-mdv: Fix runtime error with Python 3.9 PR: 267003 (based on) Reported by: p5B2EA84B3@t-online.de devel/py-mdv/Makefile | 15 +++++++-------- devel/py-mdv/distinfo | 6 +++--- devel/py-mdv/files/extra-patch-setup.py (gone) | 11 ----------- 3 files changed, 10 insertions(+), 22 deletions(-)
A commit in branch 2022Q4 references this bug: URL: https://cgit.FreeBSD.org/ports/commit/?id=df3a0f162b4836e38d8f70b0582275f7e6eca7e0 commit df3a0f162b4836e38d8f70b0582275f7e6eca7e0 Author: Emanuel Haupt <ehaupt@FreeBSD.org> AuthorDate: 2022-10-14 15:59:52 +0000 Commit: Emanuel Haupt <ehaupt@FreeBSD.org> CommitDate: 2022-10-14 16:01:15 +0000 devel/py-mdv: Fix runtime error with Python 3.9 PR: 267003 (based on) Reported by: p5B2EA84B3@t-online.de (cherry picked from commit 33f15559408689b40626d525e41e34c5d77b77a4) devel/py-mdv/Makefile | 15 +++++++-------- devel/py-mdv/distinfo | 6 +++--- devel/py-mdv/files/extra-patch-setup.py (gone) | 11 ----------- 3 files changed, 10 insertions(+), 22 deletions(-)