Closed theoretischer closed 1 year ago
Having the same or a similar problem, my log starts like this:
venv "C:\programs\stable-diffusion-webui_RT\venv\Scripts\Python.exe" Python 3.10.6 (tags/v3.10.6:9c7b4bd, Aug 1 2022, 21:53:49) [MSC v.1932 64 bit (AMD64)] Version: v1.3.0-72-gb957dcfe Commit hash: b957dcfece29c84ac0cfcd5a69475ff8684c531f Installing requirements Error running install.py for extension C:\programs\stable-diffusion-webui_RT\extensions\stable-diffusion-webui-tensorrt. Command: "C:\programs\stable-diffusion-webui_RT\venv\Scripts\python.exe" "C:\programs\stable-diffusion-webui_RT\extensions\stable-diffusion-webui-tensorrt\install.py" Error code: 1 stdout: Installing pycuda
stderr: Traceback (most recent call last):
File "C:\programs\stable-diffusion-webui_RT\extensions\stable-diffusion-webui-tensorrt\install.py", line 30, in
stderr: error: subprocess-exited-with-error
Building wheel for pycuda (pyproject.toml) did not run successfully. exit code: 1
Contrary to the readme, it seems you do need cuda toolkit installed for pycuda.
I think this kind of worked but now i get error:
Error loading script: trt.py
Traceback (most recent call last):
File "C:\Software\stable-diffusion-webui\beta\stable-diffusion-webui\modules\scripts.py", line 263, in load_scripts
script_module = script_loading.load_module(scriptfile.path)
File "C:\Software\stable-diffusion-webui\beta\stable-diffusion-webui\modules\script_loading.py", line 10, in load_module
module_spec.loader.exec_module(module)
File "<frozen importlib._bootstrap_external>", line 883, in exec_module
File "<frozen importlib._bootstrap>", line 241, in _call_with_frames_removed
File "C:\Software\stable-diffusion-webui\beta\stable-diffusion-webui\extensions\stable-diffusion-webui-tensorrt\scripts\trt.py", line 11, in <module>
import pycuda.driver as cuda
ModuleNotFoundError: No module named 'pycuda.driver'
Ok i just removed pycuda and let it reinstall itself and now it works. Thanks to @merc4derp, it really jut was the toolkit
If I may ask: Where exactly did you remove pycuda?
Every time i try to install pycuda it just outputs this:
I have tried updating wheel, pip and other things but nothing helped. am i missing something?