Error in "Copy notes" add-on

Rasmus Underbjerg Pinnerup's Avatar

Rasmus Underbjerg Pinnerup

23 May, 2020 01:14 PM

After upgrading to the new version of Anki a few weeks back, I was miffed to see that the Copy notes add-on had been grayed out as incompatible. After mentioning it to the developers, the issue was resolved and it was reactivated, but now when I try to use it, I get an error message.

To reproduce:
1. Open the card browser in Anki
2. Click a card in the list
3. Choose "Note Copy" from the "Edit" menu

This is the error message given by Anki:

Debug info:
Anki 2.1.26 (2a0d40e1) Python 3.8.1 Qt 5.14.1 PyQt 5.14.1
Platform: Linux
Flags: frz=True ao=True sv=2
Add-ons, last update check: 2020-05-23 15:09:07
Add-ons possibly involved: ⁨Copy notes⁩

Caught exception:
Traceback (most recent call last):
  File "/home/pinnerup/.local/share/Anki2/addons21/1566928056/copyNote.py", line 65, in <lambda>
    a.triggered.connect(lambda: copyNotes(browser.selectedNotes()))
  File "/home/pinnerup/.local/share/Anki2/addons21/1566928056/copyNote.py", line 52, in copyNotes
    copyNote(nid)
  File "/home/pinnerup/.local/share/Anki2/addons21/1566928056/copyNote.py", line 81, in copyNote
    copyCard(card, note)
  File "/home/pinnerup/.local/share/Anki2/addons21/1566928056/copyNote.py", line 98, in copyCard
    card.flush()
  File "anki/cards.py", line 107, in flush
  File "anki/rsbackend.py", line 507, in update_card
  File "anki/rsbackend.py", line 257, in _run_command
anki.rsbackend.StringError: InvalidInput { info: "missing card" }
  1. 1 Posted by Rasmus Underbje... on 29 May, 2020 10:48 AM

    Rasmus Underbjerg Pinnerup's Avatar

    The extension now works with no error messages again :)

  2. Rasmus Underbjerg Pinnerup closed this discussion on 29 May, 2020 10:48 AM.

Comments are currently closed for this discussion. You can start a new one.

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