Package Details: anki 24.11-1

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: 7.07
First Submitted: 2021-09-17 22:31 (UTC)
Last Updated: 2024-11-30 10:33 (UTC)

Latest Comments

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

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.

Spixmaster commented on 2023-11-10 10:45 (UTC) (edited on 2023-11-10 17:01 (UTC) by Spixmaster)

A build error occurs.

[63/65; 1 active; 797.930s] /home/matheus/.cache/paru/clone/anki/src/anki-23.10.1/out/rust/release/runner run cargo build --profile release-lto  --locked -p rsbridge --features rustls
FAILED: /home/matheus/.cache/paru/clone/anki/src/anki-23.10.1/out/rust/release-lto/librsbridge.so
/home/matheus/.cache/paru/clone/anki/src/anki-23.10.1/out/rust/release/runner run cargo build --profile release-lto  --locked -p rsbridge --features rustls
...
   Compiling zstd v0.13.0
   Compiling async-compression v0.4.4
   Compiling rusqlite v0.29.0
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=2fb0410e274e4dd2 --out-dir /home/matheus/.cache/paru/clone/anki/src/anki-23.10.1/out/rust/release-lto/deps -L dependency=/home/matheus/.cache/paru/clone/anki/src/anki-23.10.1/out/rust/release-lto/deps --extern anki=/home/matheus/.cache/paru/clone/anki/src/anki-23.10.1/out/rust/release-lto/deps/libanki-278fcde413fe6079.rlib --extern pyo3=/home/matheus/.cache/paru/clone/anki/src/anki-23.10.1/out/rust/release-lto/deps/libpyo3-6ed75d72f3232423.rlib -L native=/home/matheus/.cache/paru/clone/anki/src/anki-23.10.1/out/rust/release-lto/build/zstd-sys-1d9e2eac3ecc0b6e/out -L native=/home/matheus/.cache/paru/clone/anki/src/anki-23.10.1/out/rust/release-lto/build/blake3-9d7b02c1938370b9/out -L native=/home/matheus/.cache/paru/clone/anki/src/anki-23.10.1/out/rust/release-lto/build/blake3-9d7b02c1938370b9/out -L native=/home/matheus/.cache/paru/clone/anki/src/anki-23.10.1/out/rust/release-lto/build/ring-3077d943b4827c62/out -L native=/home/matheus/.cache/paru/clone/anki/src/anki-23.10.1/out/rust/release-lto/build/libsqlite3-sys-0c7b7e679ea83497/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.

Edit: After another try, it worked. I do not know what caused the issue priorly.

AlexBocken commented on 2023-09-25 09:58 (UTC)

Nodejs pinning coming with 2.1.66-2, thanks for the heads-up.

This package has been flagged as out of date because of a beta release. Please note that this package does not track pre-releases. Currently the latest release of anki is still 2.1.66. I have unflagged the package as out of date because of this.

@komali2 Your error is a bit odd. As this is an AUR package it should build under your user, a /root/.yarnrc should not affect anything. I'm not too familiar with pacmac but maybe check whether the error persists with other AUR managers like yay or paru.

komali2 commented on 2023-09-14 04:19 (UTC) (edited on 2023-09-14 04:23 (UTC) by komali2)

I'm getting an error when I try try installing this package:

warning Cannot find a suitable global folder. Tried these: "/usr/local, /.yarn"
Done in 159.92s.
Error: EROFS: read-only file system, open '/.yarnrc'
==> ERROR: A failure occurred in prepare().
    Aborting...
Finished with result: exit-code
Main processes terminated with: code=exited/status=4

I double checked, and permissions on .yarnrc are

-rw-rw-rw-   1 caleb caleb    116 Sep  8 10:35 .yarnrc

I'm not quite sure thus why it believes the filesystem is readonly.

EDIT: Oh, oops, I was looking at /home/caleb/.yarnrc. I created a root .yarnrc directory and gave it -rw-rw-rw- permissions, and then got this error on install:

yarn install v1.22.19
error An unexpected error occurred: "EISDIR: illegal operation on a directory, read".
info If you think this is a bug, please open a bug report with the information 
provided in "/var/cache/private/pamac/anki/src/anki-2.1.66/yarn-error.log".
info Visit https://yarnpkg.com/en/docs/cli/install for documentation about this 
command.
==> ERROR: A failure occurred in prepare().
    Aborting...