#4462 pyimod03_ctypes.install.<locals>.PyInstallerImportError: Failed to load dynlib/dll 'F:\\BaiduNetdiskDownload\\_internal\

114.86* Posted at: 2 hours ago 👁6

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:\BaiduNetdiskDownload\_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:\BaiduNetdiskDownload\_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:/BaiduNetdiskDownload

1 Replies

该错误是 AzureTTS 所需的 Microsoft.CognitiveServices.Speech.core.dll 加载失败,通常由以下两种原因导致:

  1. 安装包不完整:用户可能只下载了升级补丁包并替换到旧目录,导致缺少必要文件。
  2. 系统缺少 VC++ 运行时:Windows 缺少 Visual C++ Redistributable,导致 DLL 依赖链中断。

请按顺序尝试以下解决方案:

  1. 重新下载完整版软件包
    访问 pyvideotrans.com/downpackage 下载完整软件包(非补丁包)。
    删除当前 F:\BaiduNetdiskDownload 中的旧文件,将完整包解压到纯英文路径(例如 D:\pyVideoTrans),路径中不要包含中文或空格
    然后重新启动 sp.exe
  2. 安装 VC++ 运行时
    如果确认使用的是完整包,仍出现该错误,请安装微软官方 VC++ 运行时:
    https://aka.ms/vs/17/release/vc_redist.x64.exe
    安装后重启电脑,再试。
  3. 验证文件完整性
    确保解压后的目录中存在 _internal\azure\cognitiveservices\speech\Microsoft.CognitiveServices.Speech.core.dll 文件(通常约 10 MB)。

完成以上步骤后,AzureTTS 渠道即可正常调用。

请查阅相关文档:

Post Your Reply