#2361 pyimod03_ctypes.install.<locals>.PyInstallerImportError: Failed to load dynlib/dll 'E:\\videotrans\\pyVideoTrans\\_inter

163.53* Posted at: 7 hours ago 👁8

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:\videotrans\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:\videotrans\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.91
frozen:True
language:zh
root_dir:E:/videotrans/pyVideoTrans

1 Replies

这个错误表明软件在尝试加载 Azure TTS 所需的动态链接库 (DLL) 文件时失败。该文件 Microsoft.CognitiveServices.Speech.core.dll 在打包时可能丢失或损坏。

核心解决方法:重新下载完整的软件包。

  1. 立即停止:关闭当前运行的 pyVideoTrans
  2. 完全删除:将当前出错的整个软件目录(E:/videotrans/pyVideoTrans彻底删除
  3. 重新下载:前往 pyVideoTrans 官网下载页面,下载 完整的预打包版本(不是升级补丁)。
  4. 正确解压:将下载的压缩包解压到一个全新的、路径简单且不含中文或特殊字符的目录,例如 D:\videotrans
  5. 重新启动:进入新解压的目录,双击 sp.exe 启动软件。

重要注意事项:

  • 切勿将软件解压到系统目录(如 Program Files)或路径包含空格的目录。
  • 确保下载的是完整包,文件大小通常在几百MB以上,而非仅几MB的升级补丁。
  • 如果问题依旧,请检查杀毒软件是否误删了该 DLL 文件,并将其添加到信任列表。

请查看更多参考文档:

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