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)

Latest Comments

« First ‹ Previous 1 .. 16 17 18 19 20 21 22 23 24 25 26 .. 30 Next › Last »

tsubaki commented on 2022-03-31 13:36 (UTC)

Please add patch as a build dependency. The first time I tried to install this, it failed in the prepare phase because patch wasn't installed.

Pave commented on 2022-03-26 16:56 (UTC)

Please add python-pip as a dependency.

AlexBocken commented on 2022-03-23 11:31 (UTC)

Thanks @Goetz for the recommendations. I've added those changes.

kingkhan94 commented on 2022-03-08 10:55 (UTC) (edited on 2022-03-08 10:55 (UTC) by kingkhan94)

@ALL people who are experiencing

Traceback (most recent call last): File "/usr/bin/anki", line 16, in <module> import aqt ModuleNotFoundError: No module named 'aqt' Please type pip install aqt in terminal

MacroController commented on 2022-03-01 15:47 (UTC)

@Nocifer, thanks, it worked :)

Nocifer commented on 2022-02-24 11:28 (UTC)

@MacroController The maintainer of python-stringcase hasn't seen fit to trigger a rebuild of that package for Python 3.10, so even though you have it installed, it cannot be used. You just have to manually rebuild it and then it should work fine.

MacroController commented on 2022-02-20 23:22 (UTC)

So I can build now, but I can't launch the application:

Traceback (most recent call last):
  File "/usr/bin/anki", line 16, in <module>
    import aqt
  File "/usr/lib/python3.10/site-packages/aqt/__init__.py", line 18, in <module>
    from anki.collection import Collection
  File "/usr/lib/python3.10/site-packages/anki/collection.py", line 19, in <module>
    from anki._legacy import DeprecatedNamesMixin, deprecated
  File "/usr/lib/python3.10/site-packages/anki/_legacy.py", line 12, in <module>
    import stringcase
ModuleNotFoundError: No module named 'stringcase'

And yes, stringcase is installed ^^

Goetz commented on 2022-02-19 21:31 (UTC) (edited on 2022-02-19 21:31 (UTC) by Goetz)

Some suggestions for the PKGBUILD:

@@ -48,14 +49,6 @@

     'bazel'
     'clang'
-
-    'maturin'
-    'rust'
-
-    'python-pip'
-    'python-mypy-protobuf'
-    'npm'
-    'typescript'
 )
 optdepends=(
     'lame: record sound'

These packages are not mandatory, because bazel is downloading its own toolchain, whether they are available or not.

@@ -87,14 +80,19 @@
         export LDSHARED="/usr/bin/clang -shared"
     fi
     # build requires java 11 to work, does not compile with java 17
-    env PATH="/usr/lib/jvm/java-11-openjdk/bin/:$PATH" bazel build -c opt dist
+    export JAVA_HOME="/usr/lib/jvm/java-11-openjdk"
+
+   rm -rf bazel-dist
+   bazel build --config opt dist
 }

 package() {
     cd "anki-$pkgver"
-    PIP_CONFIG_FILE=/dev/null pip install --isolated --root="$pkgdir" --ignore-installed --no-deps bazel-bin/pylib/anki/anki-*.whl bazel-bin/qt/aqt/aqt-*.whl
+    PIP_CONFIG_FILE=/dev/null pip install --isolated --root="$pkgdir" --ignore-installed --no-deps --no-warn-script-location bazel-bin/pylib/anki/anki-*.whl bazel-bin/qt/aqt/aqt-*.whl

     install -Dm755 qt/runanki.py "$pkgdir"/usr/bin/anki
     install -Dm644 qt/linux/anki.desktop "$pkgdir"/usr/share/applications/anki.desktop
     install -Dm644 qt/linux/anki.png "$pkgdir"/usr/share/pixmaps/anki.png
+   find $pkgdir -iname __pycache__ | xargs rm -rf
+   find $pkgdir -iname direct_url.json | xargs rm -rf
 }

Use JAVA_HOME instead of setting the javac in PATH, only with this change I am able to compile the AUR.

The rm command is part of the original build script, I have no experience with bazel so I have kept it inside.

In addition delete all __pycache__ folders, these are not mandatory for the package. The other changes prevent warnings during packaging.

Goetz commented on 2022-02-19 21:15 (UTC) (edited on 2022-02-19 21:16 (UTC) by Goetz)

My solution to prevent build errors with bazel is deleting the cache in .cache/bazel.