#3507 pyimod03_ctypes.install.<locals>.PyInstallerImportError: Failed to load dynlib/dll 'C:\\Users\\admin\\Desktop\\transtur\

2409:8a28* Posted at: 2 hours ago 👁6

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:\Users\admin\Desktop\transtur\_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 332, 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:\Users\admin\Desktop\transtur\_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.26200-SP0
version:v3.97
frozen:True
language:zh
root_dir:C:/Users/admin/Desktop/transtur

1 Replies

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

解决方案:

  1. 安装微软VC++运行库:下载并安装微软Visual C++ Redistributable for Visual Studio 2015-2022。这是最可能的原因。

    • 下载地址
    • 安装完成后,重启计算机,然后再次尝试运行pyVideoTrans。
  2. 重新下载完整软件包:如果上述步骤无效,且你使用的是“补丁包”而非“完整包”,请从官网重新下载完整版.7z压缩包。

    • 将完整包解压到一个新的、不包含中文或特殊字符的路径(例如 D:\pyVideoTrans),然后运行其中的 sp.exe

请查阅相关文档:

Post Your Reply