patientx / ComfyUI-Zluda

The most powerful and modular stable diffusion GUI, api and backend with a graph/nodes interface. Now ZLUDA enhanced for better AMD GPU performance.
GNU General Public License v3.0
153 stars 10 forks source link

Caffe2_nvrtc.dll error on install #35

Closed rickguedes closed 1 week ago

rickguedes commented 2 weeks ago

Expected Behavior

WebUI should run

Actual Behavior

Returning the caffe2_nvrtc.dll error.

Steps to Reproduce

Starting install.bat or comfyui.bat

Debug Logs

*** Starting the Comfyui-ZLUDA for the first time, please be patient...

[START] Security scan
[DONE] Security scan
## ComfyUI-Manager: installing dependencies. (GitPython)
## ComfyUI-Manager: installing dependencies done.
** ComfyUI startup time: 2024-10-30 18:54:15.889996
** Platform: Windows
** Python version: 3.11.9 (tags/v3.11.9:de54cf5, Apr  2 2024, 10:12:12) [MSC v.1938 64 bit (AMD64)]
** Python executable: C:\Users\dudur\Desktop\ComfyUI-Zluda\venv\Scripts\python.exe
** ComfyUI Path: C:\Users\dudur\Desktop\ComfyUI-Zluda
** Log path: C:\Users\dudur\Desktop\ComfyUI-Zluda\comfyui.log

Prestartup times for custom nodes:
  15.9 seconds: C:\Users\dudur\Desktop\ComfyUI-Zluda\custom_nodes\ComfyUI-Manager

Traceback (most recent call last):
  File "C:\Users\dudur\Desktop\ComfyUI-Zluda\main.py", line 88, in <module>
    import comfy.utils
  File "C:\Users\dudur\Desktop\ComfyUI-Zluda\comfy\utils.py", line 20, in <module>
    import torch
  File "C:\Users\dudur\Desktop\ComfyUI-Zluda\venv\Lib\site-packages\torch\__init__.py", line 141, in <module>
    raise err
OSError: [WinError 126] The specified module could not be found. Error loading "C:\Users\dudur\Desktop\ComfyUI-Zluda\venv\Lib\site-packages\torch\lib\caffe2_nvrtc.dll" or one of its dependencies.

Other

I have no idea what else to try. Even weirder, the "C:\Users\dudur\Desktop\ComfyUI-Zluda\venv\Lib\site-packages\torch\lib\caffe2_nvrtc.dll" file does exists in this path. Oh, tried installing in a different folder to, no luck.

rickguedes commented 2 weeks ago

Tried updating GPU drivers, still no change, 24.10.1 and I have a 6900 XT

Namadibus commented 2 weeks ago

Same with my 7800xt.

patientx commented 2 weeks ago

Just thinking MAYBE IT IS MY SYSTEM , I installed windows 11 from scratch on a new hdd. Did everything step by step on the readme as if I am someone else doing it for the first time, and ... it just works.

azamet90 commented 2 weeks ago

same here and last step on troubleshoot did also not solved my problem. i also added rocm in to path: image image to be sure i added them in to 2 place of paths...

how did you solved the problem?

azamet90 commented 2 weeks ago

okay i fixed the problem with changing from powershell to default cmd

soggywhale commented 1 week ago

read the troubleshooting page it describes your problem and how to solve it

Namadibus commented 1 week ago

read the troubleshooting page it describes your problem and how to solve it

I did everything as it says.

Nothing helped. And no, I didn't install Python from the Windows store.

SD.Next works for me with Zluda, though.

patientx commented 1 week ago

read the troubleshooting page it describes your problem and how to solve it

I did everything as it says.

Nothing helped. And no, I didn't install Python from the Windows store.

SD.Next works for me with Zluda, though.

I also have both this and sdnext on my pc both AND running on different zluda versions actually. As I said above I installed one with a fresh system from the start as if I know nothing about this stuff and just typed it step by step , it works. So it is on your system sorry. There are tons of issues opened about this and I am suggesting everything there is found about this in the troubleshooting.

Update your gpu driver, make sure there are no nvidia drivers left on the system (maybe from previous gpu's etc) , run the whole thing inside a command line not on powershell as suggested by someone above as their solution. Other than these and the ones on the troubleshooting part of readme I don't have any other solutions.

Namadibus commented 1 week ago

Fixed.

Used SDK 5.7 and... Check your Paths. Both system and user.

C:\Program Files\AMD\ROCm\5.7\bin (bin was my problem in user paths)