debanjandhar12 / Obsidian-Anki-Sync

Obsidian plugin to make flashcards and sync them to Anki
GNU General Public License v3.0
145 stars 11 forks source link

Error: 'NoneType' object has no attribute 'write' #16

Closed vvh-1 closed 2 years ago

vvh-1 commented 2 years ago

image

I had installed obsidian_to_anki, flashicard and this plugin but had the same problem. I think I installed Ankiconnect in the right way. Is it possible that there might be some port occupancy issues on my computer? looking forward to your help~

debanjandhar12 commented 2 years ago

Which anki and ankiconnect version are you on?

Also what OS?

vvh-1 commented 2 years ago
The debug information from Anki for 64bit windows is copied as follows:

Anki 2.1.50 (43c41d76) Python 3.9.7 Qt 5.15.2 PyQt 5.15.5
Platform: Windows 10
Flags: frz=True ao=True sv=2
Add-ons, last update check: 2022-03-22 12:22:36

===Add-ons (active)===
(add-on provided name [Add-on folder, installed at, version, is config changed])
AnkiConnect ['2055492159', 2022-02-20T03:11, 'None', mod]

===IDs of active AnkiWeb add-ons===
2055492159

===Add-ons (inactive)===
(add-on provided name [Add-on folder, installed at, version, is config changed])
debanjandhar12 commented 2 years ago

Yep, like I thought. AnkiConnect doesn't support Anki 2.1.50 yet. https://github.com/FooSoft/anki-connect/issues/308

Switching back to Anki 2.1.49 should solve this.

vvh-1 commented 2 years ago

Now it works! This problem has been bothering me for a long time. Thanks a lot!!!