Created attachment 715194 [details] emerge --info anki-2.1.15 uses a deprecated, undocumented method available in Python 3.8[0] and removed in Python 3.9[1]. Upstream has fixed the issue in later releases; however, anki-2.1.15 pre-dates Python 3.9 and throws a runtime error (see backtrace.txt) when using Python 3.9. Python 3.8 runs without issue. Steps to reproduce: 1. Create card with type "Basic (type in the answer)" 2. Review new card and submit answer 3. Pop-up with backtrace appears (see backtrace.txt) [0] https://github.com/python/cpython/blob/4844abdd700120120fc76c29d911bcb547700baf/Lib/html/parser.py#L466 [1] https://bugs.python.org/issue37328
Created attachment 715197 [details] backtrace.txt
Created attachment 715200 [details, diff] anki-2.1.15-unescape.patch Added patch that replaces the removed method with its suggested replacement.
The bug has been closed via the following commit(s): https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=267c5a6cdfd2d0e3839118d49598e92ac074d7b0 commit 267c5a6cdfd2d0e3839118d49598e92ac074d7b0 Author: Austin Ray <austin@austinray.io> AuthorDate: 2021-06-11 15:10:22 +0000 Commit: Sam James <sam@gentoo.org> CommitDate: 2021-06-12 09:25:48 +0000 app-misc/anki: patch Python 3.9 incompatibility This commit modifies the existing anki-2.1.15 ebuild with a patch to replace a deprecated, undocumented method available in Python 3.8[0] but removed in Python 3.9[1]. Without the patch, anki throws a runtime error (see bug for more details) as anki 2.1.15 pre-dates Python 3.9. [0] https://github.com/python/cpython/blob/4844abdd700120120fc76c29d911bcb547700baf/Lib/html/parser.py#L466 [1] https://bugs.python.org/issue37328 Closes: https://bugs.gentoo.org/795309 Signed-off-by: Austin Ray <austin@austinray.io> Closes: https://github.com/gentoo/gentoo/pull/21200 Signed-off-by: Sam James <sam@gentoo.org> app-misc/anki/{anki-2.1.15.ebuild => anki-2.1.15-r1.ebuild} | 1 + app-misc/anki/files/anki-2.1.15-unescape.patch | 13 +++++++++++++ 2 files changed, 14 insertions(+)