Package Details: anki 24.11-2

Git Clone URL: https://aur.archlinux.org/anki.git (read-only, click to copy)
Package Base: anki
Description: Helps you remember facts (like words/phrases in a foreign language) efficiently
Upstream URL: https://apps.ankiweb.net/
Keywords: anki languages learning vocabulary
Licenses: AGPL3
Conflicts: anki-bin, anki-git, anki-qt5
Submitter: demize
Maintainer: AlexBocken
Last Packager: AlexBocken
Votes: 178
Popularity: 4.02
First Submitted: 2021-09-17 22:31 (UTC)
Last Updated: 2024-12-23 08:04 (UTC)

Latest Comments

1 2 3 4 5 6 .. 31 Next › Last »

AlexBocken commented on 2024-12-30 21:21 (UTC)

@stellarium Thanks for the report! Looking at the proper /usr/bin/anki seems to indicate that this file has not been updated for you. run() should be importable from aqt but it's never called as aqt.run(), instead it's imported directly via from aqt import run.

Are you sure you have completed a full python 3.13 upgrade? To make sure that at least anki is properly installed would you mind uninstalling, checking whether /usr/bin/anki is still present (removing it if it is) and reinstalling it?

As anki only depends on python packages in the default repos of arch, anything more convoluted should really not be necessary unless you're running something like manjaro.

stellarium commented on 2024-12-30 21:13 (UTC) (edited on 2024-12-30 21:13 (UTC) by stellarium)

I've been having the same issue as some people here. Anki used to launch, now it doesn't.

Traceback (most recent call last): File "/usr/bin/anki", line 4, in <module> aqt.run() ^^^^^^^ AttributeError: module 'aqt' has no attribute 'run'

AlexBocken commented on 2024-12-27 11:31 (UTC)

@texer22 Thanks for the report! python-protobuf is listed as a dependency of this package. reinstalling this via sudo pacman -S python-protobuf --asdeps should fix your issue. Maybe you have installed another package which has been providing protobuf for you, then please consider rebuilding this package manually as it probably has not been bumped to force a rebuild against python 3.13.

texer22 commented on 2024-12-24 18:08 (UTC) (edited on 2024-12-24 18:09 (UTC) by texer22)

I cannot run this program.


 Traceback (most recent call last):
  File "/usr/bin/anki", line 5, in <module>
    from aqt import run
  File "/usr/lib/python3.13/site-packages/aqt/__init__.py", line 49, in <module>
    import anki.lang
  File "/usr/lib/python3.13/site-packages/anki/lang.py", line 13, in <module>
    import anki._backend
  File "/usr/lib/python3.13/site-packages/anki/_backend.py", line 17, in <module>
    from anki import _rsbridge, backend_pb2, i18n_pb2
  File "/usr/lib/python3.13/site-packages/anki/backend_pb2.py", line 7, in <module>
    from google.protobuf import descriptor as _descriptor
ModuleNotFoundError: No module named 'google.protobuf'

AlexBocken commented on 2024-12-23 08:52 (UTC)

@pipep many thanks for the report! Indeed, with the release of python 3.13 a rebuild is necessary. I've bumped the pkgrel to force a rebuild for all users.

pipep commented on 2024-12-22 20:37 (UTC)

After the latest system update I performed today with pacman -Syu, Anki stopped launching and showed the error ModuleNotFoundError: No module named 'aqt'. I fixed it by rebuilding and reinstalling Anki.

mirai commented on 2024-11-07 08:49 (UTC) (edited on 2024-11-07 08:49 (UTC) by mirai)

that would explain why the version of anki is so old. I remember once having to reinstall anki, maybe i screwed up at that point forgetting I did it locally at first. When running

$ which anki
/usr/local/bin/anki

$ where anki
/usr/local/bin/anki
/usr/bin/anki
/bin/anki

so I must have just confused the installs a long time ago and only now did it come to bite me.

AlexBocken commented on 2024-11-06 21:08 (UTC)

@mirai thanks for getting back! Good to hear. It seems like you probably had anki installed twice then, once via your package manager and maybe once via a local build. Running anki then probably preferred the locally built one. The package does not deploy the uninstall script so that must have come from the local version if you had it on your system.

For future reference you can check if a package has installed a program (and which package) via a quick pacman -Qo $(which anki). That would have probably have shown you something like the following:

◆ ~ ❯❯❯ pacman -Qo $(which anki)
error: No package owns /usr/local/bin/anki

Thanks again for the quick communication, hope I could help.

mirai commented on 2024-11-06 21:00 (UTC) (edited on 2024-11-06 21:01 (UTC) by mirai)

Reinstalling did the job spot on, but I'm still quite confused as to what would have caused that. Even after clearing the cache it wouldn't rebuild properly, forcing me to use the uninstall script.

AlexBocken commented on 2024-11-06 20:42 (UTC)

@mirai Thanks for the report! anki -v displays the correct version for me. Could you retry a re-install with a clean AUR helper cache? I'm not quite sure why but I'm assuming you have a faulty cache which reinstalls on older build for you.