#2500 pyimod03_ctypes.install.<locals>.PyInstallerImportError: Failed to load dynlib/dll 'F:\\pyvdtrans\\_internal\\azure\\cog

116.246* Posted at: 1 day 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 'F:\pyvdtrans\_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 'F:\pyvdtrans\_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:F:/pyvdtrans

1 Replies

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

核心解决方法:重新下载并正确部署完整软件包。

请按以下步骤操作:

  1. 完全卸载/删除当前版本:关闭软件,将整个 F:/pyvdtrans 文件夹彻底删除。
  2. 重新下载完整包

  3. 正确解压

    • 在非系统盘(如 D: 盘)的根目录或一个纯英文路径下(例如 D:\videotrans)新建一个文件夹。
    • 将下载的完整压缩包解压到这个新文件夹中。绝对不要解压到包含中文、空格或特殊字符的路径,也不要解压到 C:\Program Files 等系统受保护目录。
  4. 启动软件:进入解压后的文件夹,双击 sp.exe 启动。首次启动加载模块可能需要一些时间,请耐心等待。

如果重新下载完整包后问题依旧,可能是杀毒软件误删了关键文件。请暂时禁用杀毒软件,或将其解压目录添加到杀毒软件的信任/排除列表中,然后再次尝试。

请查看更多参考文档:

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