There’s no response when I opening the program.(latest anki-2.1.49-windows)
And when I opened anki-console.exe, I found these:
AttributeError: ’ MpvManager’ object has no attribute ’_sock’
Exception in thread Thread-100:
mpv timed out, restarting
Traceback (most recent call last):
File “threading, py”, line 932, in _bootstrap_inner
File “threading, py”, line 870, in run
File “aqt\mpv. py”, line 234, in _reader
AttributeError: ’MpvManager’ object has no attribute ’_sock’
Exception in thread Thread-101:
mpv timed out, restarting
Traceback (most recent call last):
File “threading, py”, line 932, in _bootstrap_inner
File “threading, py”, line 870, in run
File “aqt\mpv. py”, line 234, in _reader
AttributeError: ’MpvManager’ object has no attribute ’_sock’
Exception in thread Thread-102:
mpv timed out, restarting
An infinite loop of thread creation about mpv? I have no idea…
You could try to go for the simple way, which is use mplayer instead of mpv…
To do that, download mplayer, then move mplayer.exe in the anki files, where there should be a mpv.exe file, and rename / delete the latter.
I would be better to continue here instead, so that this thread contains both the question and the answer (think about future people who will read this, and will be glad to find the solution right away).
[6376] PyInstaller Bootloader 3.x
[6376] LOADER: executable is D:\Program Files\Anki\anki-console.exe
[6376] LOADER: homepath is D:\Program Files\Anki
[6376] LOADER: _MEIPASS2 is NULL
[6376] LOADER: archivename is D:\Program Files\Anki\anki-console.exe
[6376] LOADER: D:\Program Files\Anki\anki-console.exe contains a digital signature
[6376] LOADER: No need to extract files to run; setting extractionpath to homepath
[6376] LOADER: SetDllDirectory(D:\Program Files\Anki)
[6376] LOADER: Already in the child - running user’s code.
[6376] LOADER: Python library: D:\Program Files\Anki\python38.dll
[6376] LOADER: Loaded functions from Python library.
[6376] LOADER: Manipulating environment (sys.path, sys.prefix)
[6376] LOADER: sys.prefix is D:\Program Files\Anki
[6376] LOADER: Pre-init sys.path is D:\Program Files\Anki\base_library.zip;D:\Program Files\Anki
[6376] LOADER: Setting runtime options
[6376] LOADER: Initializing python
[6376] LOADER: Overriding Python’s sys.path
[6376] LOADER: Post-init sys.path is D:\Program Files\Anki\base_library.zip;D:\Program Files\Anki
[6376] LOADER: Setting sys.argv
[6376] LOADER: setting sys._MEIPASS
[6376] LOADER: importing modules from CArchive
[6376] LOADER: extracted struct
[6376] LOADER: callfunction returned…
[6376] LOADER: extracted pyimod01_os_path
[6376] LOADER: callfunction returned…
[6376] LOADER: extracted pyimod02_archive
[6376] LOADER: callfunction returned…
[6376] LOADER: extracted pyimod03_importers
[6376] LOADER: callfunction returned…
[6376] LOADER: Installing PYZ archive with Python modules.
[6376] LOADER: PYZ archive: PYZ-00.pyz
[6376] LOADER: Running pyiboot01_bootstrap.py
[6376] LOADER: Running pyi_rth_win32comgenpy.py
[6376] LOADER: Running pyi_rth_multiprocessing.py
[6376] LOADER: Running pyi_rth_certifi.py
[6376] LOADER: Running pyi_rth_pyqt5.py
[6376] LOADER: Running pyi_rth_pkgres.py
[6376] LOADER: Running pyi_rth_pyqt5webengine.py
[6376] LOADER: Running runanki.py
Exception in thread Thread-1:
Traceback (most recent call last):
File “waitress\trigger.py”, line 174, in init
TimeoutError: [WinError 10060] 由于连接方在一段时间后没有正确答复或连接的主机没有反应,连接尝试失败。(the Chinese here means no response and connection failed)
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File “threading.py”, line 932, in _bootstrap_inner
File “aqt\mediasrv.py”, line 75, in run
File “waitress\server.py”, line 78, in create_server
File “waitress\server.py”, line 229, in init
File “waitress\trigger.py”, line 177, in init
TypeError: ‘TimeoutError’ object is not subscriptable
Exception in threading.excepthook:
Exception ignored in thread started by: <bound method Thread._bootstrap of <MediaServer(Thread-1, started 7536)>>
Traceback (most recent call last):
File “threading.py”, line 890, in _bootstrap
File “threading.py”, line 934, in _bootstrap_inner
File “threading.py”, line 1212, in invoke_excepthook
AttributeError: ‘ErrorHandler’ object has no attribute ‘flush’
Exception ignored in sys.unraisablehook:
AttributeError: ‘ErrorHandler’ object has no attribute ‘flush’