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

240e:30c* Posted at: 4 days ago 👁35

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\_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 333, 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 'D:\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.96
frozen:True
language:zh
root_dir:D:/BaiduNetdiskDownload

2 Replies

这是由于软件依赖的 Azure TTS 动态链接库文件缺失或损坏导致的。

  1. 请检查软件安装目录 D:\BaiduNetdiskDownload\_internal\azure\cognitiveservices\speech\ 下是否存在 Microsoft.CognitiveServices.Speech.core.dll 文件。
  2. 如果文件不存在,说明软件包不完整。请从官方渠道重新下载完整的 .7z 压缩包(而非补丁包),并确保解压到非系统盘路径不含中文或空格(例如 D:\pyVideoTrans)。
  3. 如果文件存在但仍报错,可能是文件损坏。同样建议重新下载完整软件包并覆盖安装。
  4. 作为临时解决方案,你可以在软件设置中暂时不使用 Azure TTS 配音渠道,改用其他渠道(如 Edge-TTS)。

请查阅相关文档:

一个可能的原因是,系统缺少vc++组件,尝试点击安装微软的这个vc++组件后,重启软件试试

https://aka.ms/vs/17/release/vc_redist.x64.exe

Post Your Reply