#2812 pyimod03_ctypes.install.<locals>.PyInstallerImportError: Failed to load dynlib/dll 'D:\\字幕1\\_internal\\azure\\cognitive

27.189* Posted at: 4 days ago 👁48

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:\字幕1\_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:\字幕1\_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:/字幕1

1 Replies

这个错误表明 pyVideoTrans 的预打包版本在尝试加载 Azure TTS 所需的动态链接库(DLL)文件时失败。该文件 Microsoft.CognitiveServices.Speech.core.dll 在您的软件目录中缺失或损坏。

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

请按以下步骤操作:

  1. 完全卸载/删除当前版本

    • 关闭所有 pyVideoTrans 相关进程。
    • 将您当前的软件目录(D:\字幕1整个删除
  2. 重新下载完整软件包

    • 前往官方网站下载最新版本的 完整预打包版(通常是 .zip.7z 格式的压缩包),而不是升级补丁。
    • 下载链接https://pyvideotrans.com/downpackage
  3. 正确解压到新位置

    • 在非系统盘(如 D:\E:\)的根目录下,创建一个纯英文、无空格、无特殊符号的新文件夹,例如 D:\videotrans
    • 将下载的完整压缩包解压到这个新文件夹中。
    • 重要:确保解压后的文件结构完整,_internal 文件夹及其所有子文件都应存在。
  4. 重新启动软件

    • 进入新解压的目录(如 D:\videotrans),双击 sp.exe 启动软件。

如果问题依旧

  • 请检查您的杀毒软件(如 Windows Defender、360、火绒等)是否在下载或解压过程中误删了 Microsoft.CognitiveServices.Speech.core.dll 文件。如果是,请将软件目录添加到杀毒软件的信任/白名单中,然后重新解压。
  • 如果重新下载并正确解压后仍然报错,请提供 D:\videotrans\logs 目录下的最新日志文件以便进一步分析。

请查看更多参考文档:

Post Your Reply