Package Details: anki 24.04.1-3

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: 160
Popularity: 7.78
First Submitted: 2021-09-17 22:31 (UTC)
Last Updated: 2024-05-25 10:44 (UTC)

Latest Comments

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

AlexBocken commented on 2023-05-31 07:59 (UTC) (edited on 2023-05-31 16:02 (UTC) by AlexBocken)

@OximOresi If you're using rustup as your cargo provider please install rustup via your system package manager. You should not be able to use rustup update as such errors are difficult to debug.

Edit: Rustup installed via pacman should print this on rustup update:

info: cleaning up downloads & tmp directories
info: self-update is disabled for this build of rustup
info: any updates to rustup will need to be fetched with your system package manager

AvidSeeker commented on 2023-05-31 05:32 (UTC)

Thanks. Cleared cache and re-compiled again. It works with no problems now.

eclairevoyant commented on 2023-05-31 04:33 (UTC) (edited on 2023-05-31 04:35 (UTC) by eclairevoyant)

Try running DISABLE_QT5_COMPAT=1 anki? Also you might need to recompile anki or some dependency, it should be using qt6.

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