Package Details: anki 24.06.3-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: 169
Popularity: 4.50
First Submitted: 2021-09-17 22:31 (UTC)
Last Updated: 2024-08-02 10:08 (UTC)

Required by (2)

Sources (7)

Latest Comments

« First ‹ Previous 1 .. 12 13 14 15 16 17 18 19 20 21 22 .. 30 Next › Last »

TheFeelTrain commented on 2022-06-18 16:01 (UTC)

@Nocifer I didn't think that was it because using the official Qt6 build was working but after installing fcitx-qt6 it's fixed so I guess that was it.

Nocifer commented on 2022-06-18 10:29 (UTC)

@TheFeelTrain On my system, Anki from this package compiled with Qt6 accepts input from Mozc just fine, so it must be something on your end. Seeing as Anki's GUI is Qt-based and so is Mozc's, I'd cross Python out as the possible culprit. What you can do to narrow down the issue (i.e. make sure it's Anki and not Mozc) is try with some other Qt6 application and check if Mozc works OK with that.

Also, I'd try clearing my Bazel cache and recompiling Anki; Bazel is known to mess up sometimes due to remnants of previous builds.

TheFeelTrain commented on 2022-06-18 09:12 (UTC) (edited on 2022-06-18 09:18 (UTC) by TheFeelTrain)

Both this package and anki-bin won't accept input from Mozc, but if I download the Qt6 build directly from the Github releases page it works. The only difference I can see is the AUR packages use Python 3.10.4 while the official build is on Python 3.9.10, so maybe it’s that? Any ideas? I should also mention it used to work fine so I am guessing it has something to do with the Qt6 upgrade.

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.