Package Details: anki-bin 24.06.3-1

Git Clone URL: https://aur.archlinux.org/anki-bin.git (read-only, click to copy)
Package Base: anki-bin
Description: Helps you remember facts (like words/phrases in a foreign language) efficiently. Installed with wheel.
Upstream URL: https://apps.ankiweb.net/
Keywords: anki anki-bin
Licenses: AGPL3
Conflicts: anki
Provides: anki
Submitter: Grafcube
Maintainer: escape0707 (Flammkuchen)
Last Packager: Flammkuchen
Votes: 114
Popularity: 3.05
First Submitted: 2021-10-21 08:27 (UTC)
Last Updated: 2024-07-03 12:54 (UTC)

Latest Comments

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

escape0707 commented on 2024-06-28 02:58 (UTC) (edited on 2024-06-28 02:58 (UTC) by escape0707)

@bbb651 This package does depend on python-pyqt6-webengine, which will introduce all the dependencies you've described. You should check why pacman doesn't install all the dependencies for you.

bbb651 commented on 2024-06-28 00:30 (UTC)

I think qt6-webengine should be added as a required dependency, which transitively depends on ffmpeg which contains libavcodec.so.61 which is required for anki to start:

❯ anki
Python module pip_system_certs is not installed. System certificate store and custom SSL certificates may not work. See: https://github.com/ankitects/anki/issues/3016
Traceback (most recent call last):
  File "/usr/bin/anki", line 17, in <module>
    import aqt
  File "/usr/lib/python3.12/site-packages/aqt/__init__.py", line 61, in <module>
    from aqt import gui_hooks
  File "/usr/lib/python3.12/site-packages/aqt/gui_hooks.py", line 11, in <module>
    from _aqt.hooks import *
  File "/usr/lib/python3.12/site-packages/_aqt/hooks.py", line 18, in <module>
    from aqt.qt import QDialog, QEvent, QMenu, QModelIndex, QWidget, QMimeData
  File "/usr/lib/python3.12/site-packages/aqt/qt/__init__.py", line 20, in <module>
    from .qt6 import *
  File "/usr/lib/python3.12/site-packages/aqt/qt/qt6.py", line 19, in <module>
    from PyQt6.QtWebEngineCore import *
ImportError: libavcodec.so.61: cannot open shared object file: No such file or directory

kageyama commented on 2024-04-28 07:43 (UTC)

@Spixmaster Thank you it worked, the problem was that i was not able to use pacman, because the error which i peviously mentioned was appearing for installing/upgrading packages. It turned out that, i have a package-informant ( python ) which has hook, and this hook was failing, that's why i was not able to install/upgrade any packages. I rebuild the informant package and now everything works.

Spixmaster commented on 2024-04-28 07:17 (UTC)

@kageyama It is probably a python module that is not in the correct path. Change directory to /usr/lib/python3.11/site-packages/ and do pacman -Qqo *. You need to rebuild everything that is listed there. The goal is to not have a directory /usr/lib/python3.11/ anymore.

kageyama commented on 2024-04-28 03:58 (UTC)

@xuiqzy, I am having the same problem. What do you mean by rebuild? How to do that?

I tried reinstalling anki-bin using yay and chose option to CleanBuild, but installation fails ->

Traceback (most recent call last):
  File "/usr/lib/python3.12/importlib/metadata/__init__.py", line 397, in from_name
    return next(cls.discover(name=name))
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
StopIteration

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/bin/informant", line 33, in <module>
    sys.exit(load_entry_point('informant==0.5.0', 'console_scripts', 'informant')())
             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/bin/informant", line 22, in importlib_load_entry_point
    for entry_point in distribution(dist_name).entry_points
                       ^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/lib/python3.12/importlib/metadata/__init__.py", line 862, in distribution
    return Distribution.from_name(distribution_name)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/lib/python3.12/importlib/metadata/__init__.py", line 399, in from_name
    raise PackageNotFoundError(name)
importlib.metadata.PackageNotFoundError: No package metadata was found for informant
error: command failed to execute correctly
error: failed to commit transaction (failed to run transaction hooks)
Errors occurred, no packages were upgraded.
 -> error installing: [/home/phoenix/.cache/yay/anki-bin/anki-bin-24.04.1-1-x86_64.pkg.tar] - exit status 1

xuiqzy commented on 2024-04-27 16:34 (UTC)

Couldn't start Anki anymore, when starting from command line, got error:

Traceback (most recent call last):
  File "/usr/bin/anki", line 17, in <module>
    import aqt
ModuleNotFoundError: No module named 'aqt'

Rebuilding and reinstalling anki-bin fixed the problem.

escape0707 commented on 2024-04-09 00:11 (UTC)

@adelin-b Version number is fine at my side. Can you try to clone the AUR repo again and rebuild?

escape0707 commented on 2024-04-06 03:31 (UTC) (edited on 2024-04-06 03:37 (UTC) by escape0707)

@Grafcube First, I want to thank you for submitting the first version of this PKGBUILD, as I'm no where near familiar with packaging and AUR at that time.

It's seems that if you simply disown this package, the leftover co-maintainer (me) will become the new owner.

I do not use Anki as often as when I first wrote this PKGBUILD before, as I've already passed the proficiency exam of the language I was learning with it, and started studying abroad then. So I didn't actually test every new versions besides whether it runs.

Nevertheless, it's important to continue studying through one's life, and many others might still benefit from this helpful learning tool. If anyone wish to co-maintain this package, which is usually only updating pkgver and checking upstream changes to requirements.{anki,aqt}.in, feel free to leave a comment here or contact my email!

Finally, I wish you all a great success in your study and personal career!