Package Details: anki 25.02.1-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: 191
Popularity: 7.32
First Submitted: 2021-09-17 22:31 (UTC)
Last Updated: 2025-04-20 09:53 (UTC)

Required by (2)

Sources (7)

Latest Comments

1 2 3 4 5 6 .. 31 Next › Last »

AlexBocken commented on 2025-04-17 08:59 (UTC)

Hello @annatar1995 Many thanks for your report. I don't believe this is an anki issue, more likely, this is a graphics driver issue for you. Recently, some changes were done to the ownership of drivers on Arch iirc. Adapting your user to be part of the relevant group (check the ownership of /dev/dri/renderD128 or similar files and add your user to the relevant group).

An insecure but quick fix would be a chmod 666 /dev/dri/renderD128 but I would not recommend giving your entire system rw rights.

annatar1995 commented on 2025-04-14 11:47 (UTC) (edited on 2025-04-17 07:26 (UTC) by annatar1995)

Hello.

When trying to run Anki I get the following:


❯ anki
Starting Anki 25.02...
2025-04-14 13:42:01,447:INFO:aqt.mediasrv: Serving on http://127.0.0.1:36113
Starting main loop...
[52712:52861:0414/134201.823577:ERROR:angle_platform_impl.cc(44)] ImageEGL.cpp:112 (operator()): eglCreateImage failed with 0x00003003
ERR: ImageEGL.cpp:112 (operator()): eglCreateImage failed with 0x00003003
[52712:52861:0414/134201.823588:ERROR:scoped_egl_image.cc(23)] Failed to create EGLImage: EGL_SUCCESS
[52712:52861:0414/134201.823592:ERROR:native_pixmap_egl_binding.cc(118)] Unable to initialize binding from pixmap
[52712:52861:0414/134201.823608:ERROR:ozone_image_backing.cc(309)] OzoneImageBacking::ProduceSkiaGanesh failed to create GL representation
[52712:52861:0414/134201.823611:ERROR:shared_image_manager.cc(255)] SharedImageManager::ProduceSkia: Trying to produce a Skia representation from an incompatible backing: OzoneImageBacking
[52712:52861:0414/134201.823613:ERROR:native_skia_output_device.cpp(261)] ProduceSkia() failed.
[52712:52861:0414/134201.823674:ERROR:raster_decoder.cc(1146)]   RasterDecoderImpl: Context lost during MakeCurrent.
[52712:52861:0414/134201.823713:ERROR:raster_decoder.cc(1146)]   RasterDecoderImpl: Context lost during MakeCurrent.
[52712:52861:0414/134201.823758:ERROR:raster_decoder.cc(1146)]   RasterDecoderImpl: Context lost during MakeCurrent.
[52712:52861:0414/134201.823825:ERROR:raster_decoder.cc(1146)]   RasterDecoderImpl: Context lost during MakeCurrent.
[52712:52861:0414/134201.823915:ERROR:raster_decoder.cc(1146)]   RasterDecoderImpl: Context lost during MakeCurrent.
[52712:52861:0414/134201.823957:ERROR:raster_decoder.cc(1146)]   RasterDecoderImpl: Context lost during MakeCurrent.
[52712:52861:0414/134201.824016:ERROR:raster_decoder.cc(1146)]   RasterDecoderImpl: Context lost during MakeCurrent.
[52712:52861:0414/134201.824042:ERROR:raster_decoder.cc(1146)]   RasterDecoderImpl: Context lost during MakeCurrent.
[52712:52861:0414/134201.824106:ERROR:shared_context_state.cc(885)] Failed to make current since context is marked as lost
[52712:52861:0414/134201.824109:ERROR:skia_output_surface_impl_on_gpu.cc(2264)] Failed to make current.
[52712:52861:0414/134201.824129:ERROR:shared_context_state.cc(885)] Failed to make current since context is marked as lost
[52712:52861:0414/134201.824131:ERROR:skia_output_surface_impl_on_gpu.cc(2264)] Failed to make current.
[52712:52861:0414/134201.824144:ERROR:shared_context_state.cc(885)] Failed to make current since context is marked as lost
[52712:52861:0414/134201.824147:ERROR:skia_output_surface_impl_on_gpu.cc(2264)] Failed to make current.
[52712:52861:0414/134201.824155:ERROR:shared_context_state.cc(885)] Failed to make current since context is marked as lost
[52712:52861:0414/134201.824158:ERROR:skia_output_surface_impl_on_gpu.cc(2264)] Failed to make current.
Qt debug: Compositor returned null texture
Qt debug: Compositor returned null texture
[52712:52861:0414/134201.837337:ERROR:shared_context_state.cc(885)] Failed to make current since context is marked as lost
[52712:52861:0414/134201.837345:ERROR:skia_output_surface_impl_on_gpu.cc(2264)] Failed to make current.
[52712:52861:0414/134201.837492:ERROR:shared_context_state.cc(885)] Failed to make current since context is marked as lost
[52712:52861:0414/134201.837497:ERROR:skia_output_surface_impl_on_gpu.cc(2264)] Failed to make current.
zsh: segmentation fault (core dumped)  anki

