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 when using the add on #105

Open William100-0 opened 2 years ago

William100-0 commented 2 years ago

Hi everyone - managed to use this add-on successfully earlier in the year, but now getting this error message every time. Does anyone happen to know a solution?

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, repeat 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.49 (dc80804a) Python 3.8.6 Qt 5.14.2 PyQt 5.14.2 Platform: Windows 10 Flags: frz=True ao=True sv=2 Add-ons, last update check: 2021-11-25 14:49:24

Caught exception: Traceback (most recent call last): File "C:\Users\ryank\AppData\Roaming\Anki2\addons21\memrise2anki-extension-master\importer.py", line 853, in importCourse raise exc_info0.with_traceback(exc_info[2]) TypeError: init() missing 4 required positional arguments: 'code', 'msg', 'hdrs', and 'fp'

heyheyrainyday commented 2 years ago

My friends and I have been having the same problem. Even when we follow other people's instructions of how they fixed it, nothing works. Looking forward to having it work though. I've heard good things about this add-on

wilddom commented 2 years ago

Hm... can this be reproduced?

heyheyrainyday commented 2 years ago

Absolutely. It happens every time I try.

Sent from my iPhone

On Dec 27, 2021, at 4:03 PM, wilddom @.***> wrote:

 Hm... can this be reproduced?

— Reply to this email directly, view it on GitHub, or unsubscribe. Triage notifications on the go with GitHub Mobile for iOS or Android. You are receiving this because you commented.

wilddom commented 2 years ago

I've never seen this happen. Could you post the course url? Did you try the latest release?

heyheyrainyday commented 2 years ago

It wouldn't even let me get far enough to try converting any courses. I keep getting this error instead: [image: Screen Shot 2021-12-29 at 11.59.42 PM.png]

This is with the latest release and I've tried doing what everyone else says to try many times. Always this. Other friends have tried it and get the same error.

On Wed, Dec 29, 2021 at 3:44 AM wilddom @.***> wrote:

I've never seen this happen. Could you post the course url? Did you try the latest release?

— Reply to this email directly, view it on GitHub https://github.com/wilddom/memrise2anki-extension/issues/105#issuecomment-1002531159, or unsubscribe https://github.com/notifications/unsubscribe-auth/AWW3UR7ZJQV6SJ3VQ57B723UTLRCFANCNFSM5I2YABPQ . Triage notifications on the go with GitHub Mobile for iOS https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 or Android https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub.

You are receiving this because you commented.Message ID: @.***>

-- Aubrey Farnsworth

wilddom commented 2 years ago

The screenshot is broken, I'm afraid.

I've tried doing what everyone else says to try many times.

And that's what exactly?

heyheyrainyday commented 2 years ago

Does it work if I send it as an attachment?

With the latest release, I get error messages. As recommended, I go into memrise.py and make sure all the "www.memrise" is changed to "app.memrise", and so do the other people in my study group. And we all get a similar message (I replaced part of the message for privacy reasons):

Anki 2.1.49 (dc80804a) Python 3.8.6 Qt 5.14.2 PyQt 5.14.2

Platform: Mac 10.16

Flags: frz=True ao=True sv=2

Add-ons, last update check: 2021-12-30 14:05:16

Add-ons possibly involved: ⁨release⁩

Caught exception:

Traceback (most recent call last):

File "/Users/heyheyrainyday/Library/Application Support/Anki2/addons21/release/importer.py", line 214, in accept

if self.memriseService.login(self.usernameLineEdit.text(),self.passwordLineEdit.text()):

File "/Users/heyheyrainydayh/Library/Application Support/Anki2/addons21/release/memrise.py", line 840, in login

for field in form.find_all("input"):

AttributeError: 'NoneType' object has no attribute 'find_all'

On Thu, Dec 30, 2021 at 12:43 AM wilddom @.***> wrote:

The screenshot is broken, I'm afraid.

I've tried doing what everyone else says to try many times.

And that's what exactly?

— Reply to this email directly, view it on GitHub https://github.com/wilddom/memrise2anki-extension/issues/105#issuecomment-1002909267, or unsubscribe https://github.com/notifications/unsubscribe-auth/AWW3UR6Y7ASSNCYDY5LJJ73UTQESNANCNFSM5I2YABPQ . Triage notifications on the go with GitHub Mobile for iOS https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 or Android https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub.

You are receiving this because you commented.Message ID: @.***>

-- Aubrey Farnsworth

wilddom commented 2 years ago

You are definitely using an old version of the addon, please try the 1.2.7 release. And actually this issue opened by @William100-0 is about a different error.

jonahlash commented 2 years ago

Im getting the same problem with the 1.2.7 release (and any release I can find)

'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, repeat 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.43 (0fbae6bc) Python 3.8.6 Qt 5.14.2 PyQt 5.14.2 Platform: Mac 10.16 Flags: frz=True ao=True sv=2 Add-ons, last update check: 2022-03-31 17:36:23 Add-ons possibly involved: ⁨memrise2anki⁩

Caught exception: Traceback (most recent call last): File "/Users/jonahlash/Library/Application Support/Anki2/addons21/memrise2anki/importer.py", line 856, in importCourse raise exc_info0.with_traceback(exc_info[2]) File "/Users/jonahlash/Library/Application Support/Anki2/addons21/memrise2anki/importer.py", line 151, in run course = self.memriseService.loadCourse(self.url, MemriseCourseLoader.Observer(self)) File "/Users/jonahlash/Library/Application Support/Anki2/addons21/memrise2anki/memrise.py", line 870, in loadCourse return courseLoader.loadCourse(self.getCourseIdFromUrl(url)) File "/Users/jonahlash/Library/Application Support/Anki2/addons21/memrise2anki/memrise.py", line 623, in loadCourse course.title = sanitizeName(courseData["session"]["course"]["name"], "Course") TypeError: 'NoneType' object is not subscriptable'

Could I change something in the code to fix it?

wilddom commented 2 years ago

@jonahlash This is a different error, I opened a new issue: #113

AR-999 commented 2 years ago

Same error!

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-on support site. Debug info: Anki 2.1.49 (dc80804a) Python 3.8.6 Qt 5.14.2 PyQt 5.14.2 Platform: Windows 10 Flags: frz=True ao=True sv=1 Add-ons, last update check: 2022-05-09 09:47:33

Caught exception: Traceback (most recent call last): File "C:\Users\Maximuss\AppData\Roaming\Anki2\addons21\2071525018\importer.py", line 968, in startCourseImporter File "C:\Users\Maximuss\AppData\Roaming\Anki2\addons21\2071525018\memrise.py", line 764, in isLoggedIn File "C:\Users\Maximuss\AppData\Roaming\Anki2\addons21\2071525018\memrise.py", line 752, in openWithRetry File "urllib\request.py", line 531, in open File "urllib\request.py", line 640, in http_response File "urllib\request.py", line 569, in error File "urllib\request.py", line 502, in _call_chain File "urllib\request.py", line 649, in http_error_default urllib.error.HTTPError: HTTP Error 403: Forbidden

wilddom commented 2 years ago

See #113