krmanik / Sentence-Adder-Anki-Addon

Add sentences to Anki editor window in one click
GNU Affero General Public License v3.0
14 stars 6 forks source link

No sentences found! Change language or add database! Version ⁨2.1.49 (dc80804a)⁩ #10

Closed immunekang closed 2 years ago

immunekang commented 2 years ago

I can't get the add-on to work on my mac os 11.6.5. I had used this app before. I deleted and added the add-on and tsv database several times. Im not sure what is happening. Any ideas?

krmanik commented 2 years ago

I have to test it locally on my mac os. I will let you know later. Which Anki Version you are using?

immunekang commented 2 years ago

Thank you. I am using version 2.1.49.

immunekang commented 2 years ago

Error An error occurred. Please start Anki while holding down the shift key, which will temporarily disable the add-ons you have installed. If the issue only occurs when add-ons are enabled, please use the Tools > Add-ons menu item to disable some add-ons and restart Anki, repeating until you discover the add-on that is causing the problem. When you've discovered the add-on that is causing the problem, please report the issue to the add-on author. Debug info: Anki 2.1.53 (96bacf79) Python 3.9.7 Qt 6.3.0 PyQt 6.3.0 Platform: Mac 11.6.7 Flags: frz=True ao=True sv=2 Add-ons, last update check: 2022-06-15 07:40:23 Add-ons possibly involved: ⁨Sentence adder for any language with batch add option⁩

Caught exception: Traceback (most recent call last): File "/Users/aaa/Library/Application Support/Anki2/addons21/1682655437/init.py", line 261, in createDBFromTSV self.moveFront() File "/Users/aaa/Library/Application Support/Anki2/addons21/1682655437/init.py", line 271, in moveFront self.setFocus(True) TypeError: arguments did not match any overloaded call: setFocus(self): too many arguments setFocus(self, Qt.FocusReason): argument 1 has unexpected type 'bool'

krmanik commented 2 years ago

Hi, I have updated the addons, try it the bug is fixed and also more features added. Also please provide feedback for improvements.

Note: If already created the sentences database then save a copy of lang_db and config.json folder from Anki2/addons21/1682655437/ into Anki2/addons21/1682655437/user_files/

immunekang commented 2 years ago

Hi, I am using Anki 2.1.53 and running mac os Big Sur version 11.6.7. This is the new message I am getting. Screen Shot 2022-06-19 at 19 39 44

krmanik commented 2 years ago

Hi, there is check option for Sentences contain spaces check it for English language because CJK language does not contains generally.

image

immunekang commented 2 years ago

Something is still wrong. It says that there is no database.

Sentence pairs in Hungarian-English - 2022-06-15.db copy.zip Screen Shot 2022-06-22 at 09 38 27 Screen Shot 2022-06-22 at 09 27 49

krmanik commented 2 years ago

You table does not contains sentences, because it sentences pairs files, it is not implemented yet. In next version it will be implemented. image

immunekang commented 2 years ago

Ahh, so I must only Download sentences from a given language and not language pairs. I’m sorry for my confusion and thank you for your help. I’m looking forward to the sentence pair option in the next version. Thank your very much!