This is using Wayland Plasma. Adding


QT_QPA_PLATFORM=wayland
ANKI_WAYLAND=1

beforehand did nothing. anki-bin does not work either.

Thanks in advance, and apologies if this is a dumb question.

Edit: I tried on X11 i3. It did run, but the GUI contained a lot of blocks, some black. It was not usable.

Edit: The fix here: https://www.reddit.com/r/Anki/comments/1jtozfe/anki_failed_to_start_after_update_linux/ worked for me.

AlexBocken commented on 2024-12-30 21:21 (UTC)

@stellarium Thanks for the report! Looking at the proper /usr/bin/anki seems to indicate that this file has not been updated for you. run() should be importable from aqt but it's never called as aqt.run(), instead it's imported directly via from aqt import run.

Are you sure you have completed a full python 3.13 upgrade? To make sure that at least anki is properly installed would you mind uninstalling, checking whether /usr/bin/anki is still present (removing it if it is) and reinstalling it?

As anki only depends on python packages in the default repos of arch, anything more convoluted should really not be necessary unless you're running something like manjaro.

stellarium commented on 2024-12-30 21:13 (UTC) (edited on 2024-12-30 21:13 (UTC) by stellarium)

I've been having the same issue as some people here. Anki used to launch, now it doesn't.

Traceback (most recent call last): File "/usr/bin/anki", line 4, in <module> aqt.run() ^^^^^^^ AttributeError: module 'aqt' has no attribute 'run'

AlexBocken commented on 2024-12-27 11:31 (UTC)

@texer22 Thanks for the report! python-protobuf is listed as a dependency of this package. reinstalling this via sudo pacman -S python-protobuf --asdeps should fix your issue. Maybe you have installed another package which has been providing protobuf for you, then please consider rebuilding this package manually as it probably has not been bumped to force a rebuild against python 3.13.

texer22 commented on 2024-12-24 18:08 (UTC) (edited on 2024-12-24 18:09 (UTC) by texer22)

I cannot run this program.


 Traceback (most recent call last):
  File "/usr/bin/anki", line 5, in <module>
    from aqt import run
  File "/usr/lib/python3.13/site-packages/aqt/__init__.py", line 49, in <module>
    import anki.lang
  File "/usr/lib/python3.13/site-packages/anki/lang.py", line 13, in <module>
    import anki._backend
  File "/usr/lib/python3.13/site-packages/anki/_backend.py", line 17, in <module>
    from anki import _rsbridge, backend_pb2, i18n_pb2
  File "/usr/lib/python3.13/site-packages/anki/backend_pb2.py", line 7, in <module>
    from google.protobuf import descriptor as _descriptor
ModuleNotFoundError: No module named 'google.protobuf'

AlexBocken commented on 2024-12-23 08:52 (UTC)

@pipep many thanks for the report! Indeed, with the release of python 3.13 a rebuild is necessary. I've bumped the pkgrel to force a rebuild for all users.

pipep commented on 2024-12-22 20:37 (UTC)

After the latest system update I performed today with pacman -Syu, Anki stopped launching and showed the error ModuleNotFoundError: No module named 'aqt'. I fixed it by rebuilding and reinstalling Anki.

mirai commented on 2024-11-07 08:49 (UTC) (edited on 2024-11-07 08:49 (UTC) by mirai)

that would explain why the version of anki is so old. I remember once having to reinstall anki, maybe i screwed up at that point forgetting I did it locally at first. When running

$ which anki
/usr/local/bin/anki

$ where anki
/usr/local/bin/anki
/usr/bin/anki
/bin/anki

so I must have just confused the installs a long time ago and only now did it come to bite me.