Starting ComfyUI results in an OSError while loading "caffe2_nvrtc.dll"
- Dominant language
- Python
- Stars
- 133k
- Forks
- 15.7k
- Avg merge
- 1d 6h
- Merged PRs (30d)
- 155
Description
I recently installed ComfyUI on my Windows machine and received the following error when trying to run the CPU or GPU bat file:
```
D:\ComfyUI_windows_portable>.\python_embeded\python.exe -s ComfyUI\main.py --windows-standalone-build
Traceback (most recent call last):
File "D:\ComfyUI_windows_portable\ComfyUI\main.py", line 66, in
import comfy.utils
File "D:\ComfyUI_windows_portable\ComfyUI\comfy\utils.py", line 1, in
import torch
File "D:\ComfyUI_windows_portable\python_embeded\lib\site-packages\torch\__init__.py", line 133, in
raise err
OSError: [WinError 126] The specified module could not be found. Error loading "D:\ComfyUI_windows_portable\python_embeded\lib\site-packages\torch\lib\caffe2_nvrtc.dll" or one of its dependencies.
```
After not seeing any helpful advice on the internet, I decided to update ComfyUI by running `update\update_comfyui_and_python_dependencies.bat`. That didn´t help either.
I also tried searching the error partially by only entering the phrase: _"OSError: [WinError 126] The specified module could not be found"_ By doing this, I found a StackOverflow answer that might be relevant to my issue: https://stackoverflow.com/a/61877084
There are a few other answers related to PyTorch, but they didn´t seem relevant: https://stackoverflow.com/a/63368862 https://stackoverflow.com/a/62674859
Contributor guide
Assessment
This issue has not been assessed yet.