ComfyUI icon indicating copy to clipboard operation
ComfyUI copied to clipboard

ComfyUI Portable cannot find a dll that is clearly there

Open MilesFarber opened this issue 2 months ago • 5 comments

Custom Node Testing

Your question

Image

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

MilesFarber avatar Oct 29 '25 21:10 MilesFarber

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.

jovan2009 avatar Oct 29 '25 23:10 jovan2009

Try installing the driver that's linked in the readme along with the latest vcredist.

comfyanonymous avatar Oct 30 '25 01:10 comfyanonymous

I am also having the same problem.

AderitoSilva avatar Oct 30 '25 07:10 AderitoSilva

Installing the driver linked in the readme gives me this.

Image Image

MilesFarber avatar Nov 05 '25 11:11 MilesFarber

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.

github-actions[bot] avatar Dec 05 '25 11:12 github-actions[bot]