#2836 pyimod03_ctypes.install.<locals>.PyInstallerImportError: Failed to load dynlib/dll 'E:\\videotrans-new\\_internal\\azure

191.96* Posted at: 3 days ago 👁31

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

1 Replies

这个错误是由于软件在启动时尝试加载 Azure TTS 的依赖库 Microsoft.CognitiveServices.Speech.core.dll 失败导致的。这通常发生在预打包版软件的解压路径包含特殊字符或软件文件不完整时。

请按以下步骤解决:

  1. 检查并修正软件路径

    • 从错误信息 E:\\videotrans-new\\_internal\\... 看,您的软件解压在 E:\videotrans-new
    • 确保整个路径不包含任何中文字符、空格或特殊符号(如 ()[]& 等)。videotrans-new 这个名称是允许的。
    • 绝对不要将软件解压到 C:\Program FilesC:\Windows 等需要管理员权限的系统目录。
  2. 重新下载并解压

    • 如果路径没问题,可能是软件包在下载或解压过程中文件损坏。
    • 请从官方网站重新下载完整的预打包版(不是升级补丁)。
    • 在一个全新的、纯英文的目录(例如 D:\videotrans)下解压。
  3. 临时解决方案(如果急需使用)

    • 如果重新下载后问题依旧,可以尝试在软件启动后,不要选择或使用 Azure TTS 配音渠道。选择其他配音渠道,如 Edge-TTS、VITS-cnen 或 piper-tts,可以避免触发此错误。

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

请查看更多参考文档:

Post Your Reply