You are not logged in.

#1 2020-10-26 14:02:57

yoghurt24034
Member
Registered: 2020-10-26
Posts: 2

Problems starting Anki

I tried installing the anki-official-binary-bundle using yay.
When I try to run Anki i get the following output:

~ > anki                                                                                                                                                                                                                                                             
Traceback (most recent call last):
  File "anki/__init__.py", line 14, in <module>
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 "runanki", line 3, in <module>
  File "<frozen importlib._bootstrap>", line 991, in _find_and_load
  File "<frozen importlib._bootstrap>", line 975, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 671, in _load_unlocked
  File "/home/dae/Local/py514/lib/python3.8/site-packages/PyInstaller-4.0.dev0+g2886519-py3.8.egg/PyInstaller/loader/pyimod03_importers.py", line 625, in exec_module
  File "aqt/__init__.py", line 15, in <module>
  File "<frozen importlib._bootstrap>", line 991, in _find_and_load
  File "<frozen importlib._bootstrap>", line 975, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 671, in _load_unlocked
  File "/home/dae/Local/py514/lib/python3.8/site-packages/PyInstaller-4.0.dev0+g2886519-py3.8.egg/PyInstaller/loader/pyimod03_importers.py", line 625, in exec_module
  File "anki/__init__.py", line 16, in <module>
Exception: Anki requires a UTF-8 locale.
[120124] Failed to execute script runanki

Since I'm quite new to Arch Linux /Linux in general, I have no Idea which packets I'm missing or what my Problem is.

Would be great if someone could give me some advice on this

Offline

#2 2020-10-26 14:04:50

Scimmia
Fellow
Registered: 2012-09-01
Posts: 13,729

Re: Problems starting Anki

You probably missed this: https://wiki.archlinux.org/index.php/In … calization

what is the output of `locale` and `locale -a`?

Offline

#3 2020-10-26 14:20:26

yoghurt24034
Member
Registered: 2020-10-26
Posts: 2

Re: Problems starting Anki

~ > locale                                                                                                                                                                                                                                                       
LANG=C
LC_CTYPE="C"
LC_NUMERIC="C"
LC_TIME="C"
LC_COLLATE="C"
LC_MONETARY="C"
LC_MESSAGES="C"
LC_PAPER="C"
LC_NAME="C"
LC_ADDRESS="C"
LC_TELEPHONE="C"
LC_MEASUREMENT="C"
LC_IDENTIFICATION="C"
LC_ALL=
~ > locale -a                                                                                                                                                                                                                                                        
C
POSIX
de_DE
de_DE.iso88591
de_DE.iso885915@euro
de_DE.utf8
de_DE@euro
deutsch
en_US
en_US.iso88591
en_US.utf8
german

Offline

#4 2020-10-26 14:26:06

Scimmia
Fellow
Registered: 2012-09-01
Posts: 13,729

Re: Problems starting Anki

So you didn't miss it completely, just skipped or misconfigured the second part of the link.

You really don't want those iso88591 locales, and I have no idea where the 'deutsch' and 'german' locales came from. What all did you uncomment in /etc/locale.gen?

Offline

Board footer

Powered by FluxBB