#3443 pyimod03_ctypes.install.<locals>.PyInstallerImportError: Failed to load dynlib/dll 'D:\\BaiduNetdiskDownload\\win-pyvide

171.222* Posted at: 4 hours ago 👁7

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 'D:\BaiduNetdiskDownload\win-pyvideotrans-v3.97-226\_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 337, 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 7, 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 'D:\BaiduNetdiskDownload\win-pyvideotrans-v3.97-226\_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:D:/BaiduNetdiskDownload/win-pyvideotrans-v3.97-226

1 Replies

这是由于操作系统缺少必要的 VC++ 运行库,导致 Azure TTS 所需的动态链接库(DLL)无法加载。

解决方案:

  1. 请下载并安装微软的 Visual C++ 可再发行组件包。这是解决此问题的直接方法。
  2. 下载地址:https://aka.ms/vs/17/release/vc_redist.x64.exe
  3. 安装完成后,请重启你的电脑
  4. 重启后,再次启动 pyVideoTrans 软件。

如果问题仍然存在,请确认你下载的是软件的完整包(而非补丁包)。根据你的路径 D:\BaiduNetdiskDownload\win-pyvideotrans-v3.97-226,看起来是完整包。如果确认是完整包且已安装VC++组件,请提供 logs 文件夹中最新日志文件的底部约30行内容以便进一步分析。

请查阅相关文档:

Post Your Reply