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.26
First Submitted: 2021-09-17 22:31 (UTC)
Last Updated: 2024-04-28 10:07 (UTC)

Latest Comments

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

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...

jkhsjdhjs commented on 2023-09-13 14:54 (UTC)

@spcified is right, the nodejs version should be pinned here.

exoticorn commented on 2023-09-05 07:33 (UTC)

@mattalxndr I had the same error and found that I had nodejs-lts-gallium installed. The solution then is to either switch to nodejs-lts-hydrogen, or just live on the edge with the nodejs package.

spcified commented on 2023-08-31 09:38 (UTC)

@mattalxndr you have to update nodejs to at least version 18

This pkg should pin the nodejs version.