Stvad / CrowdAnki

Plugin for Anki SRS designed to facilitate cooperation on creation of notes and decks.
MIT License
520 stars 44 forks source link

upgrading through anki or installing from the website gets me an old release #171

Open hobbes opened 1 year ago

hobbes commented 1 year ago

hello,

starting my anki after a long time, I get the issue reported here: https://github.com/Stvad/CrowdAnki/issues/156

No problem, I see that it has been corrected in the meantime, so I upgrade the module through anki. But this does not solve the problem... So I uninstall the module, restart anki, reinstall the module with the 1788670778 code, restart anki... and bam, same error message...

And indeed, in the dist directory I have two versions of tabulate: 0.8.3 and 0.8.5... but not 0.8.9 as it should be.

Am I missing something ?

Thanks, -- Rémi

aplaice commented 1 year ago

I'm sorry that you're affected by this!

Could you give me your Anki version?

As a workaround (obviously we should also fix the underlying issue!), you could try manually downloading the addon:

wget 'https://ankiweb.net/shared/download/1788670778?v=2.1&p=54'

where the last element (here 54) represents the "patch" Anki version (2.1.patch — e.g. 2.1.54).

hobbes commented 1 year ago

Hello,

thanks for your fast answer :-)

My anki version is 2.1.15. It's pretty old, but the build system and dependencies changed significantly after that, which made packaging it for debian problematic. They are working on it, but it will take time.

I managed to manually copy the tabulate.py file, so I'm able to use it.

aplaice commented 1 year ago

My anki version is 2.1.15. It's pretty old, but the build system and dependencies changed significantly after that, which made packaging it for debian problematic. They are working on it, but it will take time.

Oh. :( So it's Anki 2.1.15, but with Python 3.10. It seems that Debian is patching Anki to get it to even run with Python3.10:

https://sources.debian.org/data/main/a/anki/2.1.15+dfsg-3/debian/patches/

(It's highly unfortunate, that Anki's build system has been changed to such an extent that packaging it is very hard.)


Unfortunately, the add-on was updated (for Python 3.10) only for later Anki versions (2.1.40+). It would be tricky to update CrowdAnki for Anki 2.1.15 for a variety of reasons. (For instance, Anki has made various backwards incompatible changes to its codebase in the meantime, which means that CrowdAnki had to be modified to deal with these, and hence current CrowdAnki won't work with old Anki 2.1.15 out-of-the-box. There are several ways of going around this (e.g. just replace tabulate.py in the version of CrowdAnki available for 2.1.15:)), but they're all rather finicky or ugly. Also, updating AnkiWeb for old versions of Anki is, from what I understand, annoying.)


In any case, I'm glad that you at least managed to fix the issue for yourself!