-
Notifications
You must be signed in to change notification settings - Fork 835
Description
env setup
python: 3.11.0
environment: venv
torch version: 2.9.0+cpu
wheel source: https://download.pytorch.org/whl/cpu (torch==2.9.0+cpu)
OS: Windows 11
VC++ Redistributable version: https://aka.ms/vs/17/release/vc_redist.x64.exe
traceback
Traceback (most recent call last): File "C:\Users\david\AppData\Local\Programs\Python\Python311\Lib\runpy.py", line 198, in _run_module_as_main return _run_code(code, main_globals, None, File "C:\Users\david\AppData\Local\Programs\Python\Python311\Lib\runpy.py", line 88, in _run_code exec(code, run_globals) File "c:\Users\david\.vscode\extensions\ms-python.debugpy-2025.14.1-win32-x64\bundled\libs\debugpy\launcher/../..\debugpy\__main__.py", line 71, in <module> cli.main() File "c:\Users\david\.vscode\extensions\ms-python.debugpy-2025.14.1-win32-x64\bundled\libs\debugpy\launcher/../..\debugpy\..\debugpy\server\cli.py", line 508, in main run() File "c:\Users\david\.vscode\extensions\ms-python.debugpy-2025.14.1-win32-x64\bundled\libs\debugpy\launcher/../..\debugpy\..\debugpy\server\cli.py", line 358, in run_file runpy.run_path(target, run_name="__main__") File "c:\Users\david\.vscode\extensions\ms-python.debugpy-2025.14.1-win32-x64\bundled\libs\debugpy\_vendored\pydevd\_pydevd_bundle\pydevd_runpy.py", line 310, in run_path return _run_module_code(code, init_globals, run_name, pkg_name=pkg_name, script_name=fname) File "c:\Users\david\.vscode\extensions\ms-python.debugpy-2025.14.1-win32-x64\bundled\libs\debugpy\_vendored\pydevd\_pydevd_bundle\pydevd_runpy.py", line 127, in _run_module_code _run_code(code, mod_globals, init_globals, mod_name, mod_spec, pkg_name, script_name) File "c:\Users\david\.vscode\extensions\ms-python.debugpy-2025.14.1-win32-x64\bundled\libs\debugpy\_vendored\pydevd\_pydevd_bundle\pydevd_runpy.py", line 118, in _run_code exec(code, run_globals) File "C:\trading\trader-timesfm\timesfm\main.py", line 1, in <module> import torch File "c:\trading\trader-timesfm\timesfm\.venv\Lib\site-packages\torch\__init__.py", line 281, in <module> _load_dll_libraries() File "c:\trading\trader-timesfm\timesfm\.venv\Lib\site-packages\torch\__init__.py", line 264, in _load_dll_libraries raise err OSError: [WinError 127] Impossibile trovare la procedura specificata. Error loading "c:\trading\trader-timesfm\timesfm\.venv\Lib\site-packages\torch\lib\torch_python.dll" or one of its dependencies.
the .dll is there but cannot be loaded (or its dependencies):
