#2515 pyimod03_ctypes.install.<locals>.PyInstallerImportError: Failed to load dynlib/dll 'E:\\fanyi01\\FY\\_internal\\azure\\c

171.107* Posted at: 1 day ago 👁16

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 'E:\fanyi01\FY\_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 'E:\fanyi01\FY\_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:E:/fanyi01/FY

1 Replies

这个错误表明 pyVideoTrans 在尝试加载 Azure TTS 所需的动态链接库(DLL)文件时失败。该文件 Microsoft.CognitiveServices.Speech.core.dll 缺失或无法访问。

核心原因:
您使用的可能是预打包的绿色版软件,而打包过程中可能未包含完整的 Azure SDK 依赖文件,或者文件在解压/运行时被损坏或拦截。

解决方案:

  1. 重新下载完整包(首选)

    • 前往 官网下载页面 重新下载 完整版 软件包(不是升级补丁)。
    • 将新下载的压缩包解压到一个全新的、路径简单、无中文和特殊字符的目录(例如 D:\videotrans)。切勿解压到旧目录覆盖。
    • 从新目录启动 sp.exe
  2. 临时禁用 Azure TTS 模块(如果不需要)

    • 如果您当前并不需要使用 Azure TTS 进行配音,可以暂时通过修改配置文件来跳过加载它,避免启动报错。
    • 进入软件目录,找到并打开 config.json 文件(可用记事本编辑)。
    • 查找 "tts_type_list" 配置项,将其值中与 azure 相关的部分移除或注释掉。但此操作较复杂,且可能影响其他功能,首选方案1
  3. 检查杀毒软件

    • 暂时禁用 Windows Defender 或其他第三方杀毒软件,然后重新解压和运行软件,看是否被误删或拦截了 DLL 文件。

如果重新下载完整包并更换目录后问题依旧,请提供 E:\fanyi01\FY\logs\ 目录下的最新日志文件以便进一步分析。

请查看更多参考文档:

Post Your Reply
Open source and free maintenance is not easy. If this project is helpful to you, please consider making a small donation to help the project continue to maintain and update.

Donate: https://ko-fi.com/jianchang512

Similar issues already exist

Trending Questions