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

191.96* Posted at: 3 days ago 👁31

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:\pyvideotrans\win-pyvideotrans-v3.92\_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:\pyvideotrans\win-pyvideotrans-v3.92\_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.92
frozen:True
language:zh
root_dir:D:/pyvideotrans/win-pyvideotrans-v3.92

1 Replies

此错误表明软件在尝试加载 Azure TTS 所需的动态链接库 Microsoft.CognitiveServices.Speech.core.dll 时失败。这通常是由于软件包不完整或文件损坏导致的。

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

  1. 停止当前软件:完全关闭 pyVideoTrans。
  2. 清理旧文件:删除当前出错的整个软件目录 D:\pyvideotrans\win-pyvideotrans-v3.92
  3. 重新下载:前往 pyVideoTrans 官网下载页面,下载适用于 Windows 的 完整预打包版(通常名为类似 win-pyvideotrans-v3.92.zip 的文件)。切勿只下载升级补丁
  4. 正确解压

    • 在非系统盘(如 D 盘)的根目录或新建一个纯英文路径的文件夹(例如 D:\videotrans)。
    • 将下载的 ZIP 文件解压到此新文件夹中
    • 关键禁忌:解压路径严禁包含中文、空格或特殊符号,也严禁解压到 C:\Program Files 等系统受保护目录。
  5. 重新启动:进入解压后的文件夹,双击 sp.exe 启动软件。

如果重新下载解压后问题依旧,可能是杀毒软件误删了 DLL 文件。请暂时关闭杀毒软件或将其添加至信任列表,然后重复上述步骤。

请查看更多参考文档:

Post Your Reply