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 .. 21 22 23 24 25 26 27 28 29 30 Next › Last »

51mon commented on 2021-12-14 13:17 (UTC)

The tooltip notifications e.g. when a card gets buried, are cut off. See this thread

I think it started with the Manjaro update 2021-12-10. Dependencies that got updated are:

python-requests
python-pysocks
python-orjson
python-distro
python-markdown

Any idea how to resolve this?

Pave commented on 2021-12-14 11:40 (UTC)

Since yesterday the program doesn't start anymore. I already tried reinstalling. The installation works fine, but it still isn't possible to run anki.

When starting anki the following error shows up:

 Qt fatal: Could not find QtWebEngineProcess
 Aborted (core dumped)

I think some Qt files aren't properly transferred. Anyone has a fix?

AlexBocken commented on 2021-12-13 16:20 (UTC)

If you're having compilation issues, try a

sudo rm -rf ~/.cache/paru/clone/anki
sudo rm -rf ~/.cache/bazel
paru -S anki

first. (replace paru with your AUR manager of choice but adjust .cache/<AUR manager> accordingly)

Bazel does not seem to build as cleanly in the srcdir as I would like to and seems to download stuff into .cache/bazel. If someone knows a good fix for this please post it here in the comments or send me an email.

AlexBocken commented on 2021-12-13 13:04 (UTC)

Since this package has been adopted and orphaned multiple times without any updates over the last few months I decided to go ahead with my merge request to merge anki-release-source into this repo. As already explained, my philosophy for maintaining this package will be to "go with the times" as the developer of anki called it and ignore the fact that the install process pulls its own resources during build() instead of using the installed packages/libraries. My goal here is reliable compilation and easier update-ability. Suggestions for improvements to this PKGBUILD that go in this direction are of course always welcomed and encouraged.

AlexBocken commented on 2021-11-23 10:02 (UTC)

Glad we were able to figure out the culprit. About PYTHONPATH I'm not sure if I'm the right person to ask.

ddavo commented on 2021-11-23 09:47 (UTC)

@AlexBocken

Here is my output. I thought everything was up-to-date, but I didn't know about pip show...

$ yay -Qs python-markdown
local/python-markdown 3.3.5-1
    Python implementation of John Gruber's Markdown.
$ yay -Qs importlib-metadata
local/python-importlib-metadata 4.8.1-1
    Read metadata from Python packages
local/python2-importlib-metadata 2.1.1-1
    importlib_metadata is a library to access the metadata for a Python package
$ pip show importlib-metadata
Name: importlib-metadata
Version: 1.5.0
Summary: Read metadata from Python packages
Home-page: http://importlib-metadata.readthedocs.io/
Author: Barry Warsaw
Author-email: barry@python.org
License: Apache Software License
Location: /home/davo/.local/lib/python3.9/site-packages
Requires: zipp
Required-by: Markdown

It turned out I was using a non updated version installed with pip install --user.

Btw, it is possible (or a good idea) to change the PYTHONPATH for this program (or pacman installed programs) so I don't have this problem again?

AlexBocken commented on 2021-11-23 09:39 (UTC) (edited on 2021-11-23 09:40 (UTC) by AlexBocken)

@DSinapellido Thanks for the feedback! Hmm... not straightforward to me what it could be. https://github.com/jaraco/keyring/issues/501 Here it's related to python-importlib-metadata. This package seems to come up multiple times with this error. But importlib-metadata is a dependency of python-markdown and thus should be installed. Can you check manually whether that's the case for you? (paru -Qs python-importlib-metadata)What version has importlib-metadata in your case? pip show importlib-metadata can give you relevant information.

Navrxz commented on 2021-11-23 03:26 (UTC)

This package spits out some errors during makepkg -s . Try anki-official-binary-bundle 2.1.49-1 package , It is working well .

ddavo commented on 2021-11-21 09:20 (UTC)

Anki fails to open. Trying to run it from the terminal, I get the following error

anki
Traceback (most recent call last):
  File "/usr/bin/anki", line 16, in <module>
    import aqt
  File "/usr/lib/python3.9/site-packages/aqt/__init__.py", line 15, in <module>
    import anki.lang
  File "/usr/lib/python3.9/site-packages/anki/lang.py", line 12, in <module>
    import anki._backend
  File "/usr/lib/python3.9/site-packages/anki/_backend/__init__.py", line 11, in <module>
    from markdown import markdown
  File "/usr/lib/python3.9/site-packages/markdown/__init__.py", line 29, in <module>
    from .core import Markdown, markdown, markdownFromFile  # noqa: E402
  File "/usr/lib/python3.9/site-packages/markdown/core.py", line 26, in <module>
    from . import util
  File "/usr/lib/python3.9/site-packages/markdown/util.py", line 88, in <module>
    INSTALLED_EXTENSIONS = metadata.entry_points(group='markdown.extensions')
TypeError: entry_points() got an unexpected keyword argument 'group'

Maybe it's a dependency error?

AlexBocken commented on 2021-10-27 10:38 (UTC) (edited on 2021-10-27 10:38 (UTC) by AlexBocken)

Thanks for the help from @pawggers and @Nocifer. I've added a check in prepare to delete ts/node_modules if present.