kelciour / improved-quizlet-to-anki-21-importer

21 stars 7 forks source link

Quizlet Import Issue #15

Open RobinCate2 opened 2 years ago

RobinCate2 commented 2 years ago

When I import the deck I get this error code. The deck shows up on my profile, but there are no cards in the imported deck. I've checked for updates. Anyway to fix the issue?

Debug info: Anki 2.1.54 (b6a7760c) Python 3.9.7 Qt 5.15.2 PyQt 5.15.5 Platform: Windows 10 Flags: frz=True ao=True sv=2 Add-ons, last update check: 2022-08-24 17:40:08

Caught exception: Traceback (most recent call last): File "C:\Users\robin\AppData\Roaming\Anki2\addons21\538351043__init.py", line 369, in onCode self.downloadSet(url) File "C:\Users\robin\AppData\Roaming\Anki2\addons21\538351043\init.py", line 461, in downloadSet self.createDeck(deck, parentDeck) File "C:\Users\robin\AppData\Roaming\Anki2\addons21\538351043\init.py", line 580, in createDeck file_name = self.fileDownloader(term["_imageUrl"]) File "C:\Users\robin\AppData\Roaming\Anki2\addons21\538351043\init__.py", line 606, in fileDownloader with open(file_name, 'wb') as f: PermissionError: [Errno 13] Permission denied: 'quizlet-V.ldFeD.4XpqSqlskW0Klg.png'

cptmedic commented 1 year ago

PR #16 should provide a quick fix for failed image downloads