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

2408:844f* Posted at: 2 days ago 👁17

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.92\_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 'D:\BaiduNetdiskDownload\win-pyvideotrans-v3.92\_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.26100-SP0
version:v3.92
frozen:True
language:zh
root_dir:D:/BaiduNetdiskDownload/win-pyvideotrans-v3.92

1 Replies

这个错误是由于 Azure TTS 所需的动态链接库文件缺失导致的。请按以下步骤解决:

  1. 重新下载完整软件包:你当前使用的 win-pyvideotrans-v3.92 压缩包可能不完整。请前往官网重新下载完整的最新版本。
  2. 检查解压路径:确保解压路径不包含中文、空格或特殊符号。建议在 D 盘根目录创建纯英文文件夹(如 D:\videotrans)进行解压。
  3. 临时解决方案:如果急需使用,请暂时不要选择 Azure TTS 作为配音渠道。可以改用其他免费渠道,如 Edge-TTSVITS-cnen

如果重新下载并正确解压后问题依旧,请提供 D:\BaiduNetdiskDownload\win-pyvideotrans-v3.92\_internal\azure\cognitiveservices\speech\ 目录下的文件列表截图。

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