SOLVED: 4.1.44 not opening, log below

I updated from 2.1.29 today to try the very appealing new features and the program will not open when I launch it. It appears briefly in background processes in task manager before disappearing. I am sorry to be posting about a frequently asked topic - I know I should just go to the 32 bit 2.1.35 build, but my PC is 64 bit and I was wondering why I can’t run the new update. Is there was any useful information in this log?

For the record, I also tried running as admin, uninstalling the previous version first, and installed a windows update.

Edit: following the -b command in this other thread I got Anki to open with a blank profile. Does that suggest some of my addons are causing the problem?

[4808] PyInstaller Bootloader 3.x
[4808] LOADER: executable is C:\Program Files\Anki\anki-console.exe
[4808] LOADER: homepath is C:\Program Files\Anki
[4808] LOADER: MEIPASS2 is NULL
[4808] LOADER: archivename is C:\Program Files\Anki\anki-console.exe
[4808] LOADER: C:\Program Files\Anki\anki-console.exe contains a digital signature
[4808] LOADER: No need to extract files to run; setting extractionpath to homepath
[4808] LOADER: SetDllDirectory(C:\Program Files\Anki)
[4808] LOADER: Already in the child - running user’s code.
[4808] LOADER: Python library: C:\Program Files\Anki\python38.dll
[4808] LOADER: Loaded functions from Python library.
[4808] LOADER: Manipulating environment (sys.path, sys.prefix)
[4808] LOADER: sys.prefix is C:\Program Files\Anki
[4808] LOADER: Pre-init sys.path is C:\Program Files\Anki\base_library.zip;C:\Program Files\Anki
[4808] LOADER: Setting runtime options
[4808] LOADER: Initializing python
[4808] LOADER: Overriding Python’s sys.path
[4808] LOADER: Post-init sys.path is C:\Program Files\Anki\base_library.zip;C:\Program Files\Anki
[4808] LOADER: Setting sys.argv
[4808] LOADER: setting sys.MEIPASS
[4808] LOADER: importing modules from CArchive
[4808] LOADER: extracted struct
[4808] LOADER: callfunction returned…
[4808] LOADER: extracted pyimod01_os_path
[4808] LOADER: callfunction returned…
[4808] LOADER: extracted pyimod02_archive
[4808] LOADER: callfunction returned…
[4808] LOADER: extracted pyimod03_importers
[4808] LOADER: callfunction returned…
[4808] LOADER: Installing PYZ archive with Python modules.
[4808] LOADER: PYZ archive: PYZ-00.pyz
[4808] LOADER: Running pyiboot01_bootstrap.py
[4808] LOADER: Running pyi_rth_win32comgenpy.py
[4808] LOADER: Running pyi_rth_multiprocessing.py
[4808] LOADER: Running pyi_rth_certifi.py
[4808] LOADER: Running pyi_rth_pyqt5.py
[4808] LOADER: Running pyi_rth_pkgres.py
[4808] LOADER: Running pyi_rth_pyqt5webengine.py
[4808] LOADER: Running runanki.py
File “runanki.py”, line 4, in
File "aqt_init
.py", line 421, in run
File "aqt_init
.py", line 594, in _run
File “aqt\main.py”, line 123, in init
File “aqt\main.py”, line 842, in setupAddons
File “aqt\addons.py”, line 210, in loadAddons
File “”, line 991, in _find_and_load
File “”, line 975, in find_and_load_unlocked
File “”, line 671, in load_unlocked
File “”, line 783, in exec_module
File “”, line 219, in call_with_frames_removed
File "C:\Users[…]\AppData\Roaming\Anki2\addons21\1102281552_init
.py", line 3, in
from anki.utils import json
File “anki\utils.py”, line 41, in getattr
add-on should import json directly, not from anki.utils
File “runanki.py”, line 4, in
File "aqt_init
.py", line 421, in run
File "aqt_init
.py", line 594, in _run
File “aqt\main.py”, line 123, in init
File “aqt\main.py”, line 842, in setupAddons
File “aqt\addons.py”, line 210, in loadAddons
File “”, line 991, in _find_and_load
File “”, line 975, in _find_and_load_unlocked
File “”, line 671, in _load_unlocked
File “”, line 783, in exec_module
File “”, line 219, in call_with_frames_removed
File "C:\Users[…]\AppData\Roaming\Anki2\addons21\1102281552_init
.py", line 8, in
from . import dialog
File “”, line 1042, in _handle_fromlist
File “”, line 219, in _call_with_frames_removed
File “”, line 991, in _find_and_load
File “”, line 975, in _find_and_load_unlocked
File “”, line 671, in _load_unlocked
File “”, line 783, in exec_module
File “”, line 219, in _call_with_frames_removed
File “C:\Users[…]\AppData\Roaming\Anki2\addons21\1102281552\dialog.py”, line 5, in
from anki.utils import json
File “anki\utils.py”, line 41, in getattr
add-on should import json directly, not from anki.utils
gettext _() is deprecated: Postpone cards
gettext _() is deprecated: Postpone cards
gettext _() is deprecated: Postpone cards

SOLVED: It is indeed the addons. I renamed my Anki2 folder in AppData and got Anki to launch. I saved my addon folders in a zip folder and recreated the issue by replacing them all.

I will play around and figure out which ones cause the issue. I have a ton of them and have done some amateur file tweaking to them as well, so I foresaw this eventually causing problems.

I accidentally posted this in another thread as well.

Edit: it was Pomodoro, as users are commenting on that addon page.

1 Like