wilddom / memrise2anki-extension

An extension for Anki 2 that downloads and converts a course from Memrise into an Anki deck.
ISC License
159 stars 22 forks source link

Error importing cards: 'ModelManager' object has no attribute 'all_names' #108

Closed twoofclubs closed 2 years ago

twoofclubs commented 2 years ago

Hi,

I could install the add-on fine, but got the following error message when I tried to import a course, after the course reached 100%. The deck is created but no cards are in it.

Error message:

Debug info: Anki 2.1.35 (84dcaa86) Python 3.8.0 Qt 5.14.2 PyQt 5.14.2 Platform: Windows 10 Flags: frz=True ao=True sv=2 Add-ons, last update check: 2022-01-02 21:08:02

Caught exception: Traceback (most recent call last): File "C:\Users[USER]\AppData\Roaming\Anki2\addons21\memrise2anki\importer.py", line 884, in importCourse model = self.modelMapper.getModel(thing, deck) File "C:\Users[USER]\AppData\Roaming\Anki2\addons21\memrise2anki\importer.py", line 384, in getModel self.fillModelSelection() File "C:\Users[USER]\AppData\Roaming\Anki2\addons21\memrise2anki\importer.py", line 263, in fillModelSelection for name in sorted(self.col.models.all_names()): AttributeError: 'ModelManager' object has no attribute 'all_names'

During handling of the above exception, another exception occurred:

Traceback (most recent call last): File "C:\Users[USER]\AppData\Roaming\Anki2\addons21\memrise2anki\importer.py", line 950, in importCourse raise exc_info0.with_traceback(exc_info[2]) File "C:\Users[USER]\AppData\Roaming\Anki2\addons21\memrise2anki\importer.py", line 884, in importCourse model = self.modelMapper.getModel(thing, deck) File "C:\Users[USER]\AppData\Roaming\Anki2\addons21\memrise2anki\importer.py", line 384, in getModel self.fillModelSelection() File "C:\Users[USER]\AppData\Roaming\Anki2\addons21\memrise2anki\importer.py", line 263, in fillModelSelection for name in sorted(self.col.models.all_names()): AttributeError: 'ModelManager' object has no attribute 'all_names'

wilddom commented 2 years ago

You should update Anki, the current version is 2.1.49