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 .. 13 14 15 16 17 18 19 20 21 22 23 .. 30 Next › Last »

AlexBocken commented on 2022-06-15 11:50 (UTC)

@balance A bit confused how you managed to get this error tbh. python-jinja is in the community repo and python-markupsafe does exist in the extra repo and both are installed as dependencies by anki...

Can you try a reinstall via sudo pacman -S python-jinja python-markupsafe --asdeps and report whether that fixed your issue? This might be an odd python 3.10 upgrade issue, although It's been a while since 3.10 got released.

balance commented on 2022-06-15 08:43 (UTC) (edited on 2022-06-15 08:44 (UTC) by balance)

This currently does not work because (I think) at some point anki tries to use Jinja, which tries to import a method from a package that does not exist anymore.

Traceback (most recent call last):
  File "/usr/bin/anki", line 17, in <module>
    import aqt
  File "/home/balance/.local/lib/python3.10/site-packages/aqt/__init__.py", line 54, in <module>
    from aqt.main import AnkiQt  # isort:skip
  File "/home/balance/.local/lib/python3.10/site-packages/aqt/main.py", line 32, in <module>
    import aqt.mediasrv
  File "/home/balance/.local/lib/python3.10/site-packages/aqt/mediasrv.py", line 16, in <module>
    import flask
  File "/home/balance/.local/lib/python3.10/site-packages/flask/__init__.py", line 14, in <module>
    from jinja2 import escape
  File "/home/balance/.local/lib/python3.10/site-packages/jinja2/__init__.py", line 12, in <module>
    from .environment import Environment
  File "/home/balance/.local/lib/python3.10/site-packages/jinja2/environment.py", line 25, in <module>
    from .defaults import BLOCK_END_STRING
  File "/home/balance/.local/lib/python3.10/site-packages/jinja2/defaults.py", line 3, in <module>
    from .filters import FILTERS as DEFAULT_FILTERS  # noqa: F401
  File "/home/balance/.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)

Perfi commented on 2022-06-04 13:07 (UTC)

@KaiSVK, I think this is your bug, which I'm also getting: https://github.com/ankitects/anki/issues/1839

Apparently it's due to be fixed in a new Qt6 version.

AlexBocken commented on 2022-06-03 21:08 (UTC)

@KaiSVK

Perhaps it's my fault or missing deps

You do have base-devel installed, right? That package group is assumed for all AUR packages to be present. If that's the case and it's a dependency issue this should be my issue.

I'm currently struggling to recreate the issue or find anything online around this error. If it's working for anki-qt5 but not anki this sounds like a qt issue to me. Does the error persist if you install the whole qt6 package group?

KaiSVK commented on 2022-06-01 11:58 (UTC)

I got this with anki package:

xkbcommon: ERROR: Couldn't process include statement for 'us(qwerty)' xkbcommon: ERROR: Abandoning symbols file "(unnamed)" xkbcommon: ERROR: Failed to compile xkb_symbols xkbcommon: ERROR: Failed to compile keymap [115746:115776:0601/135102.603799:FATAL:xkb_keyboard_layout_engine.cc(641)] Keymap file failed to load: us-qwerty Trace/breakpoint trap (core dumped)

Perhaps it's my fault or missing deps, but anki-qt5 works like a charm for me.

AlexBocken commented on 2022-05-28 19:05 (UTC)

@Munzu I'm struggling to reproduce the issue in 2.1.52. I also had that issue with 2.1.51... As I believe Qt6 to be largely stable now I will keep this package on Qt6. For people with similar issues to yours I have now made available anki-qt5 as a backup until we can figure out a way to fix this annoying bug. Any errors with Qt6 are of course still welcome to be reported here.

Munzu commented on 2022-05-28 16:58 (UTC)

Now that the package is using Qt6 again, I'm having the same problem I previously had and reported on the Anki forums:

https://forums.ankiweb.net/t/2-1-51-qt6-doesnt-show-next-card-after-answering/19495/4

AlexBocken commented on 2022-05-28 07:39 (UTC)

anki is now using Qt6 out of the box! Let me know if there are any errors that need fixing or maybe the creation of a anki-qt5 package, it seems quite stable on my side.

Since no bugs where reported over the last few days here or on anki-qt6 I went ahead with a merge request of anki-qt6 into anki.

yakoyakoyokuyoku commented on 2022-05-26 21:19 (UTC)

@AlexBocken No problems were found by removing python-stringcase and using that _bazel_build function, on the contrary Anki (Qt6) launched as expected and the Bazel background service was killed. Qt5 is going to work as well too.