Closed gitonthescene closed 3 years ago
Thanks for reporting!
This is due to an incompatibility between CrowdAnki
and Anki 2.1.40 (each release of Anki slightly changes the "base" that CrowdAnki
relies on, in some cases leading to incompatibility, and since Anki 2.1.40 was a fresh release, there hadn't been time to update CrowdAnki
).
The fix has now been applied in the git repository, and will probably be available tomorrow on ankiweb.net.
You can wait until then or temporarily downgrade to Anki 2.1.39 (just for the import).
I cloned the main anki repository, found aqt/main.py
(it's under the qt
directory, which makes it slightly harder to find), found the matching line (the line numbers have shifted slightly, but this is the only assertion in the backup
method), used git blame to determine what was the relevant change and guessed/thought how best to fix the issue here.
Thanks very much. This should improve my bug reporting for next time. :) FWIW, I didn't see any assertion in the PyPI version I referred to above. I guess the Anki folks don't sync it as regularly as releases? Worth reporting there??
FWIW, I didn't see any assertion in the PyPI version I referred to above.
That's weird. It should be there, since the version numbers are the same.
Worth reporting there??
Probably not unless something similar happens again.
Interestingly, the PyPI version is missing the comments and the assertion. Perhaps they were stripped for that, but I would have thought they'd be stripped in the binary release as well.
In any event. Thanks for the quick turnaround.
FWIW, I was able to update this deck just now. Thanks again for your fix.
I think this issue can be closed
I think only the owner of the repo and you as the creator of this issue, can close it! (I can't!)
Okay. I’ll just close it then. Thanks.
I'm having trouble uploading the latest version of the Ultimate Geography deck. I just upgraded both Anki and CrowdAnki and so there are a lot of moving parts. I tried removing and reinstalling CrowdAnki but got the same error.
There's not a lot to go on with the error message and I'm not sure where
aqt
is. I'm happy to debug further, but I'm going to need some guidance. I would appreciate any help you could offer.Regards,
[EDIT: I found aqt on PyPI, but I'm still not sure where the AssertionError is coming from. Also, I don't think the lines are matching up so it's tough to figure out if this is the same code.]