sviatoslav-lebediev / anki-quizlet-importer-extended

93 stars 12 forks source link

Issue with importing #25

Closed rsisonline closed 3 years ago

rsisonline commented 3 years ago

Error An error occurred. Please start Anki while holding down the shift key, which will temporarily disable the add-ons you have installed. If the issue only occurs when add-ons are enabled, please use the Tools > Add-ons menu item to disable some add-ons and restart Anki, repeating until you discover the add-on that is causing the problem. When you've discovered the add-on that is causing the problem, please report the issue on the add-on support site. Debug info: Anki 2.1.38 (355e4cd5) Python 3.8.6 Qt 5.14.2 PyQt 5.14.2 Platform: Mac 10.16 Flags: frz=True ao=True sv=2 Add-ons, last update check: 2021-07-23 23:32:12 Add-ons possibly involved: ⁨Quizlet to Anki 21 Importer with audio support⁩ 
 Caught exception: Traceback (most recent call last): File "anki/notes.py", line 106, in _fieldOrd KeyError: 'FrontText' 
 The above exception was the direct cause of the following exception: 
 Traceback (most recent call last): File "/Users/myuser/Library/Application Support/Anki2/addons21/1362209126/init.py", line 302, in onCode self.createDeck(deck) File "/Users/myuser/Library/Application Support/Anki2/addons21/1362209126/init.py", line 347, in createDeck note["FrontText"] = item["term"] File "anki/notes.py", line 114, in setitem File "anki/notes.py", line 108, in _fieldOrd KeyError: 'FrontText' 
 Hopefully you can help me! Thanks for the really great add-on!

Here is the deck I am trying to import: https://quizlet.com/nl/558078335/learn-korean-with-bts-book-2-flash-cards/

sviatoslav-lebediev commented 3 years ago

Hi, I will take a look.

sviatoslav-lebediev commented 3 years ago

I've successfully imported your deck. image image

I think about 1 problem that you can have. Did you change somehow this note type Basic Quizlet Extended? You should not do this, otherwise, the add-on will not be able to import decks. I would try to remove this note type, the add-on will recreate it when you start importing next time.

my version:

Version ⁨2.1.43 (0fbae6bc)⁩ Python 3.8.6 Qt 5.14.2 PyQt 5.14.2 Mac Os

sviatoslav-lebediev commented 3 years ago

here is a similar issue https://github.com/sviatoslav-lebediev/anki-quizlet-importer-extended/issues/24

rsisonline commented 3 years ago

Oh I think I did! How do I fix it? Thank you so much for figuring it out so fast! So do I delete (?) this note type?

sviatoslav-lebediev commented 3 years ago

Try to rename Basic Quizlet Extended. the add-on should recreate it.

rsisonline commented 3 years ago

It worked! Thank you so much ♥️ Such a great add-on for language learning!

sviatoslav-lebediev commented 3 years ago

cool, happy to help :)