#2514 pyimod03_ctypes.install.<locals>.PyInstallerImportError: Failed to load dynlib/dll 'E:\\win-pyvideotrans-v3.92\\_interna

46.3* Posted at: 1 day ago 👁18

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

1 Replies

该错误是由于软件包中缺少 Azure TTS 所需的 Microsoft.CognitiveServices.Speech.core.dll 动态链接库文件导致的。这是一个已知的打包问题。

解决方法如下:

  1. 临时解决方案(推荐): 在软件主界面,将配音渠道从 Azure TTS 切换到其他渠道,例如 Edge-TTSVITS-cnenpiper-tts。这些是免费且功能完善的替代方案。
  2. 根本解决方法(需要手动下载文件):

    • 从微软官方下载 Azure Speech SDK 的 .whl 文件。例如,对于 Python 3.10 的 64 位 Windows 系统,可以搜索下载 azure_cognitiveservices_speech-1.36.0-cp310-cp310-win_amd64.whl
    • 使用解压软件(如 7-Zip)打开这个 .whl 文件。
    • 导航到 azure_cognitiveservices_speech.libs 目录,找到 Microsoft.CognitiveServices.Speech.core.dll 文件。
    • 将这个 DLL 文件复制到你的软件目录下:E:\win-pyvideotrans-v3.92\_internal\azure\cognitiveservices\speech\
    • 重启软件即可。

建议: 除非你已购买 Azure TTS 服务并必须使用,否则直接使用方案一(切换配音渠道)是最简单快捷的解决方式。

请查看更多参考文档:

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