#2833 pyimod03_ctypes.install.<locals>.PyInstallerImportError: Failed to load dynlib/dll 'D:\\videotrans\\win-pyvideotrans-v3.

191.96* Posted at: 3 days ago 👁35

Traceback (most recent call last):
File "pyimod03_ctypes.py", line 77, in init
File "ctypes\__init__.py", line 374, in init
FileNotFoundError: Could not find module 'D:\videotrans\win-pyvideotrans-v3.91_20251220_225815\_internal\azure\cognitiveservices\speech\Microsoft.CognitiveServices.Speech.core.dll' (or one of its dependencies). Try using the full path with constructor syntax.

The above exception was the direct cause of the following exception:

Traceback (most recent call last):
File "videotrans\mainwin\_main_win.py", line 77, in _set_Ui_Text
File "", line 1027, in _find_and_load
File "", line 1006, in _find_and_load_unlocked
File "", line 688, in _load_unlocked
File "pyimod02_importers.py", line 457, in exec_module
File "videotrans\tts\__init__.py", line 9, in
File "", line 1027, in _find_and_load
File "", line 1006, in _find_and_load_unlocked
File "", line 688, in _load_unlocked
File "pyimod02_importers.py", line 457, in exec_module
File "videotrans\tts\_azuretts.py", line 5, in
File "", line 1027, in _find_and_load
File "", line 1006, in _find_and_load_unlocked
File "", line 688, in _load_unlocked
File "pyimod02_importers.py", line 457, in exec_module
File "azure\cognitiveservices\speech\__init__.py", line 8, in

from .speech import *

File "", line 1027, in _find_and_load
File "", line 1006, in _find_and_load_unlocked
File "", line 688, in _load_unlocked
File "pyimod02_importers.py", line 457, in exec_module
File "azure\cognitiveservices\speech\speech.py", line 13, in

from .interop import (

File "", line 1027, in _find_and_load
File "", line 1006, in _find_and_load_unlocked
File "", line 688, in _load_unlocked
File "pyimod02_importers.py", line 457, in exec_module
File "azure\cognitiveservices\speech\interop.py", line 20, in

_sdk_lib = load_library.LoadLibrary(lib_path)

File "ctypes\__init__.py", line 452, in LoadLibrary
File "pyimod03_ctypes.py", line 79, in init
pyimod03_ctypes.install..PyInstallerImportError: Failed to load dynlib/dll 'D:\videotrans\win-pyvideotrans-v3.91_20251220_225815\_internal\azure\cognitiveservices\speech\Microsoft.CognitiveServices.Speech.core.dll'. Most likely this dynlib/dll was not found when the application was frozen.


=
system:Windows-10-10.0.19045-SP0
version:v3.91
frozen:True
language:zh
root_dir:D:/videotrans/win-pyvideotrans-v3.91_20251220_225815

1 Replies

此错误表明软件在尝试加载 Azure TTS 所需的动态链接库 Microsoft.CognitiveServices.Speech.core.dll 时失败。这通常是由于杀毒软件或 Windows Defender 误删了该文件,或者软件包本身不完整导致的。

请按以下步骤解决:

  1. 关闭杀毒软件:暂时完全退出电脑上所有第三方杀毒软件(如 360、腾讯电脑管家等),并暂时关闭 Windows Defender 的实时保护。
  2. 重新解压软件

    • 将当前的 win-pyvideotrans-v3.91_20251220_225815 文件夹整个删除
    • 从官网重新下载完整的软件压缩包。
    • 在非系统盘(如 D 盘)根目录下新建一个纯英文文件夹(例如 D:\videotrans_new)。
    • 将新下载的压缩包解压到这个新文件夹中。
  3. 添加信任:启动软件前,在杀毒软件中将解压后的整个软件文件夹添加为信任/白名单。
  4. 启动测试:双击新文件夹中的 sp.exe 启动软件。

如果问题依旧,请检查解压后的文件夹 _internal\azure\cognitiveservices\speech\ 路径下是否存在 Microsoft.CognitiveServices.Speech.core.dll 文件。如果不存在,说明下载的包不完整,请尝试从官网的备用下载链接重新下载。

请查看更多参考文档:

Post Your Reply