Anki Forums

今天插件报告的错误Errors reported by the plug-in today

您安装的某个插件加载失败。如果此问题仍无法解决,请移步 工具-插件 菜单,并禁用或者删除插件。

When loading ‘⁨AwesomeTTS for Anki 21 updated again⁩’:

⁨Traceback (most recent call last):

File “aqt\addons.py”, line 211, in loadAddons

File “C:\Users\YEDONG\AppData\Roaming\Anki2\addons21\2139632824_init_.py”, line 42, in

from . import awesometts # noqa, pylint:disable=wrong-import-position

File “C:\Users\YEDONG\AppData\Roaming\Anki2\addons21\2139632824\awesometts_init_.py”, line 36, in

from .player import Player

File “C:\Users\YEDONG\AppData\Roaming\Anki2\addons21\2139632824\awesometts\player.py”, line 25, in

from .text import RE_FILENAMES

File “C:\Users\YEDONG\AppData\Roaming\Anki2\addons21\2139632824\awesometts\text.py”, line 35, in

RE_CLOZE_BRACED = re.compile(anki.template.template.clozeReg % r’\d+’)

AttributeError: module ‘anki.template’ has no attribute ‘template’

Could not retrieve api_token from configuration file.

Try running Tools >> Setup Habitica

错误

有一个错误发生了.请在按住shift键的同时启动Anki,这样可以临时的禁用您已经安装的插件。

如果仅仅是因为插件引起的问题,请选择工具>插件菜单项来将出错的的插件设置成失效,然后重启Anki,重复以上的步骤直到你发现了具体是哪个插件引起的问题。

当你已经发现是因为插件引起的问题,请在我们的支持网站上 插件支持 上报告问题。

调试信息:

Anki 2.1.33 (3f403040) Python 3.8.0 Qt 5.14.1 PyQt 5.14.1

Platform: Windows 10

Flags: frz=True ao=True sv=2

Add-ons, last update check: 2020-09-23 08:22:06

Caught exception:

Traceback (most recent call last):

File “C:\Users\YEDONG\AppData\Roaming\Anki2\addons21\1331140127\quick_note_deck_buttons_24_.py”, line 268, in

func = lambda _=None, s=chooser, d=e: do_function(s, d)

File “C:\Users\YEDONG\AppData\Roaming\Anki2\addons21\1331140127\quick_note_deck_buttons_24_.py”, line 403, in change_deck_to

self.addcards.editor.saveNow(lambda d=self, v=vals: _change_deck_to(d, v))

AttributeError: ‘NoneType’ object has no attribute ‘editor’

安装插件后出现的错误=
您安装的某个插件加载失败。如果此问题仍无法解决,请移步 工具-插件 菜单,并禁用或者删除插件。

When loading ‘⁨AwesomeTTS for Anki 21 updated again⁩’:

⁨Traceback (most recent call last):

File “aqt\addons.py”, line 211, in loadAddons

File “C:\Users\YEDONG\AppData\Roaming\Anki2\addons21\2139632824_init_.py”, line 42, in

from . import awesometts # noqa, pylint:disable=wrong-import-position

File “C:\Users\YEDONG\AppData\Roaming\Anki2\addons21\2139632824\awesometts_init_.py”, line 36, in

from .player import Player

File “C:\Users\YEDONG\AppData\Roaming\Anki2\addons21\2139632824\awesometts\player.py”, line 25, in

from .text import RE_FILENAMES

File “C:\Users\YEDONG\AppData\Roaming\Anki2\addons21\2139632824\awesometts\text.py”, line 35, in

RE_CLOZE_BRACED = re.compile(anki.template.template.clozeReg % r’\d+’)

AttributeError: module ‘anki.template’ has no attribute ‘template’

Could not retrieve api_token from configuration file.

Try running Tools >> Setup Habitica

错误

有一个错误发生了.请在按住shift键的同时启动Anki,这样可以临时的禁用您已经安装的插件。

如果仅仅是因为插件引起的问题,请选择工具>插件菜单项来将出错的的插件设置成失效,然后重启Anki,重复以上的步骤直到你发现了具体是哪个插件引起的问题。

当你已经发现是因为插件引起的问题,请在我们的支持网站上 插件支持 上报告问题。

调试信息:

Anki 2.1.33 (3f403040) Python 3.8.0 Qt 5.14.1 PyQt 5.14.1

Platform: Windows 10

Flags: frz=True ao=True sv=2

Add-ons, last update check: 2020-09-23 08:22:06

Caught exception:

Traceback (most recent call last):

File “C:\Users\YEDONG\AppData\Roaming\Anki2\addons21\1331140127\quick_note_deck_buttons_24_.py”, line 268, in

func = lambda _=None, s=chooser, d=e: do_function(s, d)

File “C:\Users\YEDONG\AppData\Roaming\Anki2\addons21\1331140127\quick_note_deck_buttons_24_.py”, line 403, in change_deck_to

self.addcards.editor.saveNow(lambda d=self, v=vals: _change_deck_to(d, v))

AttributeError: ‘NoneType’ object has no attribute ‘editor’

About AwesomeTTS, it’s outdated, either install https://ankiweb.net/shared/info/814349176 or https://ankiweb.net/shared/info/1436550454, or just use {{tts en_US:Front}} in your card template - https://docs.ankiweb.net/#/templates/fields?id=text-to-speech

About 1331140127 (Quick note and deck buttons), it seems to work for me if I use it from the Add cards window, maybe uninstall and install it again, or try to disable all add-ons except this one to see if it’s working and then enable all add-ons one by one to find the add-on that might cause this error.

1 Like