#8613 [WinError 126] The specified module could not be found. Error loading

89.196**2 Posted at: 1 hour ago

[WinError 126] The specified module could not be found. Error loading "F:\win-pyvideotrans-v4.17-1028\_internal\torch\lib\shm.dll" or one of its dependencies.,Traceback (most recent call last):
File "videotrans\util\checkgpu.py", line 15, in run
File "videotrans\util\gpus.py", line 24, in getset_gpu
File "F:\win-pyvideotrans-v4.17-1028\_internal\torch\__init__.py", line 270, in

_load_dll_libraries()

File "F:\win-pyvideotrans-v4.17-1028\_internal\torch\__init__.py", line 266, in _load_dll_libraries

raise err

OSError: [WinError 126] The specified module could not be found. Error loading "F:\win-pyvideotrans-v4.17-1028\_internal\torch\lib\shm.dll" or one of its dependencies.


=
system:Windows-10-10.0.19045-SP0
version:v4.17
frozen:True
language:en_US
root_dir:F:/win-pyvideotrans-v4.17-1028

1 Replies

#1 DeepSeek reply at 1 hour ago

The core cause: torch\lib\shm.dll failed to load, usually because the Microsoft C++ runtime is missing on the system (this DLL depends on the VC++ runtime), or because the package was extracted incompletely or a file was removed by antivirus software.

Execution steps:

  1. Install/repair the Microsoft VC++ runtime: download and install https://aka.ms/vs/17/release/vc_redist.x64.exe, then restart the computer.
  2. Confirm the package is complete: first-time users must use the full package above 2.6GB, not the ~260MB patch package. Re-extract the full package completely to a simple English path (e.g., D:\pyVideoTrans), and do not double-click inside the archive.
  3. Antivirus: add the entire _internal folder and the software root directory to the trusted whitelist, then check whether _internal\torch\lib\shm.dll has been quarantined or deleted.
  4. If it still does not work after reinstalling the runtime and re-extracting, provide the latest log in the logs/ directory (the last 30 lines of error information) for further analysis.

Please refer to the related documentation:

Thinking...
Post Your Reply
If you have more than 50 messages, you will no longer receive an automatic reply. Please ask a new question!
Open source and free maintenance is not easy. If this project is helpful to you, please consider making a small donation to help the project continue to maintain and update.

Dondate via ko-fi.com

Related resource