I use this on a daily base and I mean to keep it constantly updated with the changes on Reverso site. Please let me know if you encounter any problems and I will promptly fix them.
hi,
thank you so much for this addon , however i found this error , can you fix it please
Debug info:
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=1
Add-ons, last update check: 2020-09-06 00:35:46
Caught exception:
Traceback (most recent call last):
File âC:\Users\thiag\AppData\Roaming\Anki2\addons21\2060267742\gui.pyâ, line 366, in download_words
self.reverso_import.client.import_data(words, deck_name=self.deckField.currentText())
File âC:\Users\thiag\AppData\Roaming\Anki2\addons21\2060267742\client.pyâ, line 192, in import_data
self.get_model()
File âC:\Users\thiag\AppData\Roaming\Anki2\addons21\2060267742\client.pyâ, line 150, in get_model
return model.create_model()
File âC:\Users\thiag\AppData\Roaming\Anki2\addons21\2060267742\reverso_model.pyâ, line 143, in create_model
self.model[âtagsâ].append(self.NAME)
KeyError: âtagsâ
Hi, thanks for taking the time to report this. Iâll check why this code misbehaves on Windows and will report back as soon as possible.
EDIT: it doesnât depend on Windows. Newer versions of Anki have different behaviour. Iâll update the code as soon as Iâll work out what needs to be done.
i got this crash ,your addon looks amazing i use reverso a lot too
Debug info:
Anki 2.1.34 (8af8f565) Python 3.8.0 Qt 5.15.1 PyQt 5.15.1
Platform: Windows 10
Flags: frz=True ao=True sv=1
Add-ons, last update check: 2020-09-28 17:58:13
Caught exception:
Traceback (most recent call last):
File âC:\Users\Johiny\AppData\Roaming\Anki2\addons21\2060267742\gui.pyâ, line 366, in download_words
self.reverso_import.client.import_data(words, deck_name=self.deckField.currentText())
File âC:\Users\Johiny\AppData\Roaming\Anki2\addons21\2060267742\client.pyâ, line 195, in import_data
self.import_notes()
File âC:\Users\Johiny\AppData\Roaming\Anki2\addons21\2060267742\client.pyâ, line 185, in import_notes
os.unlink(self.TMP_FILE.name)
PermissionError: [WinError 32] El proceso no tiene acceso al archivo porque estĂĄ siendo utilizado por otro proceso: 'C:\Users\Johiny\AppData\Local\Temp\reverso_ws69en8i.csv
Hi johiny, can you confirm me that you see all cards even if you get the error? It seems the only problem is that the temporary file is not deleted. This is jus to understand which is the correct fixâŚ
Ok, I solved it and release 1.7 is working on windows too (I tested it on Windows7 as I donât have access to Windows10, but Iâm confident it will work).
I hope youâll enjoy my add-on and in case you can upvote it!
Hi, Thank you for a great add on! I have two questions
Is It possible to import the example sentence to Anki as html? as I use the âa /aâ in the html line to highlight the target word [before the add-on I used to parse the Reverso website saving in the example sentences as html - having the âa /aâ tags - along with the words, export to csv, import in Anki and enable the html mark, and then later edit the .a in the css to make it bold and change its color for reviewing, it worked beautifully for my language learning ⌠and I was wondering if the add-on can have this feature.
Is it possible to also import the other sentence - when I use reverse context to look up a word and add it to favorites, 2 sentences are added: one in the target language, and the other in English for example.
I tired tinkering around in the add-on files, but I wasnât able to locate exactly where changes might be made.
onestly I didntâ think to this case and I donât have this (I use the plugin daily). Iâll take the time to investigate if itâs something I can do in a simple way. Not a promise to hurry up, sorryâŚ
I need some more info. Please go and browse the cards to see if it imported the cards but on a different deck (I know that happens sometime) or if really it doesnât import cards.
Does the import popup show up? Does it hang forever or it just pretend everything was fine but you donât see the cards.
If you browse the cards, do You see the type âReversoâ?
It did go to another deck, named âReversoâ by me so maybe I should change the name. Everything else worked fine appart of the deck staying empty.
So I guess I just manually transfer cards to the right deck every time.
Nevertheless, I just imported 410 words just with one click
Thank you sooooo very much for that, Iâm often working with texts with difficult foreign vocabulary, reverso is amazingly fast in translating, and now i can even do vocab study.
Sorry for the long delay @aabdelsameia . Really I didnât realize until last week you wroteâŚ
I never made any attempt to do this.
If you were using this already, it should be possible. What I do is create a CSV file and import it. The problem is that I strip any possible html to get the pure text part. I donât really understand why donât you add colors already from Anki, when the card is created (I do exactly this)
Hi Sandro! When you get some time, can you help me solve this problem?
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 on the add-on support site.
Debug info:
Anki 2.1.47 (dc156f34) Python 3.8.6 Qt 5.14.2 PyQt 5.14.2
Platform: Windows 10
Flags: frz=True ao=True sv=3
Add-ons, last update check: 2021-09-24 14:21:04
Caught exception:
Traceback (most recent call last):
File âC:\Users\63696\AppData\Roaming\Anki2\addons21\2060267742\gui.pyâ, line 366, in download_words
self.reverso_import.client.import_data(words, deck_name=self.deckField.currentText())
File âC:\Users\63696\AppData\Roaming\Anki2\addons21\2060267742\client.pyâ, line 189, in import_data
self.get_model()
File âC:\Users\63696\AppData\Roaming\Anki2\addons21\2060267742\client.pyâ, line 145, in get_model
model = self.model_class()
File âC:\Users\63696\AppData\Roaming\Anki2\addons21\2060267742\reverso_model.pyâ, line 139, in init
self.modify_template(last_installed_version)
File âC:\Users\63696\AppData\Roaming\Anki2\addons21\2060267742\reverso_model.pyâ, line 157, in modify_template
self.model[âtmplsâ][1][âqfmtâ] = TEMPLATES[âreversedâ][âqfmtâ]
IndexError: list index out of range
Hi, Sandro.
Iâm getting error. Can you help me?
OS: Ubuntu 20.04
Debug info:
Anki 2.1.15 (442df9d6) Python 3.8.10 Qt 5.12.8 PyQt 5.14.1
Platform: Linux
Flags: frz=False ao=True sv=2
Add-ons possibly involved: Reverso importer
Caught exception:
File "/home/user/.local/share/Anki2/addons21/2060267742/gui.py", line 366, in download_words
self.reverso_import.client.import_data(words, deck_name=self.deckField.currentText())
File "/home/user/.local/share/Anki2/addons21/2060267742/client.py", line 189, in import_data
self.get_model()
File "/home/user/.local/share/Anki2/addons21/2060267742/client.py", line 148, in get_model
return model.create_model()
File "/home/user/.local/share/Anki2/addons21/2060267742/reverso_model.py", line 169, in create_model
self.create_templates()
File "/home/user/.local/share/Anki2/addons21/2060267742/reverso_model.py", line 179, in create_templates
mw.col.models.addTemplate(self.model, template)
File "/usr/share/anki/anki/models.py", line 359, in addTemplate
self.save(m)
File "/usr/share/anki/anki/models.py", line 90, in save
self._updateRequired(m)
File "/usr/share/anki/anki/models.py", line 499, in _updateRequired
ret = self._reqForTemplate(m, flds, t)
File "/usr/share/anki/anki/models.py", line 510, in _reqForTemplate
full = self.col._renderQA(data)['q']
File "/usr/share/anki/anki/collection.py", line 562, in _renderQA
for (name, (idx, conf)) in list(self.models.fieldMap(model).items()):
File "/usr/share/anki/anki/models.py", line 240, in fieldMap
return dict((f['name'], (f['ord'], f)) for f in m['flds'])
<class 'TypeError'>: 'NoneType' object is not subscriptable
Hello, thanks for the great plug in, it works, only a small thing that it doesnât seem to go to the folder I select for it but default instead, but I can live with that.
What I wanted to ask is there I way I can change the format of the created card? Iâd like it to be a cloze on the word that I looked up. Iâm new to anki, so not sure if I need to adjust the code or another plugin or another way to do it.