Github messages for voidlinux
 help / color / mirror / Atom feed
From: paper42 <paper42@users.noreply.github.com>
To: ml@inbox.vuxu.org
Subject: Re: [ISSUE] [CLOSED] Anki broken with Python 3.9
Date: Sun, 10 Oct 2021 12:25:36 +0200	[thread overview]
Message-ID: <20211010102536.Dh0Pjgfv6yLFbp_rVK0QFXHUtKCud4em84YeRa8pYwg@z> (raw)
In-Reply-To: <gh-mailinglist-notifications-41a7ca26-5023-4802-975b-f1789d68868e-void-packages-33278@inbox.vuxu.org>

[-- Attachment #1: Type: text/plain, Size: 1661 bytes --]

Closed issue by Bikutoso on void-packages repository

https://github.com/void-linux/void-packages/issues/33278

Description:
<!-- Don't request update of package. We have a script for that. https://alpha.de.repo.voidlinux.org/void-updates/void-updates.txt . However, a quality pull request may help. -->
### System

* xuname:  
  Void 5.13.19_1 x86_64 GenuineIntel notuptodate rrrmFFFF
* package:  
  anki-2.1.15_4
  python3-3.9.7_1

### Expected behavior
Entering an answer should show the result without any errors.
### Actual behavior
Gives this error after entering an answer.
```
Caught exception:
  File "/usr/share/anki/aqt/webview.py", line 322, in handler
    cb(val)
  File "/usr/share/anki/aqt/reviewer.py", line 461, in _onTypedAnswer
    self._showAnswer()
  File "/usr/share/anki/aqt/reviewer.py", line 217, in _showAnswer
    a = self._mungeQA(a)
  File "/usr/share/anki/aqt/reviewer.py", line 156, in _mungeQA
    return self.typeAnsFilter(mungeQA(self.mw.col, buf))
  File "/usr/share/anki/aqt/reviewer.py", line 306, in typeAnsFilter
    return self.typeAnsAnswerFilter(buf)
  File "/usr/share/anki/aqt/reviewer.py", line 362, in typeAnsAnswerFilter
    cor = parser.unescape(cor)
<class 'AttributeError'>: 'HTMLParser' object has no attribute 'unescape'
```
### Steps to reproduce the behavior
Enter an answer in any deck with new/due cards.
### Additional Information
Someone has already reported this bug to [Gentoo Linux](https://bugs.gentoo.org/795309), they have created a [patch](https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=267c5a6cdfd2d0e3839118d49598e92ac074d7b0) that does also work in Void.

      parent reply	other threads:[~2021-10-10 10:25 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-10-02 23:21 [ISSUE] " Bikutoso
2021-10-03  2:03 ` ericonr
2021-10-03 11:01 ` Bikutoso
2021-10-03 11:03 ` Bikutoso
2021-10-10 10:25 ` paper42 [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20211010102536.Dh0Pjgfv6yLFbp_rVK0QFXHUtKCud4em84YeRa8pYwg@z \
    --to=paper42@users.noreply.github.com \
    --cc=ml@inbox.vuxu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).