# 2.1.28beta1 import issue with Special Fields add-on

**URL:** <https://forums.ankiweb.net/t/2-1-28beta1-import-issue-with-special-fields-add-on/730>\
**Category:** Beta Testing\
**Created:** [July 4, 2020, 1:55pm UTC](https://forums.ankiweb.net/t/2-1-28beta1-import-issue-with-special-fields-add-on/730 "2020-07-04T13:55:55Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![AnKingMed](https://sea2.discourse-cdn.com/flex002/user_avatar/forums.ankiweb.net/ankingmed/32/32686_2.png) [@AnKingMed](https://forums.ankiweb.net/u/AnKingMed)\
**Post date:** [July 4, 2020, 1:55pm UTC](https://forums.ankiweb.net/t/2-1-28beta1-import-issue-with-special-fields-add-on/730/1 "2020-07-04T13:55:55Z")

</div>

In the 2.1.28beta1 I get the following error when trying to import a deck with the special fields add-on turned on. You mentioned previously that you’d like me to report things like this in case it’s easier to fix Anki instead of the add-on. Let me know what you’d like for me to do in this case:

> Import failed. Debugging info:  
> 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 207, in newImportNotes  
> for importedDid, importedDeck in self.src.decks.decks.copy().items():  
> AttributeError: ‘DecksDictProxy’ object has no attribute ‘copy’

---

<div class="post-metadata">

**Author:** ![dae](https://sea2.discourse-cdn.com/flex002/user_avatar/forums.ankiweb.net/dae/32/65_2.png) [@dae](https://forums.ankiweb.net/u/dae)\
**Post date:** [July 5, 2020, 3:22am UTC](https://forums.ankiweb.net/t/2-1-28beta1-import-issue-with-special-fields-add-on/730/2 "2020-07-05T03:22:15Z")

</div>

Not tested, but the code should be updated to be

`for importedDid, importedDeck in ((d["id"], d) for d in self.src.decks.all()):`

That should work on older Anki versions as well.

---

<div class="post-metadata">

**Author:** ![AnKingMed](https://sea2.discourse-cdn.com/flex002/user_avatar/forums.ankiweb.net/ankingmed/32/32686_2.png) [@AnKingMed](https://forums.ankiweb.net/u/AnKingMed)\
**Post date:** [July 5, 2020, 4:41pm UTC](https://forums.ankiweb.net/t/2-1-28beta1-import-issue-with-special-fields-add-on/730/3 "2020-07-05T16:41:57Z")

</div>

Looks like that worked great. Thanks @dae as always

---

<div class="post-metadata">

**Author:** ![jnunez12](https://avatars.discourse-cdn.com/v4/letter/j/77aa72/32.png) [@jnunez12](https://forums.ankiweb.net/u/jnunez12)\
**Post date:** [July 28, 2020, 4:22pm UTC](https://forums.ankiweb.net/t/2-1-28beta1-import-issue-with-special-fields-add-on/730/4 "2020-07-28T16:22:28Z")

</div>

I am having the same issue while trying to update my deck to the V7 overhaul. What do I need to do with this code to resolve this? Thank you in advance for your help!

---

<div class="post-metadata">

**Author:** ![jnunez12](https://avatars.discourse-cdn.com/v4/letter/j/77aa72/32.png) [@jnunez12](https://forums.ankiweb.net/u/jnunez12)\
**Post date:** [July 28, 2020, 4:29pm UTC](https://forums.ankiweb.net/t/2-1-28beta1-import-issue-with-special-fields-add-on/730/5 "2020-07-28T16:29:28Z")

</div>

This is the error I keep getting. I am also running 2.1.19 Anki version. Thank you!

Import failed. Debugging info:  
Traceback (most recent call last):  
File “aqt/importing.py”, line 404, 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/jarrett/Library/Application Support/Anki2/addons21/880042638/ **init**.py”, line 249, 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)

---

<div class="post-metadata">

**Author:** ![guillempalausalva](https://sea2.discourse-cdn.com/flex002/user_avatar/forums.ankiweb.net/guillempalausalva/32/34258_2.png) [@guillempalausalva](https://forums.ankiweb.net/u/guillempalausalva)\
**Post date:** [July 28, 2020, 4:55pm UTC](https://forums.ankiweb.net/t/2-1-28beta1-import-issue-with-special-fields-add-on/730/6 "2020-07-28T16:55:14Z")

</div>

> [@jnunez12](#):
>
> json.decoder.JSONDecodeError: Expecting value: line 1 column 1 (char 0)

> [@json.decoder.JSONDecodeError: Expecting value: line 1 column 1 (char 0)](https://forums.ankiweb.net/t/json-decoder-jsondecodeerror-expecting-value-line-1-column-1-char-0/622):
>
> I’ve been using anki for a couple of years. I did something that erased backside of all cards. I tried to fix it but caused more problems. So I tried to download a new version of anki. I think I’ve lost all my cards but at least wanted to be able to start over and use the app. I’ve tried downloading several times. I keep getting this message. Nothing works. Anki was unable to open your collection file. If problems persist after restarting your computer, please use the Open Backup button in t…

---

<div class="post-metadata">

**Author:** ![dae](https://sea2.discourse-cdn.com/flex002/user_avatar/forums.ankiweb.net/dae/32/65_2.png) [@dae](https://forums.ankiweb.net/u/dae)\
**Post date:** [July 29, 2020, 12:12am UTC](https://forums.ankiweb.net/t/2-1-28beta1-import-issue-with-special-fields-add-on/730/7 "2020-07-29T00:12:46Z")

</div>

While the error message is the same, in this case it’s the add-on that needs updating - you may want to try checking for updates or removing and re-adding it.

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/flex002/uploads/anki2/original/1X/8f1279ababc5879d54e4838989f606cfe55af8c7.jpeg) [@system](https://forums.ankiweb.net/u/system)\
**Post date:** [May 1, 2023, 2:56am UTC](https://forums.ankiweb.net/t/2-1-28beta1-import-issue-with-special-fields-add-on/730/8 "2023-05-01T02:56:15Z")

</div>


