Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

this addon is what i need but i cant embed the audio at the last step #15

Closed
cindynap opened this issue Aug 28, 2022 · 3 comments
Closed

Comments

@cindynap
Copy link

错误
发生了一个错误。请在启动Anki时按住「Shift」键临时禁用插件加载。 如仅在插件启用时出错,请使用「工具」>「插件」功能禁用部分插件后重启Anki, 请重复上述步骤直至找到引起错误的插件。 找到引起错误的插件后,请反馈给插件作者。 调试信息:
Anki 2.1.54 (b6a7760c) Python 3.9.7 Qt 6.3.1 PyQt 6.3.1
Platform: Windows 10
Flags: frz=True ao=True sv=2
Add-ons, last update check: 2022-08-27 22:59:21

Caught exception:
Traceback (most recent call last):
File "C:\Users\cindy\AppData\Roaming\Anki2\addons21\560814150\ForvoTts.py", line 151, in
previewButton.clicked.connect(lambda: self.previewAudio(ankiAudioObject))
File "C:\Users\cindy\AppData\Roaming\Anki2\addons21\560814150\ForvoTts.py", line 164, in previewAudio
fullpath = self.getDefinteConfigPath() + AnkiAudioGlobals.TEMP_FILE_PREFIX + audioObject.getBucketFilename()
File "C:\Users\cindy\AppData\Roaming\Anki2\addons21\560814150\ForvoTts.py", line 203, in getDefinteConfigPath
if(configPath[-1] != "\" or configPath[-1] !="/"):
IndexError: string index out of range

@MrVhek
Copy link

MrVhek commented Aug 28, 2022

Did you setup the download path as specified in the setup ?
I think the error shall be more explicit like raise Exception("Missing download path configuration").

@Rascalov
Copy link
Owner

@cindynap Have you tried @MrVhek's solution?
This part of the readme gives more info where to edit the downloadPath
https://github.com/Rascalov/Anki-Simple-Forvo-Audio#installation

@cindynap
Copy link
Author

cindynap commented Aug 31, 2022 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants