#2198 pyimod03_ctypes.install.<locals>.PyInstallerImportError: Failed to load dynlib/dll 'E:\\pyvideotrans\\_internal\\azure\\

2408:8214* Posted at: 6 hours ago 👁19

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:\pyvideotrans\_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:\pyvideotrans\_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.26100-SP0
version:v3.92
frozen:True
language:zh
root_dir:E:/pyvideotrans

3 Replies

这个错误表明软件在尝试加载 Azure TTS 的依赖库 Microsoft.CognitiveServices.Speech.core.dll 时失败了。这通常是由于软件包不完整或文件损坏导致的。

请按以下步骤解决:

  1. 重新下载完整软件包:确保你从官方网站 https://pyvideotrans.com/downpackage 下载的是完整的“预打包版”,而不是升级补丁。补丁包不包含所有依赖文件。
  2. 检查解压路径:将下载的完整压缩包解压到一个纯英文路径的文件夹中,例如 D:\videotrans绝对不要解压到包含中文、空格或特殊字符的路径,也不要解压到 C:\Program Files 等系统受保护目录。
  3. 以管理员身份运行:右键点击解压后的 sp.exe,选择“以管理员身份运行”,尝试启动。
  4. 如果问题依旧:请暂时避免使用 Azure TTS 功能。你可以选择其他配音渠道,例如免费的 Edge-TTS 或内置的 VITS-cnen

如果以上步骤无法解决,请提供 E:\pyvideotrans\logs\ 目录下的最新日志文件,以便进一步分析。


Application started at 2025-12-22 16:23:26

load subtitles area...
Set ui text...
!!! UNHANDLED EXCEPTION !!!
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:\pyvideotrans\_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:\pyvideotrans\_internal\azure\cognitiveservices\speech\Microsoft.CognitiveServices.Speech.core.dll'. Most likely this dynlib/dll was not found when the application was frozen.

错误明确指向 Azure TTS 的核心依赖库 Microsoft.CognitiveServices.Speech.core.dll 缺失。这通常是由于软件包不完整或文件损坏。请按以下步骤彻底解决:

  1. 删除旧版本:完全删除 E:\pyvideotrans 整个文件夹。
  2. 重新下载完整包:访问 https://pyvideotrans.com/downpackage ,确保下载的是完整的“预打包版”(通常文件名类似 pyVideoTrans_v3.92_win.zip),不要下载“升级补丁”。
  3. 正确解压:将下载的完整压缩包解压到一个全新的、纯英文路径的文件夹中,例如 D:\pyvideotrans绝对不要解压到包含中文、空格或特殊字符的路径,也不要解压到 C:\Program Files 等系统受保护目录。
  4. 首次启动:双击新解压目录下的 sp.exe 启动软件。首次启动加载模块可能需要1-2分钟,请耐心等待。

重要提示:在完成上述步骤并成功启动软件前,请不要在软件设置中配置或选择 Azure TTS 功能。启动后,你可以先使用其他配音渠道(如 Edge-TTS 或 VITS-cnen)。

如果严格按照以上步骤操作后问题依旧,请提供 D:\pyvideotrans\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