#2865 pyimod03_ctypes.install.<locals>.PyInstallerImportError: Failed to load dynlib/dll 'C:\\Users\\ykl23\\AppData\\Local\\Te

125.59* Posted at: 2 days ago 👁22

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\ykl23\AppData\Local\Temp\Rar$EXa6976.15610.rartemp\_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 'C:\Users\ykl23\AppData\Local\Temp\Rar$EXa6976.15610.rartemp\_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:C:/Users/ykl23/AppData/Local/Temp/Rar$EXa6976.15610.rartemp

1 Replies

这个错误是由于软件在解压或运行时,Azure TTS 的核心动态链接库文件 Microsoft.CognitiveServices.Speech.core.dll 丢失或损坏导致的。这通常发生在使用预打包版时,文件解压不完整或被杀毒软件误删。

请按以下步骤解决:

  1. 关闭杀毒软件:暂时关闭 Windows Defender 或其他第三方杀毒软件,防止其拦截或删除软件文件。
  2. 重新下载并解压

    • 从官网 (https://pyvideotrans.com/downpackage) 重新下载完整的预打包版(非升级补丁)。
    • 将压缩包解压到一个全新的、路径简单、纯英文的目录,例如 D:\videotrans绝对不要解压到桌面、文档或任何包含中文、空格或特殊符号的路径,也不要解压到 C:\Program Files 等系统受保护目录。
  3. 以管理员身份运行:解压后,右键点击 sp.exe,选择“以管理员身份运行”。
  4. 如果问题依旧:如果重新解压后启动仍然报错,可能是系统缺少必要的运行库。请尝试安装 Visual C++ Redistributable

完成以上步骤后,再次启动软件。如果错误仍然出现,请提供 videotrans/logs/ 目录下的最新日志文件。

请查看更多参考文档:

Post Your Reply