Package Details: anki 24.06.3-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: 169
Popularity: 4.50
First Submitted: 2021-09-17 22:31 (UTC)
Last Updated: 2024-08-02 10:08 (UTC)

Latest Comments

« First ‹ Previous 1 2 3 4 5 6 7 8 9 10 .. 30 Next › Last »

0ion9 commented on 2024-03-23 23:01 (UTC)

Rebuild worked this time, so maybe I didn't do it correctly before.

0ion9 commented on 2024-03-23 22:15 (UTC)

Yes, I have tried clean rebuilding before I tried symlinking. Theoretically that is what you would expect when there's an outdated link-time dependency, but rebuilding doesn't seem to have any effect.

I didn't symlink to the old version; anki is looking for the old version, which doesn't exist, so I made a symlink with the name of the old version pointing at the NEW version. Hope that clarifies.

Currently trying another clean rebuild after removing the symlink, just to be absolutely sure.

AlexBocken commented on 2024-03-23 09:24 (UTC) (edited on 2024-03-23 09:54 (UTC) by AlexBocken)

Thanks for the report! Are you sure you are rebuilding properly? I'm struggling to reproduce this issue with svt-av1 2.0.0-1 installed. Could you confirm whether a rebuild of anki would fix this issue for you instead of symlinking to the old version? If so I could bump the pkgver to fix this issue for all users. Otherwise further triage might be needed.

You can do this by either downloading the above listed git repo (git clone https://aur.archlinux.org/anki.git) and doing a makepkg -si in it. Alternatively, if you're using a AUR helper, clear it's cache (e.g. paru -Scc or rm -rf ~/.cache/paru/clone/anki) and reinstall via something like paru -S anki

Thanks for your help

0ion9 commented on 2024-03-23 08:39 (UTC)

Upstream issue maybe? But there is currently an issue where this package looks for libSvtAv1Enc.so.1:

[...]
  File "/usr/lib/python3.11/site-packages/aqt/qt/qt6.py", line 19, in <module>
    from PyQt6.QtWebEngineCore import *
ImportError: libSvtAv1Enc.so.1: cannot open shared object file: No such file or directory

, but svt-av1 provides only libSvtAv1Enc.so{,.2,.2.0.0} (so Anki fails to start). Rebuilding does not help (so maybe upstream is specifically trying to reference that version?)

I symlinked 1 to 2.0.0, and that is enough to get Anki to start, but it's obviously not correct. Hopefully as long as I don't need to deal with AV1 files it will work enough.

The first known version of svt-av1 where this problem occurs is 2.0.0-1 (built 19 Mar 2024)

sloker commented on 2024-02-27 08:53 (UTC)

In ~/.cargo/config I added:

[net]
git-fetch-with-cli = true

And it worked.

sloker commented on 2024-02-27 08:28 (UTC) (edited on 2024-02-27 08:43 (UTC) by sloker)

I have a similar problem as robertohueso.

Caused by:
  failed to authenticate when downloading repository: ssh://git@github.com/open-spaced-repetition/fsrs-rs.git

  * attempted ssh-agent authentication, but no usernames succeeded: `git`

  if the git CLI succeeds then `net.git-fetch-with-cli` may help here
  https://doc.rust-lang.org/cargo/reference/config.html#netgit-fetch-with-cli

Is there any fix for this?

AlexBocken commented on 2023-12-10 10:59 (UTC) (edited on 2023-12-10 10:59 (UTC) by AlexBocken)

From your logs:

network failure seems to have happened

retry and if that doesn't work switch networks, this sounds specific to your internet setup or the particular run. I don't think gitHub's SSL certificates are currently invalid for everyone (I at least can visit https://github.com/open-spaced-repetition/fsrs-rs.git without any issues)

robertohueso commented on 2023-12-10 10:49 (UTC)

Install fails

==> Starting prepare()...
patching file qt/aqt/update.py
patching file pylib/tools/hookslib.py
patching file build/configure/src/python.rs
Hunk #1 succeeded at 88 (offset 1 line).
Hunk #2 succeeded at 106 with fuzz 1 (offset 1 line).
patching file build/ninja_gen/src/git.rs
Hunk #1 succeeded at 14 (offset 1 line).
patching file build/runner/src/build.rs
    Updating crates.io index
    Updating git repository `https://github.com/open-spaced-repetition/fsrs-rs.git`
error: failed to get `fsrs` as a dependency of package `anki v0.0.0 (/home/user/.cache/pikaur/build/anki/src/anki-23.10.1/rslib)`

Caused by:
  failed to load source for dependency `fsrs`

Caused by:
  Unable to update https://github.com/open-spaced-repetition/fsrs-rs.git?rev=725417fe310b74a719e18c2127f64223be1cb669#725417fe

Caused by:
  failed to clone into: /home/user/.cache/pikaur/build/anki/src/cargo-cache/git/db/fsrs-rs-d5c69918e8b2a397

Caused by:
  network failure seems to have happened
  if a proxy or similar is necessary `net.git-fetch-with-cli` may help here
  https://doc.rust-lang.org/cargo/reference/config.html#netgit-fetch-with-cli

Caused by:
  the SSL certificate is invalid; class=Ssl (16); code=Certificate (-17)

AlexBocken commented on 2023-11-30 09:02 (UTC)

@aidtunoe great, that sounds reasonable. AUR helpers should not be run as root, that can mess up your entire system.

Some AUR helpers exit immediately with a warning if run as root (e.g. paru), others (e.g. yay and apparently also pamac) don't.

aditunoe commented on 2023-11-30 08:52 (UTC) (edited on 2023-11-30 08:53 (UTC) by aditunoe)

I had the same error:

warning Cannot find a suitable global folder. Tried these: "/usr/local, /.yarn"
Done in 169.52s.
Error: EROFS: read-only file system, open '/.yarnrc'
==> ERROR: A failure occurred in prepare().

I tried many things, including installing different Version of NodeJs, checking the permissions of that folder, etc.

Well, I feel pretty dumb to not try it earlier and maybe to others thats obvious (sorry, noob), but running the pamac update instead of sudo pamac update resolved that issue. Hope it may helps someone.