Load Library failed with error 1114. DLL initialization routine failed on Windows 10

Console log is pasted below for information. please help me out
C:\Program Files\Anki>anki-console
[404] PyInstaller Bootloader 3.x
[404] LOADER: executable is C:\Program Files\Anki\anki-console.exe
[404] LOADER: homepath is C:\Program Files\Anki
[404] LOADER: archivename is C:\Program Files\Anki\anki-console.exe
[404] LOADER: C:\Program Files\Anki\anki-console.exe contains a digital signature
[404] LOADER: No need to extract files to run; setting extractionpath to homepath
[404] LOADER: SetDllDirectory(C:\Program Files\Anki)
[404] LOADER: Already in the child - running user’s code.
[404] LOADER: Python library: C:\Program Files\Anki\python38.dll
[404] LOADER: Loaded functions from Python library.
[404] LOADER: Manipulating environment (sys.path, sys.prefix)
[404] LOADER: sys.prefix is C:\Program Files\Anki
[404] LOADER: Pre-init sys.path is C:\Program Files\Anki\base_library.zip;C:\Program Files\Anki
[404] LOADER: Setting runtime options
[404] LOADER: Initializing python
[404] LOADER: Overriding Python’s sys.path
[404] LOADER: Post-init sys.path is C:\Program Files\Anki\base_library.zip;C:\Program Files\Anki
[404] LOADER: Setting sys.argv
[404] LOADER: setting sys._MEIPASS
[404] LOADER: importing modules from CArchive
[404] LOADER: extracted struct
[404] LOADER: callfunction returned…
[404] LOADER: extracted pyimod01_os_path
[404] LOADER: callfunction returned…
[404] LOADER: extracted pyimod02_archive
[404] LOADER: callfunction returned…
[404] LOADER: extracted pyimod03_importers
[404] LOADER: callfunction returned…
[404] LOADER: Installing PYZ archive with Python modules.
[404] LOADER: PYZ archive: PYZ-00.pyz
[404] LOADER: Running pyiboot01_bootstrap.py
[404] LOADER: Running pyi_rth_multiprocessing.py
[404] LOADER: Running pyi_rth_win32comgenpy.py
[404] LOADER: Running pyi_rth_pyqt5.py
[404] LOADER: Running pyi_rth_certifi.py
[404] LOADER: Running pyi_rth_pkgres.py
[404] LOADER: Running pyi_rth_pyqt5webengine.py
[404] LOADER: Running runanki.py
resetting corrupt global
Traceback (most recent call last):
File "aqt_init
.py", line 407, in _run
File “aqt\profiles.py”, line 79, in setupMeta
File “aqt\profiles.py”, line 390, in _loadMeta
File “lib\site-packages\anki\db.py”, line 41, in execute
sqlite3.OperationalError: database is locked

C:\Program Files\Anki>

Please see https://anki.tenderapp.com/kb/problems/when-problems-occur

If I recall correctly, that error is caused by your video driver, and changing it may help:

Thanks for the info. This link helped for setting the graphics settings https://errortools.com/windows/how-to-fix-loadlibrary-failed-with-error-1114-on-windows-10/

Glad to hear you were able to resolve the issue. To anyone else looking on, please do not download any software from the above link - a brief Google seems to indicate the software it links to may be problematic.

1 Like