Anki not starting

I tried running anki on my arch system but it would not start. The terminal gave me the following output: File “aqt/”, line 30, in
UnicodeEncodeError: ‘ascii’ codec can’t encode characters in position 0-2: ordinal not in range(128)

The above exception was the direct cause of the following exception:

Traceback (most recent call last):
File “”, line 3, in
File “”, line 991, in _find_and_load
File “”, line 975, in _find_and_load_unlocked
File “”, line 671, in _load_unlocked
File “/home/dae/venv/lib/python3.8/site-packages/PyInstaller-4.0.dev0+g2886519-py3.8.egg/PyInstaller/loader/”, line 625, in exec_module
File “aqt/”, line 32, in
Exception: Anki requires a UTF-8 locale.

What version of Anki are you running? I believe the latest version requires Python 3.9, so perhaps that will help.

I am using version 2.1.49

I would give the latest beta a try, or try running it from source.

You need to switch your Linux system to use a UTF8 locale. Your distro likely has a wiki page with guidance.