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: DarkShadow44
Last Packager: DarkShadow44
Votes: 25
Popularity: 0.000469
First Submitted: 2017-02-12 11:51 (UTC)
Last Updated: 2024-08-29 18:32 (UTC)

Latest Comments

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

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!

misc commented on 2022-02-16 10:20 (UTC)

Can't seem to build this since the changes of last week, now it instantly fails with

Error in fail: rules_python failed: (/{home}/.cache/bazel/_bazel_{…}/{hex}/external/python/python: error while loading shared libraries: libcrypt.so.1: cannot open shared object file: No such file or directory

There's an outdated libxcrypt-compat in the AUR for that library, but this had never been an issue / required before. So probably not an issue with the PKGBUILD, either.

BTW, Anki moved to QT6 for active development in .50, it's mostly the same packages, just incremented.

DarkShadow44 commented on 2022-02-11 01:06 (UTC)

@greve Thanks for the notify, updated again.