#3277 pyimod03_ctypes.install.<locals>.PyInstallerImportError: Failed to load dynlib/dll 'C:\\Users\\duykq\\Downloads\\_intern

14.191* Posted at: 11 hours ago 👁13

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\duykq\Downloads\_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\duykq\Downloads\_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.97
frozen:True
language:en
root_dir:C:/Users/duykq/Downloads

1 Replies

This error is caused by missing the Microsoft.CognitiveServices.Speech.core.dll file required for the AzureTTS module, likely due to using a patch update package instead of the full software package, or a missing VC++ runtime component on your Windows system.

Solution Steps:

  1. Download the full package: If you downloaded a "patch" update (a small .7z file), you must download the complete version of pyVideoTrans v3.97 from the official download page. The full package contains all necessary DLL files, including the one for AzureTTS.
  2. Extract to a clean location: Extract the full package to a new directory on a non-system drive (e.g., D:\pyVideoTrans). Ensure the path contains no Chinese characters, spaces, or special symbols.
  3. Install VC++ Redistributable: If you are already using the full package and still encounter this error, your operating system is likely missing the required Microsoft Visual C++ runtime. Download and install the latest VC++ Redistributable from Microsoft, then restart your computer and the software.

  4. Avoid the problematic path: Do not run the software from paths like C:\Users\...\Downloads\_internal. Always use a simple, clean directory as recommended in step 2.

Please refer to the relevant documentation:

Post Your Reply