You are not logged in.

#1 2014-09-15 07:45:41

FirePhoenix
Member
From: /dev/null
Registered: 2011-04-04
Posts: 20
Website

[SOLVED] Anki can not start and raises an exception.

I have installed anki (2.0.28-1) and tried to run, but it could not start. I got the following error message.

Please notify support of this error:

Traceback (most recent call last):
  File "/usr/share/anki/aqt/__init__.py", line 193, in run
    _run()
  File "/usr/share/anki/aqt/__init__.py", line 248, in _run
    setupLang(pm, app, opts.lang)
  File "/usr/share/anki/aqt/__init__.py", line 100, in setupLang
    'anki', dir, languages=[lang], fallback=True)
  File "/usr/lib/python2.7/gettext.py", line 465, in translation
    mofiles = find(domain, localedir, languages, all=1)
  File "/usr/lib/python2.7/gettext.py", line 437, in find
    for nelang in _expand_lang(lang):
  File "/usr/lib/python2.7/gettext.py", line 132, in _expand_lang
    locale = normalize(locale)
  File "/usr/lib/python2.7/locale.py", line 382, in normalize
    code = localename.translate(_ascii_lower_map)
AttributeError: 'NoneType' object has no attribute 'translate'

Any advices?
Thanks in advance.

Last edited by FirePhoenix (2014-09-21 09:58:20)

Offline

#2 2014-09-15 15:23:19

karol
Archivist
Registered: 2009-05-06
Posts: 25,440

Re: [SOLVED] Anki can not start and raises an exception.

Works here.
Is your system up to date?

Offline

#3 2014-09-17 01:44:34

FirePhoenix
Member
From: /dev/null
Registered: 2011-04-04
Posts: 20
Website

Re: [SOLVED] Anki can not start and raises an exception.

karol wrote:

Works here.
Is your system up to date?

Yup, it is.
Additionally, it works fine on my friend's system too. I wonder what is wrong with my system.

Last edited by FirePhoenix (2014-09-17 01:44:54)

Offline

#4 2014-09-17 10:25:06

ceri
Member
Registered: 2013-10-12
Posts: 58

Re: [SOLVED] Anki can not start and raises an exception.

Not sure but it looks like it might have something to do with your system's locale. What's it set to?

Offline

#5 2014-09-21 09:57:47

FirePhoenix
Member
From: /dev/null
Registered: 2011-04-04
Posts: 20
Website

Re: [SOLVED] Anki can not start and raises an exception.

Solved.
Just have to delete prefs.db in ~/Documents/Anki
Someone mentioned it is in ~/Anki but it is in ~/Documents/Anki for me

Offline

Board footer

Powered by FluxBB