Error on Middle Click Paste (on Linux)

AnkiNoob's Avatar

AnkiNoob

12 Nov, 2019 11:29 AM

Hi,

I am using Anki on Fedora Linux. Very recently, it started giving me errors when I try to paste by clicking the middle mouse button. I have also tested it with all add-ons disabled, but the error is still there leading me to conclude that the issue is either with Anki or one of its libraries.

I have recently upgraded to Fedora 31, but can't be sure whether this issue started before or after the upgrade - it was only yesterday when I was adding quite a few cards that it annoyed me so much I started paying more attention to the error message.

Anyone else getting the same errors? Any workarounds?

DEBUG info

Anki 2.1.15 (442df9d6) Python 3.7.5 Qt 5.12.5 PyQt 5.13.1
Platform: Linux
Flags: frz=False ao=True sv=1


Caught exception: File "/usr/share/anki/aqt/webview.py", line 130, in eventFilter self.onMiddleClickPaste() File "/usr/share/anki/aqt/editor.py", line 867, in onMiddleClickPaste self._onPaste(QClipboard.Selection) File "/usr/share/anki/aqt/editor.py", line 858, in _onPaste html, internal = self._processMime(mime) File "/usr/share/anki/aqt/editor.py", line 892, in _processMime html, internal = self._processHtml(mime) File "/usr/share/anki/aqt/editor.py", line 954, in _processHtml if not mime.hasHtml(): <class 'AttributeError'>: 'NoneType' object has no attribute 'hasHtml'
  1. Support Staff 1 Posted by Damien Elmes on 12 Nov, 2019 09:25 PM

    Damien Elmes's Avatar
  2. 2 Posted by AnkiNoob on 12 Nov, 2019 11:22 PM

    AnkiNoob's Avatar

    Thanks @Damien.

    Manual installation fixed it for me.

    I really like the the one packaged by the system as I it was much easier to update. Any chance you might consider setting up a repo in the future?

  3. Support Staff 3 Posted by Damien Elmes on 13 Nov, 2019 12:01 AM

    Damien Elmes's Avatar

    It's a possibility, but not at the top of the todo list at the moment I'm afraid.

Reply to this discussion

Internal reply

Formatting help / Preview (switch to plain text) No formatting (switch to Markdown)

Attaching KB article:

»

Attached Files

You can attach files up to 10MB

If you don't have an account yet, we need to confirm you're human and not a machine trying to post spam.

Keyboard shortcuts

Generic

? Show this help
ESC Blurs the current field

Comment Form

r Focus the comment reply box
^ + ↩ Submit the comment

You can use Command ⌘ instead of Control ^ on Mac