Upgraded to Linux Mint 22.3, Can't Type in Japanese

TL;DR Version:

Upgrading to Linux Mint 22.3 and broke my ability to switch to the Japanese IME. I’m at a loss on how to troubleshoot it further.

Quick Version:

  • Upgraded from Linux Mint 22.2 to 22.3 (and like a fool I didn’t have snapshots set up)
  • Could no longer type in Japanese in Anki (could not switch to Japanese IME)
  • Decided to reinstall, but screwed something up with PyQt so bad that Anki wouldn’t even run. In desperation I downloaded the flatpack and that worked fine (still no JP IME, but at least it would run)
  • (curious side note: before this whole debacle, whenever I typed an emoji into Anki, I’d get a double input, e.g. :parrot::parrot:. Since mainlining the flatpack, this no longer happens. I have no idea what it means, but I feel like it’s probably indicative of whatever changed.)

I just gave up and used the Flatpak for a good couple weeks. Today I tried troubleshooting again, and though I swear I followed the same troubleshooting steps, I managed to at least successfully reinstall Anki, but am still cannot type in Japanese like before.

Verbose Version:

I will try to document my entire reinstall process here as per the Anki Manual’s “Installing & Upgrading Anki on Linux” page. I apologize if this is a needless level of detail, but I’m kind of at a loss if this is an Anki problem, Linux Mint problem, Anki dependency problem, et al, so I’m trying to be thorough.

‘Regular’ version of Anki was still throwing ModuleNotFoundError: No module named ‘PyQt6.QtQuick’, so I tried just uninstalling and reinstalling. Ran the uninstall script and deleted the whole directory outright in the GUI file browser.

  • Basic download and install goes well. Decompress the tarball and run the install script. Everything copies with no errors. Sorted.
  • Promped with “Type anki to run”. I do that. Return the following error (post-hoc “ACCOUNT” edits done by me):

WARNING: CPU random generator seem to be failing, disabling hardware random number generation
WARNING: RDRND generated: 0xffffffff 0xffffffff 0xffffffff 0xffffffff
Traceback (most recent call last):
File “”, line 1, in
File “/home/ACCOUNT/.local/share/AnkiProgramFiles/.venv/lib/python3.12/site-packages/aqt/init.py”, line 65, in
from aqt import gui_hooks
File “/home/ACCOUNT/.local/share/AnkiProgramFiles/.venv/lib/python3.12/site-packages/aqt/gui_hooks.py”, line 11, in
from _aqt.hooks import *
File “/home/ACCOUNT/.local/share/AnkiProgramFiles/.venv/lib/python3.12/site-packages/_aqt/hooks.py”, line 18, in
from aqt.qt import QDialog, QEvent, QMenu, QModelIndex, QWidget, QMimeData
File “/home/ACCOUNT/.local/share/AnkiProgramFiles/.venv/lib/python3.12/site-packages/aqt/qt/init.py”, line 19, in
from .qt6 import *
File “/home/ACCOUNT/.local/share/AnkiProgramFiles/.venv/lib/python3.12/site-packages/aqt/qt/qt6.py”, line 16, in
from PyQt6.QtQuick import *
ModuleNotFoundError: No module named ‘PyQt6.QtQuick’

  • I don’t remember this happening before this whole debacle. This might be the root of the problem? However that’s conjecture based on hazy memory. And regardless I’m completely ignorant of how to use any of this intelligently.
  • Running “QT_DEBUG_PLUGINS=1 anki” in accordance with “Missing Libraries” page of the Anki Manual yields the exact same error message as above.
  • I try following the steps under the System Qt versions header of the Linux install page. Run sudo apt install python3-pyqt6.qtwebengine.

Reading package lists… Done
Building dependency tree… Done
Reading state information… Done
python3-pyqt6.qtwebengine is already the newest version (6.6.0-1build2).
0 upgraded, 0 newly installed, 0 to remove and 14 not upgraded.

  • Seems good I guess?
  • Run the designated “rm -rf” command.
  • Run “touch system_qt” command which creates a 0 byte file in the directory. I’m not going to pretend I knew what the “touch” command was before running into this issue, but I guess this is right? I suppose this is just pseudo-flag to block Anki from installing its own PyQy library and use the OS provided one? Let me know if I screwed up here.
  • Run “sudo ./anki”. Get prompted by the numerical Anki Launcher menu. I select “1) Latest Anki (press Enter)”.

Today this successfully launches Anki. So I guess I know for a fact I’ve screwed up at at least one point, because I didn’t get this far several weeks ago. Regardless, while I am now able to start Anki, sync my library, and nominally study as normal, I still cannot switch to the Japanese IME (fcitx+Mozc input). For the record, this is my debug info:

Anki 25.09.2 (3890e12c)
Python 3.13.5 Qt 6.9.1 PyQt 6.9.1
Platform: Linux-6.8.0-55-generic-x86_64-with-glibc2.39

uhh last part I dunno

Thus, I’m at a loss of how to further troubleshoot. Kindly request any help. I’m just using “copy/paste from a separate text editor” as a workaround, and I have grown tired of it. plz help, me big dum dum and I have no mouth IME and I must scream[type in moonrunes again]. :frowning: :frowning:

Have you got through this thread thoroughly?

No I have not. Thank you for the pointer. I’ll work my way through it and report back if nothing works of if it solves it.

Got around to following up this problem tonight. I followed along with that thread, and switching to IBus from Fcitx was an instant fix. I had frustrations with input methods when I was switching from Windows/distro hopping, and I perhaps misremember it being harder than it was. I just really wanted to really avoid messing with my input/IME settings, but it turned out to be a non issue. C’est la vie.

Thanks for the pointer towards that thread again!