Debug info:
Anki 2.1.42 (8eebfe18) Python 3.8.6 Qt 5.14.2 PyQt 5.14.2
Platform: Mac 10.16
Flags: frz=True ao=True sv=2
Add-ons, last update check: 2021-03-21 11:48:36
Add-ons possibly involved: Sentence adder for any language
Caught exception:
Traceback (most recent call last):
File “/Users/user/Library/Application Support/Anki2/addons21/1682655437/init.py”, line 87, in createDB
curs.execute(
sqlite3.OperationalError: table examples already exists
I have checked the error.
It happens when you recreate the db for same language.
For e.g. if you have created database for Japanese language from jpn_sentences.tsv
and again try to create same db for that file then the error shows as it already exists.
To remove error do either of following
- Rename the tsv file and try again
For e.g. rename jpn_sentences.tsv
with jpn_sentences123.tsv
or
- Delete the generated language db from addons folder
View lang_db in Sentence adder addons folder in Anki2 directory
In next update I will implement to handle these errors.
1 Like
Thanks, everything works.