You are not logged in.
I had previously installed anki successfully, but after an update I got the error
File "/usr/bin/anki", line 5, in <module>
from aqt import run
ModuleNotFoundError: No module named 'aqt'
So I updated the packages in the build directory with
git pull
, followed by building with
makepkg -sirc
which produce this error:
warning: field `0` is never read
--> rslib/src/config/bool.rs:58:79
|
58 | struct BoolLike(#[serde(deserialize_with = "deserialize_bool_from_anything")] bool);
| -------- field in this struct ^^^^
|
= note: `#[warn(dead_code)]` on by default
help: consider changing the field to be of unit type to suppress this warning while preserving the field numbering, or remove the field
|
58 | struct BoolLike(#[serde(deserialize_with = "deserialize_bool_from_anything")] ());
| ~~
warning: `anki` (lib) generated 1 warning
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"' --check-cfg 'cfg(docsrs)' --check-cfg 'cfg(feature, values("native-tls", "rustls"))' -C metadata=96268886cc5597ed --out-dir /home/user/builds/anki/src/anki-24.06.3/out/rust/release-lto/deps -C strip=debuginfo -L dependency=/home/user/builds/anki/src/anki-24.06.3/out/rust/release-lto/deps --extern anki=/home/user/builds/anki/src/anki-24.06.3/out/rust/release-lto/deps/libanki-28cc56f2d0afca9f.rlib --extern pyo3=/home/user/builds/anki/src/anki-24.06.3/out/rust/release-lto/deps/libpyo3-cddef9ccfd90feed.rlib -Cforce-frame-pointers=yes -C debuginfo=2 --remap-path-prefix=/home/user/builds/anki/src=/usr/src/debug/anki -L native=/home/user/builds/anki/src/anki-24.06.3/out/rust/release-lto/build/zstd-sys-d772651c46b32003/out -L native=/home/user/builds/anki/src/anki-24.06.3/out/rust/release-lto/build/blake3-ee9863211cb61137/out -L native=/home/user/builds/anki/src/anki-24.06.3/out/rust/release-lto/build/blake3-ee9863211cb61137/out -L native=/home/user/builds/anki/src/anki-24.06.3/out/rust/release-lto/build/libsqlite3-sys-8c1e60863e070800/out -L native=/home/user/builds/anki/src/anki-24.06.3/out/rust/release-lto/build/ring-d5eeb7a9863c5204/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 failure occurred in build().
Aborting...
I tried searching for the error and found a thread in the Anki forum that had no answers and also saw a comment in the anki AUR package page that had a similar error but with no answer on solutions.
Do you have any advice on how to fix this?
Sorry if there something obvious that's the problem, I'm a bit of a beginner when it comes to stuff like this, so not sure what steps to take.
Offline