Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
hobbes opened this issue Oct 20, 2022 · 3 comments
Open

Comments

@hobbes
Copy link

hobbes commented Oct 20, 2022

hello,

starting my anki after a long time, I get the issue reported here: #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
Copy link
Collaborator

aplaice commented Oct 20, 2022

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
Copy link
Author

hobbes commented Oct 20, 2022

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
Copy link
Collaborator

aplaice commented Oct 20, 2022

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!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants