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: 175
Popularity: 7.51
First Submitted: 2021-09-17 22:31 (UTC)
Last Updated: 2024-08-02 10:08 (UTC)

Latest Comments

« First ‹ Previous 1 .. 20 21 22 23 24 25 26 27 28 29 30 Next › Last »

simpleauthority commented on 2021-12-23 19:49 (UTC) (edited on 2021-12-23 19:49 (UTC) by simpleauthority)

@AlexBocken Yep I have jre11-openjdk installed (also jre-openjdk (17) and jre8-openjdk.) Looks like 17 is set as default via archlinux-java. Do I need to set it to 11 for this or somehow make Bazel use 11? Thanks for the reply.

AlexBocken commented on 2021-12-23 13:46 (UTC) (edited on 2021-12-23 13:58 (UTC) by AlexBocken)

@simpleauthority Ah i just noticed that the build requires Java version 11 to be installed. Can you see wether you have jre11-openjdk installed? (pacman -Qs jre11-openjdk) I might have messed something up with build-depts otherwise. Edit: nvmd, it should be installed as a dependency of bazel.

simpleauthority commented on 2021-12-23 12:20 (UTC)

I tried the pinned solution for failing compilation, but no dice. I am getting a Java exception: https://paste.gg/p/anonymous/06c38b383841449ea01830e58d0926b2

Is this due to my local Java install or something else?

AlexBocken commented on 2021-12-22 12:40 (UTC)

@flavio92ux really not giving me a lot of information to go off on here. The package builds on my side without any issues.Have you tried the commands listed in the stickied comment? Most compilations fail due to partially downloaded dependencies. These commands usually fix that by forcing a redownload.

flavio92ux commented on 2021-12-22 11:06 (UTC)

Package is broken. Please, fix it.

AlexBocken commented on 2021-12-17 05:24 (UTC)

@ArMor007 I would watch out with partial system upgrades. For such a specific use-case I would reccomend trying anki-official-binary-bundle at this specific old version.

ArMor007 commented on 2021-12-17 00:22 (UTC) (edited on 2021-12-17 00:27 (UTC) by ArMor007)

Opening the old options page(hold shift and press the gear icon) fails. It happened after updating to python 3.10

This rensers packages built from 1d26f6662e2e useless, I need anki 2.1.35 for extension compatibility.

Nocifer commented on 2021-12-14 13:42 (UTC)

I think all of these latest issues have to do with the new Python 3.10 and 2.1.49's frozen-in-time Python dependencies, which are too old to play nicely with Arch's bleeding-edge-ish system libraries. As a test, yesterday I compiled the latest master and it built quite successfully, and it now works without any crashes whatsoever, and even the tooltips are no longer getting cut off; so I believe any issues with this package will be resolved automagically whenever Anki 2.1.50 is released.

AlexBocken commented on 2021-12-14 13:22 (UTC)

@Pave This is probably due to the update of python from 3.9 to 3.10 and python-pyqt5 being installed for python3.9. A correct reinstall of the package in question would solve the issue.

sudo pacman -S pyqt5

If this does not work for you, you can try these two manual methods below.

maybe it's enough to move all the python-pyqt5 files from /usr/lib/python3.9/site-packages to /usr/lib/python3.10/site-packages.

sudo cp -r /usr/lib/python3.9/site-packages/PyQt5* /usr/lib/python/3.10/site-packages/

I think this was enough for my anki install to work again.

The underlying issue is a bit larger, so personally I found this method to work: (use at your own discretion, quite brute-force)

sudo rm -rf /usr/lib/python3.9 (or mv if you want a backup just in case)
sudo rm -rf ~/.cache/paru/clone (for AUR python packages)
sudo rm -rf /var/cache/pacman/pkg (again, nv if you want a backup just in case)
paru -S $(paru -Qqs python | grep '^python-') (this now forces a reinstall of all python packages (at least the ones starting wiht "python-", including python-pyqt5)