Package Details: anki 24.04.1-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: 156
Popularity: 6.66
First Submitted: 2021-09-17 22:31 (UTC)
Last Updated: 2024-04-28 10:07 (UTC)

Latest Comments

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

AlbertoAru commented on 2024-05-06 00:09 (UTC)

error: could not compile `rsbridge` (lib)

Caused by:
  process didn't exit successfully: `rustc --crate-name rsbridge --edition=2021 pylib/rsbridge/lib.rs --error-format=json --json=diagnostic-rendered-ansi,artifacts,future-incompat --crate-type cdylib --emit=dep-info,link -C opt-level=3 -C lto --cfg 'feature="rustls"' -C metadata=be8ba0ff838fc137 --out-dir /home/user/.cache/yay/anki/src/anki-24.04.1/out/rust/release-lto/deps -C strip=debuginfo -L dependency=/home/user/.cache/yay/anki/src/anki-24.04.1/out/rust/release-lto/deps --extern anki=/home/user/.cache/yay/anki/src/anki-24.04.1/out/rust/release-lto/deps/libanki-2ccc2fc34cfb547d.rlib --extern pyo3=/home/user/.cache/yay/anki/src/anki-24.04.1/out/rust/release-lto/deps/libpyo3-40dd50523f202177.rlib -Cforce-frame-pointers=yes -C debuginfo=2 --remap-path-prefix=/home/user/.cache/yay/anki/src=/usr/src/debug/anki -L native=/home/user/.cache/yay/anki/src/anki-24.04.1/out/rust/release-lto/build/zstd-sys-8072f24a7c495386/out -L native=/home/user/.cache/yay/anki/src/anki-24.04.1/out/rust/release-lto/build/blake3-3a67b15edba96699/out -L native=/home/user/.cache/yay/anki/src/anki-24.04.1/out/rust/release-lto/build/blake3-3a67b15edba96699/out -L native=/home/user/.cache/yay/anki/src/anki-24.04.1/out/rust/release-lto/build/libsqlite3-sys-0d92725bc7d58897/out -L native=/home/user/.cache/yay/anki/src/anki-24.04.1/out/rust/release-lto/build/ring-62d75d0ba345d697/out` (signal: 9, SIGKILL: kill)
Failed with code Some(101): cargo build --profile release-lto --locked -p rsbridge --features rustls
ninja: build stopped: subcommand failed.

Build failed.
==> ERROR: A faillure was made in build().
    Cancelling...
 -> error compiling: anki-exit status 4
 -> Failed to install the following packages. Manual intervention is required:
anki - exit status 4

AlexBocken commented on 2024-05-02 14:11 (UTC)

I think @Vamp898 had a different issue, that was before the release of 3.12 for arch.

I usually bump the pkgrel for all my python-dependent packages when a new major release for python 3 is published, that automatically forces a rebuild on all systems. Technically not in the AUR packaging guidelines but imo quite convenient for users.

7ate9 commented on 2024-05-02 13:41 (UTC)

@Vamp898 I think the issue will always crop up when a new significant python version is released.

the aqt module was probably in /usr/lib/python3.11/site-packages/aqt before you rebuilt it, but only python version 3.11.* will look under the /usr/lib/python3.11 directory. Since your python version is now 3.12, it won't look there and just tell you module aqt (the anki module) doesn't exist. v3.12 will only look for modules listed in $ python -c 'import sys; print(sys.path)

Anyway, just expect it to break every time the python version significantly changes.

Looks like people over at aur package anki-bin were having a similar issue.

(I'm mostly writing this for myself though, as I always forget about this when stuff breaks lol)

Vamp898 commented on 2024-04-24 16:26 (UTC)

good 'ol rebuild fixed it

Vamp898 commented on 2024-04-24 16:15 (UTC)

Since the latest update, Anki no longer starts for me (i rarely use it on the PC so i didn*t notice it until now)

It just says

Traceback (most recent call last): File "/usr/bin/anki", line 5, in <module> from aqt import run ModuleNotFoundError: No module named 'aqt'

AlexBocken commented on 2024-04-16 08:04 (UTC)

@antecrescent thanks for the tips, implemented some of your recommendations with 24.04.1 @misc thank you as well, appeared to me as if these are not relevant yet. Will keep an eye on this.

antecrescent commented on 2024-04-06 10:31 (UTC) (edited on 2024-04-06 10:31 (UTC) by antecrescent)

You can also drop the python-pip-system-certs dependency for 24.04 since Arch already ships a patched python-requests, which uses the system cert store (https://gitlab.archlinux.org/archlinux/packaging/packages/python-requests/-/blob/main/certs.patch?ref_type=heads).

You'll need to patch qt/aqt/__init__.py accordingly: sed -i '/pip_system_certs/d' qt/aqt/__init__.py

python-pip-system-certs becomes optional with the next release (97efd49c).

misc commented on 2024-04-05 18:12 (UTC)

For the upcoming version, the "Switch to SvelteKit" (9f55cf26) currently includes some silly hardcoding of (with the PKGBUILD non-existing) packaged yarn.

  1. remove yarn wrapper script: rm $srcdir/anki/yarn
  2. sed -i 's/.\/yarn/yarn/g' build/ninja_gen/src/node.rs

antecrescent commented on 2024-04-05 15:22 (UTC)

Gentoo's Anki proxy-maintainer here :) You should be able to drop the disable-git-checks.patch, some repo setup steps in prepare() and PYTHON_BINARY. See: https://github.com/antecrescent/gentoo/blob/4be39573a8441db7498f21ac664e209da8247786/app-misc/anki/anki-24.04.ebuild

jthvai commented on 2024-04-03 14:08 (UTC) (edited on 2024-04-03 14:09 (UTC) by jthvai)

You were right, this was entirely my bad sorry - I should have tried to build locally before commenting. This was an issue with chaotic-aur's build process.

https://github.com/chaotic-aur/packages/issues/3096