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

180.164* Posted at: 21 days ago 👁68

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:\shipingjianjigongju\_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:\shipingjianjigongju\_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.91
frozen:True
language:zh
root_dir:D:/shipingjianjigongju

1 Replies

您遇到的错误是由于软件在启动时尝试加载 Azure TTS 相关的动态链接库(DLL)失败。这通常发生在预打包的 Windows 版本中,当软件解压路径包含中文字符或特殊符号时,可能导致某些依赖文件加载异常。

请按以下步骤解决:

  1. 立即停止当前软件:关闭所有 pyVideoTrans 相关窗口。
  2. 移动软件到纯英文路径

    • 将整个 shipingjianjigongju 文件夹剪切到非系统盘的根目录下,例如 D:\videotrans
    • 关键:确保新路径不包含任何中文字符、空格或特殊符号
  3. 重新启动软件

    • 进入新的路径(如 D:\videotrans)。
    • 双击 sp.exe 启动程序。

如果移动后问题依旧,可能是软件包本身不完整。请从官方网站重新下载完整的预打包版本(而非升级补丁),并同样解压到纯英文路径下。

如果您的需求并非必须使用 Azure TTS,也可以在软件启动后,在“配音”设置中选择其他渠道,如 Edge-TTS 或 VITS-cnen,以避免加载有问题的模块。

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