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

Required by (2)

Sources (7)

Latest Comments

« First ‹ Previous 1 .. 4 5 6 7 8 9 10 11 12 13 14 .. 30 Next › Last »

AvidSeeker commented on 2023-05-31 04:14 (UTC) (edited on 2023-05-31 04:14 (UTC) by AvidSeeker)

Latest update seems to be missing some dep?

Traceback (most recent call last):
  File "/usr/bin/anki", line 5, in <module>
    from aqt import run
  File "/usr/lib/python3.11/site-packages/aqt/__init__.py", line 46, in <module>
    from aqt import gui_hooks
  File "/usr/lib/python3.11/site-packages/aqt/gui_hooks.py", line 11, in <module>
    from _aqt.hooks import *
  File "/usr/lib/python3.11/site-packages/_aqt/hooks.py", line 18, in <module>
    from aqt.qt import QDialog, QEvent, QMenu, QModelIndex, QWidget, QMimeData
  File "/usr/lib/python3.11/site-packages/aqt/qt/__init__.py", line 12, in <module>
    from .qt5 import *  # type: ignore
    ^^^^^^^^^^^^^^^^^^
  File "/usr/lib/python3.11/site-packages/aqt/qt/qt5.py", line 15, in <module>
    from PyQt5.QtWebEngineCore import *  # type: ignore
    ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
ModuleNotFoundError: No module named 'PyQt5.QtWebEngineCore'

OximOresi commented on 2023-05-30 19:03 (UTC)

I got the same error as asdrubalivan using arch. After calling rustup update the problem went away for me.

AlexBocken commented on 2023-05-29 18:07 (UTC)

@asdrubalivan Not at all familiar with how manjaro holds packages back compared to arch. Your build is currently failing at the cargo fetch step so I'm assuming your default stable is not 1.69.0 as on arch maybe?

Could you delete line 95 in the PKGBUILD (sed -i ... rust-toolchain.toml) and let me know whether that allows you to makepkg -o? (I guess should all be in /var/tmp/pamac-build-asdru/anki according to your log.

Otherwise maybe someone else here is more familiar how Manjaro works and could comment.

asdrubalivan commented on 2023-05-29 13:31 (UTC)

Hello, I'm getting the following errors right now when trying to build Anki

  -> Extracting anki-2.1.64.tar.gz with bsdtar
  -> Extracting anki-core-i18n-150aac792e07cfeeea50202b50c226c0fa4b32e2.tar.gz with bsdtar
  -> Extracting anki-desktop-ftl-e2d2a9ebfaa83ff648063bd95140546179e7471b.tar.gz with bsdtar
==> Starting prepare()...
patching file qt/aqt/update.py
patching file pylib/tools/hookslib.py
patching file build/configure/src/python.rs
patching file build/ninja_gen/src/git.rs
patching file build/runner/src/build.rs
error: failed to load manifest for workspace member `/var/tmp/pamac-build-asdru/anki/src/anki-2.1.64/rslib`

Caused by:
  failed to parse manifest at `/var/tmp/pamac-build-asdru/anki/src/anki-2.1.64/rslib/Cargo.toml`

Caused by:
  invalid type: map, expected a sequence for key `package.authors`
==> ERROR: A failure occurred in prepare().
    Aborting...

Using 6.2.16-1-MANJARO

AlexBocken commented on 2023-05-24 11:27 (UTC)

thanks for the catch, updated

0x9fff00 commented on 2023-05-24 11:23 (UTC)

sed -i 's/channel = [0-9\.]*$/channel = "stable"/' rust-toolchain.toml should be changed to sed -i 's/channel = "[0-9\.]*"$/channel = "stable"/' rust-toolchain.toml because the version number is in quotes. Currently it does nothing so the package still builds with 1.68.2

AlexBocken commented on 2023-05-24 10:04 (UTC) (edited on 2023-05-24 10:04 (UTC) by AlexBocken)

With 2.1.64 I gave the PKGBUILD a major overhaul to install a bit cleaner. A great help for this was GitHub user 'antecrescent' with his gentoo PR: https://github.com/gentoo/gentoo/pull/31122

Major changes:

  • major overhaul. All fetching is now done in prepare() the latest. build() can be run offline
  • moved back to tarballs, patching .git folder manually
  • all typecheck/formatting dependencies are stripped out as this is only required for development
  • pip-sync is masked during build as we provide dependencies ourselves
  • we use the most recent stable rust toolchain in the build
  • yarn and cargo store their cache in $srcdir, a yay/paru -Sc will now more reliably reset the build environment

AlexBocken commented on 2023-05-21 16:39 (UTC)

@adriantsai As the error clearly states, you couldn't compile due to a connection timeout for your dependency fetching. This might be a temporary outage upstream for the node repo or your internet connection got interrupted. Try again. If unsure, please clean your cache via yay -Sc (defaults are good)

adriantsai commented on 2023-05-21 15:49 (UTC) (edited on 2023-05-21 15:49 (UTC) by adriantsai)

Package failed to compile due to node dependencies.

warning " > svelte2tsx@0.4.14" has incorrect peer dependency "typescript@^4.1.2".
error /home/adrian/.cache/yay/anki/src/anki/node_modules/dprint: Command failed.
Exit code: 1
Command: node ./install.js
Arguments: 
Directory: /home/adrian/.cache/yay/anki/src/anki/node_modules/dprint
Output:
Error downloading dprint zip file.

Error [ERR_SOCKET_CONNECTION_TIMEOUT]: Socket connection timeout

[10/68; 1 active; 136.242s] rslib/i18n
ninja: build stopped: subcommand failed.

Build failed.
==> ERROR: A failure occurred in build().
    Aborting...

AlexBocken commented on 2023-05-21 12:46 (UTC)

@mrsrd0 Thanks for reporting! A bit odd as it should build in a clean chroot and compiled for me on two separate machines/setups as well. As always, please ensure that base-devel is installed and in doubt delete various .cache folders: .cache/yarn, .cache/yay/anki, .cache/pip, ~/.rustup.

If the error persists please provide more information about your particular setup. (any packages held back? special version of rust/node?) Alternatively, you could always use build-scripts such as extra-x86_64-build from devtools (execute in .cache/yay/anki) to build in a clean chroot and install afterwards via pacman -U <anki.zst>