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

winerror 10060 #74

Open Dobtat opened 5 years ago

Dobtat commented 5 years ago

Got winerror 10060 while loading a huge course. (>40000 cards) Place: def do_open_wrapped(self, http_class, req, http_conn_args): response = self.do_open(http_class, req, http_conn_args)

wilddom commented 5 years ago

The error code 10060 means it cannot connect to the remote peer. A resume feature (#64) would be handy for such huge courses...

Dobtat commented 5 years ago

I switched off mems and media, but still got error at about 25%.

wilddom commented 5 years ago

Could you please post the full trace?

Dobtat commented 5 years ago

I'm trying again and I'll post the full trace when/if I get the error again.

Dobtat commented 5 years ago

Anki 2.1.9 (ae67c976) Python 3.6.7 Qt 5.12.1 PyQt 5.11.3 Platform: Windows 7 Flags: frz=True ao=True sv=1

Caught exception: File "C:\Users\Scorpions\AppData\Roaming\Anki2\addons21\memrise2anki-extension-master\importer.py", line 840, in importCourse raise exc_info0.with_traceback(exc_info[2]) File "C:\Users\Scorpions\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\Scorpions\AppData\Roaming\Anki2\addons21\memrise2anki-extension-master\memrise.py", line 789, in loadCourse return courseLoader.loadCourse(self.getCourseIdFromUrl(url)) File "C:\Users\Scorpions\AppData\Roaming\Anki2\addons21\memrise2anki-extension-master\memrise.py", line 579, in loadCourse level = self.loadLevel(course, levelIndex) File "C:\Users\Scorpions\AppData\Roaming\Anki2\addons21\memrise2anki-extension-master\memrise.py", line 673, in loadLevel thingData = self.service.loadThingData(thingId) File "C:\Users\Scorpions\AppData\Roaming\Anki2\addons21\memrise2anki-extension-master\memrise.py", line 832, in loadThingData response = self.openWithRetry(thingUrl) File "C:\Users\Scorpions\AppData\Roaming\Anki2\addons21\memrise2anki-extension-master\memrise.py", line 752, in openWithRetry return self.opener.open(url) File "urllib\request.py", line 526, in open File "urllib\request.py", line 544, in _open File "urllib\request.py", line 504, in _call_chain File "C:\Users\Scorpions\AppData\Roaming\Anki2\addons21\memrise2anki-extension-master\memrise.py", line 731, in https_open return self.do_open_wrapped(http.client.HTTPSConnection, req, context=self._context, check_hostname=self._check_hostname) File "C:\Users\Scorpions\AppData\Roaming\Anki2\addons21\memrise2anki-extension-master\memrise.py", line 721, in do_open_wrapped response = self.do_open(http_class, req, **http_conn_args) File "urllib\request.py", line 1320, in do_open <class 'urllib.error.URLError'>: <urlopen error <urlopen error [WinError 10060]