#2615 pyimod03_ctypes.install.<locals>.PyInstallerImportError: Failed to load dynlib/dll 'C:\\win-pyvideotrans-v3.91_20251220_

122.10* Posted at: 1 month ago 👁95

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 'C:\win-pyvideotrans-v3.91_20251220_225815\_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 'C:\win-pyvideotrans-v3.91_20251220_225815\_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.26200-SP0
version:v3.91
frozen:True
language:zh
root_dir:C:/win-pyvideotrans-v3.91_20251220_225815

1 Replies

此错误是由于 Azure TTS 所需的动态链接库文件缺失导致的。这通常发生在预打包版软件中,因为打包过程可能遗漏了某些依赖文件。

核心解决方法:重新下载并使用最新版本的预打包版。

请按以下步骤操作:

  1. 完全关闭当前的 pyVideoTrans 软件。
  2. 访问官方网站下载页面:https://pyvideotrans.com/downpackage
  3. 下载 最新版本 的 Windows 预打包版(通常文件名类似 win-pyvideotrans-vX.XX_YYYYMMDD_HHMMSS.7z)。
  4. 将下载的压缩包解压到一个全新的、路径简单的英文目录中(例如 D:\videotrans_new)。切勿解压到旧版本目录或系统目录。
  5. 运行新目录中的 sp.exe 启动软件。

重要提示:

  • 请确保解压路径不包含中文、空格或特殊符号。
  • 如果问题依旧,请检查您的杀毒软件是否误删了软件文件,尝试暂时关闭杀毒软件或将软件目录添加到信任区。

如果重新下载后问题仍然存在,请提供新版本启动时产生的日志文件(位于软件目录下的 logs 文件夹内)。

Post Your Reply