#3125 pyimod03_ctypes.install.<locals>.PyInstallerImportError: Failed to load dynlib/dll 'C:\\System tool\\win-pyvideotrans-v3

2605:52c0* Posted at: 15 hours ago 👁8

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 'C:\System tool\win-pyvideotrans-v3.96\_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 'C:\System tool\win-pyvideotrans-v3.96\_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:C:/System tool/win-pyvideotrans-v3.96

1 Replies

这是由于系统缺少必要的 VC++ 运行库或软件文件不完整,导致 AzureTTS 所需的 Microsoft.CognitiveServices.Speech.core.dll 动态链接库无法加载。

解决方案:

  1. 安装 VC++ 运行库:这是最可能的原因。请下载并安装微软最新的 VC++ 可再发行组件包。

  2. 检查软件完整性:如果安装了 VC++ 运行库后问题依旧,说明你下载的软件包可能不完整。

    • 如果你下载的是“补丁包”,请重新下载完整版.7z 压缩包。
    • 将完整版解压到一个全新的、路径中不含中文和空格的目录(例如 D:\pyVideoTrans),然后运行新的 sp.exe

重要提示: 请确保软件解压路径不包含中文和空格。你的当前路径 C:\System tool\win-pyvideotrans-v3.96 包含空格,这可能导致其他潜在问题。建议按照最佳实践,将软件解压到类似 D:\pyVideoTrans 的目录。

请查阅相关文档:

Post Your Reply