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

Attribute error - convertAndReturnImages #76

Closed albo2albo closed 5 years ago

albo2albo commented 5 years ago

I think this error may have been reported already on #66, but I still get the error when importing these courses https://www.memrise.com/course/88361/sql-4/ https://www.memrise.com/course/292383/cloud-classification/ https://www.memrise.com/course/160/trees-of-britain-leaves/

deselecting Mems, as suggested in the other thread, doesn't seem to help.

Thanks

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-ons section of our support site. Debug info: Anki 2.1.12 (eef86bf3) Python 3.6.7 Qt 5.12.1 PyQt 5.11.3 Platform: Windows 10 Flags: frz=True ao=True sv=1

Caught exception: File "C:\Users\Alan Smith\AppData\Roaming\Anki2\addons21\memrise2anki-extension-master\importer.py", line 840, in importCourse raise exc_info0.with_traceback(exc_info[2]) File "C:\Users\Alan Smith\AppData\Roaming\Anki2\addons21\memrise2anki-extension-master\importer.py", line 146, in run course = self.memriseService.loadCourse(self.url, MemriseCourseLoader.Observer(self)) File "C:\Users\Alan Smith\AppData\Roaming\Anki2\addons21\memrise2anki-extension-master\memrise.py", line 788, in loadCourse return courseLoader.loadCourse(self.getCourseIdFromUrl(url)) File "C:\Users\Alan Smith\AppData\Roaming\Anki2\addons21\memrise2anki-extension-master\memrise.py", line 578, in loadCourse level = self.loadLevel(course, levelIndex) File "C:\Users\Alan Smith\AppData\Roaming\Anki2\addons21\memrise2anki-extension-master\memrise.py", line 683, in loadLevel level.pool.mems.add(self.loadMem(userData, memData, level.pool, self.service.toAbsoluteMediaUrl)) File "C:\Users\Alan Smith\AppData\Roaming\Anki2\addons21\memrise2anki-extension-master\memrise.py", line 629, in loadMem mem.text, remoteImageUrls = markdown.convertAndReturnImages(text) <class 'AttributeError'>: module 'markdown' has no attribute 'convertAndReturnImages'

wilddom commented 5 years ago

Well, the module has been renamed in order to fix that bug (6f5820ce9af776a4bdbb604ff02a29805c88e76c), so the report clearly shows that you are using an old version of the addon.

albo2albo commented 5 years ago

Ah - my bad. I had assumed the 'check for updates' button on the add-ons screen would check all sources, not realising it doesn't check Github. I've now downloaded and reinstalled memrise2anki and it works perfectly. Thank you for your very quick response.