Package Details: anki-git r11208.b7cb0c0d0-1

Git Clone URL: https://aur.archlinux.org/anki-git.git (read-only, click to copy)
Package Base: anki-git
Description: Helps you remember facts (like words/phrases in a foreign language) efficiently
Upstream URL: hhttps://apps.ankiweb.net/
Keywords: anki memorise memory study
Licenses: AGPL3
Conflicts: anki, anki-official-binary-bundle, anki20
Provides: anki
Submitter: degeberg
Maintainer: None
Last Packager: 1over137
Votes: 25
Popularity: 0.000031
First Submitted: 2017-02-12 11:51 (UTC)
Last Updated: 2025-04-05 15:09 (UTC)

Latest Comments

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

hearth commented on 2024-03-05 18:03 (UTC)

@elimik31 thanks for this. after installing this, I get further errors, however:

pip_system_certs: ERROR: could not register module: cannot import name 'formatargspec' from 'inspect' (/usr/lib/python3.11/inspect.py)
Traceback (most recent call last):
  File "/usr/bin/anki", line 17, in <module>
    import aqt
  File "/usr/lib/python3.11/site-packages/aqt/__init__.py", line 9, in <module>
    import pip_system_certs.wrapt_requests
  File "/home/hearth/.local/lib/python3.11/site-packages/pip_system_certs/wrapt_requests.py", line 3, in <module>
    import wrapt
  File "/home/hearth/.local/lib/python3.11/site-packages/wrapt/__init__.py", line 10, in <module>
    from .decorators import (adapter_factory, AdapterFactory, decorator,
  File "/home/hearth/.local/lib/python3.11/site-packages/wrapt/decorators.py", line 34, in <module>
    from inspect import ismethod, isclass, formatargspec
ImportError: cannot import name 'formatargspec' from 'inspect' (/usr/lib/python3.11/inspect.py)

Would anyone happen to know a fix?

elimik31 commented on 2024-03-04 18:30 (UTC)

Since Anki PR #3050 Anki built with this PKGBUILD doesn't start with the message

ModuleNotFoundError: No module named 'pip_system_certs'

Fixed it locally by pip-installing pip_system_certs. Sadly didn't find a system-package for that python packages yet.

DarkShadow44 commented on 2023-12-11 21:01 (UTC)

@hypnagogic: This is a git package, so it will be the latest git version instead of a release. The current listed commit doesn't matter, it's just the last version when I made an update - you will always get the latest version.

@elimik31: Yeah, that makes sense. Thanks, updated.

hypnagogic commented on 2023-12-11 15:48 (UTC)

Is it normal to build from commits rather than release? Either way the commit currently listed as of writing, af3a2d396, is old. The current beta release is newer.

elimik31 commented on 2023-12-11 13:28 (UTC)

During the build I get the warning

Installing collected packages: aqt, anki
  WARNING: The script anki is installed in '/home/michael/.cache/paru/clone/anki-git/pkg/anki-git/usr/bin' which is not on PATH.
  Consider adding this directory to PATH or, if you prefer to suppress this warning, use --no-warn-script-location.

Obviously here it's a false warning, we install to a temporary install directory on purpose. Therefore I suggest adding --no-warn-script-location to the PKGBUILD.

DarkShadow44 commented on 2023-11-07 18:02 (UTC)

@hearth Sorry, that was an oversight. Of course the paths changes as well, it should work now.

hearth commented on 2023-11-07 11:50 (UTC)

Failure to build today:

==> Extracting sources...
  -> Creating working copy of anki git repo...
Cloning into 'anki'...
done.
==> Starting prepare()...
/home/hearth/.cache/paru/clone/anki-git/PKGBUILD: line 73: cd: anki-git: No such file or directory
==> ERROR: A failure occurred in prepare().
Aborting...
error: failed to build 'anki-git-r.9268dce-1'

DarkShadow44 commented on 2023-11-06 18:57 (UTC)

Updated, I hope the pkgver change this created doesn't lead to problems.

MarsSeed commented on 2023-11-06 18:23 (UTC) (edited on 2023-11-06 18:24 (UTC) by MarsSeed)

Please don't set the local repo name to 'anki-git'.

I recommend that you set it to 'anki'.

It is better to keep the original repo name, in case other PKGBUILDs (even stable ones) decide to use the git repo as source. (Otherwise, with custom naming, every git-source using packages will clone its own copy, even if a common SRCDEST is set.)

Also, after the recent repo URL change, makepkg will refuse to build if there is an existing clone: the new URL makes it think that it leads to a different repo.

Setting the local repo name to 'anki' eliminates that problem as well.

petronny commented on 2023-09-14 06:47 (UTC)

My previous error superisely disappears after disabling LTO.