Anki Forums

Reverso plugin - Official Support Thread

Hi,

I have uploaded a plugin that connects to the free service Reverso, downloads the history or the favorites and imports them in a deck.

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.

sandro

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.

sandro

I just up uploaded rel 1.6 that should fix this problem. @abpablo19dm can you please confirm it’s working for you?

i got this crash :frowning: ,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…

sandro

no, I don’t see any card imported, my deck is equal than before

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! :wink:

it works perfectly thx! :slight_smile: