ComfyUI Portable cannot find a dll that is clearly there
Custom Node Testing
- [x] I have tried disabling custom nodes and the issue persists (see how to disable custom nodes if you need help)
Your question
Logs
F:\Documents\ComfyUI>.\python_embeded\python.exe -s ComfyUI\main.py --windows-standalone-build
Traceback (most recent call last):
File "F:\Documents\ComfyUI\ComfyUI\main.py", line 147, in <module>
import comfy.utils
File "F:\Documents\ComfyUI\ComfyUI\comfy\utils.py", line 20, in <module>
import torch
File "F:\Documents\ComfyUI\python_embeded\Lib\site-packages\torch\__init__.py", line 278, in <module>
_load_dll_libraries()
File "F:\Documents\ComfyUI\python_embeded\Lib\site-packages\torch\__init__.py", line 274, in _load_dll_libraries
raise err
OSError: [WinError 126] The specified module could not be found. Error loading "F:\Documents\ComfyUI\python_embeded\Lib\site-packages\torch\lib\c10_hip.dll" or one of its dependencies.
F:\Documents\ComfyUI>pause
Press any key to continue . . .
Other
No response
Error loading [...] or one of its dependencies. It's not that file that it can't find but a dependency of that file. My guess the problem is a bad torch build. When I tried to build torch from source myself I had a similar problem. After several hours it finished compiling whitout errors but when I tried to run ComfyUI it couldn't find a dependency for one of the dlls. (exactly the same error as yours). That experience cured me to ever try compiling torch from source. So, about your problem, I would try another torch build/version.
Try installing the driver that's linked in the readme along with the latest vcredist.
I am also having the same problem.
Installing the driver linked in the readme gives me this.
This issue is being marked stale because it has not had any activity for 30 days. Reply below within 7 days if your issue still isn't solved, and it will be left open. Otherwise, the issue will be closed automatically.