#2813 pyimod03_ctypes.install.<locals>.PyInstallerImportError: Failed to load dynlib/dll 'D:\\videotrans\\_internal\\azure\\co

27.189* Posted at: 4 days ago 👁52

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\_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\_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.22621-SP0
version:v3.92
frozen:True
language:zh
root_dir:D:/videotrans

1 Replies

这个错误是由于软件在启动时尝试加载 Azure TTS 相关的动态链接库 (DLL) 文件失败导致的。该 DLL 文件 (Microsoft.CognitiveServices.Speech.core.dll) 可能缺失或损坏。

核心解决方法:重新下载并解压完整软件包。

  1. 关闭当前运行的 pyVideoTrans 软件。
  2. 删除你当前的 D:/videotrans 整个文件夹。
  3. 重新下载完整的 pyVideoTrans 预打包版(不是升级补丁)。请确保从官方网站或可靠来源获取。
  4. 重新解压到一个全新的、路径简单的目录。例如 D:\pyvideotrans

    • 重要:确保解压路径不包含任何中文字符、空格或特殊符号。
    • 不要解压到 C:\Program Files 等需要管理员权限的系统目录。
  5. 从新解压的目录中,双击 sp.exe 启动软件。

如果重新下载解压后问题依旧,可能是杀毒软件误删了 DLL 文件。请暂时关闭杀毒软件,再重复上述步骤,并将软件目录添加到杀毒软件的白名单中。

请查看更多参考文档:

Post Your Reply