How to get Anki running on the Librem 5?

Hi,

I’m trying to get Anki running on the Librem 5. With the version from the PureStore, when I tried to synchronise I got the error message ‘Your Anki client does not support the new timezone handling yet. Please ensure your Anki is up to date’. I have now found out that this Anki version is too old. However, I can’t use the version from the Anki website for the Librem either. Are there any plans to update the version from the PureStore? Or does anyone else have any ideas?

1 Like

Python wheels:

1 Like

There’s also:

2 Likes

Thank you very much! I’ll try that out right away.

1 Like

I’ve tried that too. But unfortunately that didn’t work either.

1 Like

This is what worked for me on the Librem 5 with Byzantium:

I followed the steps to install Anki via PyPI/pip (mentioned by @FranklyFlawless above), but had to adjust them a bit. So this is what I did:

Install the PyQt5 packages:

sudo apt install python3-pyqt5.{qtwebengine,qtmultimedia}

Create a directory for Anki and cd into that directory:

mkdir anki
cd anki

Then run the following:

python3 -m venv --system-site-packages pyenv
pyenv/bin/pip install --upgrade pip
pyenv/bin/pip install --upgrade --pre aqt

Start Anki:

QT_QPA_PLATFORM=wayland pyenv/bin/anki
3 Likes

I got Anki flatpak to work on amber a few years ago; at least, it worked on some level.

I created this specifically with Anki in mind.

(I like to study foreign languages.)

3 Likes

That worked. Thank you very much!

1 Like

Great that it worked!

If you want to upgrade Anki later, just run the following command again:

pyenv/bin/pip install --upgrade --pre aqt

One more thing I did was to create a desktop button to start the app. I created a file ~/.local/share/applications/anki.desktop with the following content (mostly copied from here):

[Desktop Entry]
Name=Anki
Comment=An intelligent spaced-repetition memory training program
GenericName=Flashcards
Exec=env QT_QPA_PLATFORM=wayland /path/to/pyenv/bin/anki
Icon=anki
Categories=Education;Languages;KDE;Qt;
Terminal=false
Type=Application
Version=1.0
MimeType=application/x-apkg;application/x-anki;application/x-ankiaddon;
X-Purism-FormFactor=Workstation;Mobile;

Replace /path/to/pyenv/bin/anki with the actual path on your system.

You can get the app icon from here and put it in ~/.local/share/icons/.

3 Likes

That would have been my next question :slight_smile: thank you very much!

1 Like