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

2a00:1d34* Posted at: 7 days ago 👁45

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:\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 'D:\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.26200-SP0
version:v3.92
frozen:True
language:en
root_dir:D:/win-pyvideotrans-v3.92

1 Replies

This error occurs because the pre-packaged Windows version of pyVideoTrans is missing a critical DLL file required for the Azure TTS module.

The error indicates that the file Microsoft.CognitiveServices.Speech.core.dll cannot be found in the _internal\azure\cognitiveservices\speech\ directory. This is likely due to an incomplete download or extraction of the software package.

Solution Steps:

  1. Re-download the Full Package: Go to the official download page and download the complete version (not the patch/update) of the software. The file name should be something like win-pyvideotrans-v3.95.7z (or the latest version).
  2. Extract to a New Location: Extract the new .7z file to a completely new directory on a non-system drive (e.g., D:\pyVideoTrans_new). Ensure the path contains no Chinese characters, spaces, or special symbols.
  3. Run from New Location: Launch the software by double-clicking sp.exe from the new directory. Do not copy files from the old broken installation.

Important Notes:

  • Do not run the software directly from inside the compressed archive.
  • Do not extract it to system-protected directories like C:\Program Files.
  • The version in your log (v3.92) is outdated. It is recommended to use the latest version (e.g., v3.95) which includes fixes for known issues.

Please refer to the relevant documentation:

Post Your Reply