Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.
Sign upSentence-feature [generating pitch accent information for new or existing cards] works inconsistently #47
Comments
|
Can you try the again with the fixes in the latest commit and report back? |
|
I got a different error this time. That may be because of how I did it: I don't have any experience coding and I haven't used github before. I downloaded the commit's zipfile, unzipped it, then replaced all of my existing files in the addon's folder in with the files from .src in the commit. That being said, the program again failed to generate pitch accent information and yielded the following (new) debug info: Edit: I normally use Anki on my work computer, which is where I'm having this issue. I recently tested the program on my personal computer and did not run into this problem. ` Caught exception: |
|
That is not the correct way to apply those fixes. Uninstall the add-on and then dl the add-on at the link below and simply double click it when Anki is @OPEN to install it. Note that you must be on Anki 2.1.20, so if you are using an earlier version it will not work. Let me know if it works. http://www.mediafire.com/file/3bp8usm6f5slggs/MIADictionary2120v2.ankiaddon/file |
Type:
Environment:
I'm going to open a PR to resolve the issue:
Description:
Edit: It seems like the errors I'm receiving may have something to do with the restrictions on my work computer, where I do most of my Anki'ing. I tried on my personal computer and the program worked fine, both for individual cards and mass generation. I generated accents for ~20 individual cards and mass generated information for 3 decks, just for the sake of testing, but had ran into zero errors.
I'm attempting to add colored pitch accent information to this Core 2k deck. The majority of the time, clicking the expression field and then pressing the sentence button yields a failure with the below code, but if I cancel out of the error message and continually press the sentence button, it will occasionally generate color-coded words to display pitch accent information in what appears to be the intended fashion.
Error message:
`Anki 2.1.19 (3c8690ae) Python 3.8.0 Qt 5.14.0 PyQt 5.13.2
Platform: Windows 10
Flags: frz=True ao=True sv=2
Caught exception:
Traceback (most recent call last):
File "aqt\webview.py", line 28, in cmd
File "aqt\webview.py", line 94, in _onCmd
File "<C:\Program Files\Anki\decorator.pyc:decorator-gen-24>", line 2, in _onBridgeCmd
File "lib\site-packages\anki\hooks.py", line 82, in decorator_wrapper
File "lib\site-packages\anki\hooks.py", line 73, in repl
File "aqt\webview.py", line 407, in _onBridgeCmd
File "C:\Users\1910018\AppData\Roaming\Anki2\addons21\278530045\main.py", line 311, in bridgeReroute
mw.Exporter.finalizeGroupExport(self, splitList[1], field, self.note)
File "C:\Users\1910018\AppData\Roaming\Anki2\addons21\278530045\accentExporter.py", line 585, in finalizeGroupExport
results = self.wordData(results)
File "C:\Users\1910018\AppData\Roaming\Anki2\addons21\278530045\accentExporter.py", line 699, in wordData
del wordResults[-1]
IndexError: list assignment index out of range`
I've tried the following things: