#4427 pyimod03_ctypes.install.<locals>.PyInstallerImportError: Failed to load dynlib/dll 'F:\\BaiduNetdiskDownload\\yy\\_inter

120.244* Posted at: 1 hour 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 'F:\BaiduNetdiskDownload\yy\_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 332, in _set_default
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
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
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
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\yy\_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.97
frozen:True
language:zh
root_dir:F:/BaiduNetdiskDownload/yy

1 Replies

无法加载 Azure TTS 所需的 Microsoft.CognitiveServices.Speech.core.dll,常见原因是使用了不完整的补丁包或系统缺少 VC++ 运行时组件。

操作步骤:

  1. 确认是否下载了完整软件包:若只下载了更新补丁包并覆盖,必须重新下载 完整版 解压,再覆盖最新补丁。完整版下载地址:https://pyvideotrans.com/downpackage
  2. 安装微软 VC++ 运行库:下载并安装 Visual C++ Redistributable,完成后重启软件。
  3. 检查存放路径:当前路径 F:\BaiduNetdiskDownload\yy 包含中文,建议将软件移动至纯英文、无空格的目录(如 D:\pyVideoTrans),避免潜在的编码问题。

若仍报错,请提供 logs/ 下最新日志的底部 30 行。

请查阅相关文档:

Post Your Reply