2.1.28alpha3 importing issue with add-on

The AnKing's Avatar

The AnKing

10 Jun, 2020 03:09 PM

I'm getting this error when trying to import a deck using the Special Fields add-on (I use this add-on daily). If this is permanent, please let me know and I'll chat with Arthur and the other person who helped on that add-on

Traceback (most recent call last):
  File "aqt/importing.py", line 403, in on_done
  File "concurrent/futures/_base.py", line 432, in result
  File "concurrent/futures/_base.py", line 388, in __get_result
  File "concurrent/futures/thread.py", line 57, in run
  File "anki/importing/apkg.py", line 44, in run
  File "anki/importing/anki2.py", line 41, in run
  File "anki/importing/anki2.py", line 64, in _import
  File "/Users/Nick/Library/Application Support/Anki2/addons21/1102281552/__init__.py", line 61, in newImportNotes
    b = json.loads(models)
  File "json/__init__.py", line 357, in loads
  File "json/decoder.py", line 337, in decode
  File "json/decoder.py", line 355, in raw_decode
json.decoder.JSONDecodeError: Expecting value: line 1 column 1 (char 0)

  1. Support Staff 1 Posted by Damien Elmes on 11 Jun, 2020 10:43 AM

    Damien Elmes's Avatar

    line 60 and 61 should be replaced with

    b = mw.col.models.all()

    https://github.com/johnpincock/SpecialFields/blob/master/Specialfie...init.py

  2. Support Staff 2 Posted by Damien Elmes on 11 Jun, 2020 10:44 AM

    Damien Elmes's Avatar

    Actually, 60-62 with

    a = mw.col.models.all()

  3. 3 Posted by The AnKing on 11 Jun, 2020 02:53 PM

    The AnKing's Avatar

    I'll pass that on. Thanks!

Comments are closed, but you can start a new discussion.

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