Bug 267003 - devel/py-mdv 1.7.4_1 fails to run: AttributeError: 'HTMLParser' object has no attribute 'unescape'
Summary: devel/py-mdv 1.7.4_1 fails to run: AttributeError: 'HTMLParser' object has no...
Status: Closed FIXED
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: --- Affects Many People
Assignee: Emanuel Haupt
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2022-10-12 21:06 UTC by p5B2EA84B3
Modified: 2022-10-14 16:30 UTC (History)
0 users

See Also:
bugzilla: maintainer-feedback? (ehaupt)


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description p5B2EA84B3 2022-10-12 21:06:48 UTC
# 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'
Comment 1 Emanuel Haupt freebsd_committer freebsd_triage 2022-10-14 15:42:55 UTC
Confirmed. Upstream issue: https://github.com/axiros/terminal_markdown_viewer/issues/102
Comment 2 commit-hook freebsd_committer freebsd_triage 2022-10-14 16:01:26 UTC
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(-)
Comment 3 commit-hook freebsd_committer freebsd_triage 2022-10-14 16:01:27 UTC
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(-)