Package Details: anki-git r11208.b7cb0c0d0-1

Git Clone URL: https://aur.archlinux.org/anki-git.git (read-only, click to copy)
Package Base: anki-git
Description: Helps you remember facts (like words/phrases in a foreign language) efficiently
Upstream URL: hhttps://apps.ankiweb.net/
Keywords: anki memorise memory study
Licenses: AGPL3
Conflicts: anki, anki-official-binary-bundle, anki20
Provides: anki
Submitter: degeberg
Maintainer: None
Last Packager: 1over137
Votes: 25
Popularity: 0.000031
First Submitted: 2017-02-12 11:51 (UTC)
Last Updated: 2025-04-05 15:09 (UTC)

Latest Comments

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

DarkShadow44 commented on 2022-04-13 17:13 (UTC)

@homocomputeris Just changing the dependencies to qt6 won't work, since I still will have the qt5 dependencies installed. Not sure how to make anki pick qt6.

homocomputeris commented on 2022-04-13 08:31 (UTC) (edited on 2022-04-13 11:27 (UTC) by homocomputeris)

@DarkShadow44

UPD: Seems that copypaste from/to Anki Qt6 doesn't work.

There is a Qt6 PKGBUILD (with other minor fixes too) in the comments below, which is basically changing qt5 to qt6 counterparts.

It seems that Anki doesn't depend on Java explicitly, because it was replaced by Rust.

Sorry, I did flag this because back then it didn't build even with the bazel cache removed, so it seemed that something had changed on the build process side.

DarkShadow44 commented on 2022-04-11 00:38 (UTC) (edited on 2022-04-11 00:43 (UTC) by DarkShadow44)

@homocomputeris Sure, how do you configure the build for qt6?

Also, please don't flag the package out of date for something addressed as pinned issue.

homocomputeris commented on 2022-04-10 20:07 (UTC)

I suggest switching it to Qt6 since 2.1.50 https://github.com/ankitects/anki/releases/tag/2.1.50

Qt6

The packaged builds now come in separate Qt5 and Qt6 versions. Each version
has some advantages and disadvantages.

The Qt6 version is built with a more recent graphics toolkit. Advantages
include:

    Various bugfixes.
    Native support for recent Apple Silicon Macs (faster, better battery life).
    Compatibility with recent glibc versions on Linux (fixes blank screens).
    Better HiDPI support on Linux.

DarkShadow44 commented on 2022-03-22 20:18 (UTC)

Just got the following error

  File "/usr/bin/anki", line 17, in <module>
    import aqt
  File "/usr/lib/python3.10/site-packages/aqt/__init__.py", line 69, in <module>
    from aqt.main import AnkiQt  # isort:skip
  File "/usr/lib/python3.10/site-packages/aqt/main.py", line 20, in <module>
    import aqt.mediasrv
  File "/usr/lib/python3.10/site-packages/aqt/mediasrv.py", line 18, in <module>
    import flask
  File "/usr/lib/python3.10/site-packages/flask/__init__.py", line 6, in <module>
    from . import json as json
  File "/usr/lib/python3.10/site-packages/flask/json/__init__.py", line 9, in <module>
    from jinja2.utils import htmlsafe_json_dumps as _jinja_htmlsafe_dumps
  File "/home/fabian/.local/lib/python3.10/site-packages/jinja2/__init__.py", line 12, in <module>
    from .environment import Environment
  File "/home/fabian/.local/lib/python3.10/site-packages/jinja2/environment.py", line 25, in <module>
    from .defaults import BLOCK_END_STRING
  File "/home/fabian/.local/lib/python3.10/site-packages/jinja2/defaults.py", line 3, in <module>
    from .filters import FILTERS as DEFAULT_FILTERS  # noqa: F401
  File "/home/fabian/.local/lib/python3.10/site-packages/jinja2/filters.py", line 13, in <module>
    from markupsafe import soft_unicode
ImportError: cannot import name 'soft_unicode' from 'markupsafe' (/usr/lib/python3.10/site-packages/markupsafe/__init__.py)

If you happen to get the same, try removing ~/.local/lib/python3.10/site-packages/jinja2

misc commented on 2022-02-17 23:00 (UTC)

No problem, thanks for the update! That workaround indeed also does the job (after said deletion of bazel's cache).

DarkShadow44 commented on 2022-02-17 20:05 (UTC)

Sorry, I didn't realize I forgot to push the update. Something must went wrong.

Please try again, after deleting the bazel cache.

misc commented on 2022-02-17 10:46 (UTC) (edited on 2022-02-17 10:48 (UTC) by misc)

Seems to be from the recent glibc updates, during which libcrypt.so.1 was removed: https://github.com/archlinux/svntogit-packages/commit/f1aeeaf4a3fabd9b5f8186005066e04f1aa7c672

Curious that it's still working for you. Anyway, there's libxcrypt-compat in the AUR that brings that library version back.

misc commented on 2022-02-16 22:01 (UTC)

Already done that. The error message is how that's failing.

Seems it's now trying to use its bundled python, which is built with an old libxcrypt, for whatever reason.

If it's building for you, could you please check if there's a /usr/lib/libcrypt.so.1 present on your system?

DarkShadow44 commented on 2022-02-16 19:18 (UTC)

Can you please test the latest update? You might need to delete "~/.cache/bazel/" though!