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: 157
Popularity: 6.89
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 10 11 .. 28 Next › Last »

AlexBocken commented on 2023-06-05 05:43 (UTC)

After rust has updated to 1.70.0 I was noticing how my previous advice concerning rustup was incorrect. Indeed, a rustup update may be necessary to use the most recent stable toolchain. Because of this, the PKGBUILD as of 2.1.65 now includes a check for rustup and forces an update in prepare() if it is used as the system cargo provider. This should allow for easier build reproducability between rust and rustup users.

Thank you very much for posting your errors here.

jd72 commented on 2023-05-31 14:42 (UTC) (edited on 2023-05-31 14:44 (UTC) by jd72)

Before to write my previous message I have done following:

  • deleted anki build cache dir;

  • rustup update

  • makepkg -s

AlexBocken commented on 2023-05-31 14:16 (UTC)

Really not a lot of information. Can you retry by deleting the src folder and makepkg -s? It feels like you're working in a dirty directory. The module is a local module so it's not like this could be a dependency issue, at least not directly. Also please heed the previous comments about using a cargo which is provided by pacman (rustup or cargo).

jd72 commented on 2023-05-31 14:09 (UTC) (edited on 2023-05-31 14:17 (UTC) by jd72)

...

Traceback (most recent call last):

File "/mnt/MM/AUR_bld/anki/src/anki-2.1.64/pylib/tools/genbackend.py", line 22, in <module>

import anki.image_occlusion_pb2

ModuleNotFoundError: No module named 'anki.image_occlusion_pb2'

...

Build failed.

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

Aborting...

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.