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

116.246* Posted at: 2 days ago 👁11

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:\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 'C:\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.19045-SP0
version:v3.92
frozen:True
language:zh
root_dir:C:/pyvideotrans

1 Replies

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

核心解决方法:重新下载并替换缺失的 DLL 文件。

请按以下步骤操作:

  1. 下载修复包

    • 前往软件官网的下载页面:https://pyvideotrans.com/downpackage
    • 找到并下载名为 azuretts_dll_fix.zip 或类似名称的修复补丁包。如果找不到,请尝试下载完整的 “预打包版” 软件。
  2. 替换文件

    • 关闭正在运行的 pyVideoTrans 软件。
    • 将下载的修复包解压,找到其中的 Microsoft.CognitiveServices.Speech.core.dll 文件。
    • 将该文件复制到您软件安装目录下的 _internal\azure\cognitiveservices\speech\ 文件夹中(即错误提示的路径 C:\pyvideotrans\_internal\azure\cognitiveservices\speech\)。
    • 如果提示文件已存在,请选择覆盖。
  3. 重启软件

    • 完成替换后,重新启动 sp.exe

如果以上步骤无法解决问题,或者您找不到修复包,建议您:

  • 从官网重新下载完整的预打包版软件,并解压到一个全新的、路径简单的英文目录(例如 D:\videotrans_new)中运行,以避免旧文件残留或路径问题。

请查看更多参考文档:

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