Comfy-Org / Comfy-Org/ComfyUI

Error loading caffe2_nvrtc.dll or one of its dependencies.

Open
#989 1 comment 1 reaction 0 assignees View on GitHub
User Support
Dominant language
Python
Stars
133k
Forks
15.7k
Avg merge
1d 10h
Merged PRs (30d)
153

Description

I've just installed, and this is what I get every time I try to run ComfyUI on Windows:

$ python main.py
Traceback (most recent call last):
File "X:\SD\ComfyUI\main.py", line 66, in
import comfy.utils
File "X:\SD\ComfyUI\comfy\utils.py", line 1, in
import torch
File "C:\Users\tenra\AppData\Roaming\Python\Python310\site-packages\torch\__init__.py", line 133, in
raise err
OSError: [WinError 126] The specified module could not be found. Error loading "C:\Users\tenra\AppData\Roaming\Python\Python310\site-packages\torch\lib\caffe2_nvrtc.dll" or one of its dependencies.

caffe2_nvrtc.dll does in fact exist in that directory!

I've tried to reinstall torch with pip and pip3.
I've tried to add this directory to my PATH.
Also tried the standalone package.

My Automatic1111 installation works fine, and the ComfyUI extension within it works fine too.

Any help would be much appreciated

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.