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

Any plan to support Anki 2.1.x? #61

Closed x-ji closed 5 years ago

x-ji commented 6 years ago

Got an error while trying to use the plugin today.

When loading 'Memrise_Course_Importer':
Traceback (most recent call last):
  File "/usr/share/anki/aqt/addons.py", line 60, in loadAddons
    __import__(dir)
  File "/home/jx/.local/share/Anki2/addons21/Memrise_Course_Importer/__init__.py", line 8, in <module>
    from . import importer
  File "/home/jx/.local/share/Anki2/addons21/Memrise_Course_Importer/importer.py", line 840
    raise exc_info[0], exc_info[1], exc_info[2]
                     ^
SyntaxError: invalid syntax

And then realized on Arch Linux the newest Anki (v. 2.1.x) is automatically installed. Apparently the plugin doesn't work in Python 3. Had to install Anki 2.0.x to make it work.

Is there any plan now to support v. 2.1.x or is that currently not a priority and would wait until the new version sees wide adoption etc.? Guess this is a common problem with Python-based apps.

Neribr commented 6 years ago

anki 2.1 was a mistake, stick to 2.0

x-ji commented 6 years ago

Sure. That's a way to look at it...

wilddom commented 6 years ago

I will support 2.1 as soon as it comes out of beta.

See here: https://anki.tenderapp.com/kb/anki-ecosystem/arch-linux-has-packaged-an-alpha-build-that-could-cause-data-loss

x-ji commented 6 years ago

Makes sense.

jostyee commented 6 years ago

@wilddom Anki 2.1 has been released, hope this plugin can be updated too.

wilddom commented 6 years ago

Unfortunately I'm too busy with other stuff at the moment, sorry...

jostyee commented 6 years ago

no problem, take your time.

chefexperte commented 6 years ago

I don't know Python, but many other languages. So how different is the old Python from the new? If it is similar to the old one and only a few changes are needed maybe I can do it, programming languages are easy to learn if you already know a lot of them

aTTocs commented 5 years ago

I did a lot of the dirty work of porting to Anki 2.1, but then hit the limit of my abilities. If anyone is interested in going further, please take a look at my fork: aTTocs / memrise2anki-extension.

I got it to load cleanly into Anki, ran the 'Import Memrise Course...' menu item, entered username and password, clicked OK, and the resulting error ended with this: File "(path to Anki2)\Anki2\addons21\MemriseToAnki\Memrise_Course_Importer\memrise.py", line 715, in read return response.read_savedoriginal(n) File "http\client.py", line 448, in read <class 'ValueError'>: negative count

wilddom commented 5 years ago

You can try the anki21 master branch. But it's not thoroughly tested, so there may be still some bugs left...

aTTocs commented 5 years ago

It worked for me without any problems that I could detect.

Thanks!!