stable-diffusion-webui icon indicating copy to clipboard operation
stable-diffusion-webui copied to clipboard

[Bug]: cpu only install fails due to outdated driver

Open picarica opened this issue 1 year ago • 2 comments

Checklist

  • [X] The issue exists after disabling all extensions
  • [X] The issue exists on a clean installation of webui
  • [ ] The issue is caused by an extension, but I believe it is caused by a bug in the webui
  • [X] The issue exists in the current version of the webui
  • [X] The issue has not been reported before recently
  • [X] The issue has been reported before but has not been fixed yet

What happened?

when tryin got launch cpu only mode it crasesh with error that my nvidia driver is outdate, I KNOW thats why i want to run it with cpu only

Steps to reproduce the problem

basic install with these options --use-cpu all --precision full --no-half --skip-torch-cuda-test with NVIDIA Quadro 2000

What should have happened?

launch

What browsers do you use to access the UI ?

Mozilla Firefox

Sysinfo

i cant

Console logs

./webui.sh 

################################################################
Install script for stable-diffusion + Web UI
Tested on Debian 11 (Bullseye), Fedora 34+ and openSUSE Leap 15.4 or newer.
################################################################

################################################################
Running on jurajb user
################################################################

################################################################
Repo already cloned, using it as install directory
################################################################

################################################################
Create and activate python venv
################################################################

################################################################
Launching launch.py...
################################################################
Python 3.10.12 (main, Nov 20 2023, 15:14:05) [GCC 11.4.0]
Version: v1.7.0
Commit hash: cf2772fab0af5573da775e7437e6acdca424f26e
Launching Web UI with arguments: --use-cpu all --precision full --no-half --skip-torch-cuda-test
no module 'xformers'. Processing without...
no module 'xformers'. Processing without...
No module 'xformers'. Proceeding without it.
The NVIDIA driver on your system is too old (found version 9010). Please update your GPU driver by downloading and installing a new version from the URL: http://www.nvidia.com/Download/index.aspx Alternatively, go to: https://pytorch.org to install a PyTorch version that has been compiled with your version of the CUDA driver.: str
Traceback (most recent call last):
  File "/home/jurajb/stable-diffusion-webui/stablediffusion-offical/stable-diffusion-webui/modules/errors.py", line 98, in run
    code()
  File "/home/jurajb/stable-diffusion-webui/stablediffusion-offical/stable-diffusion-webui/modules/devices.py", line 76, in enable_tf32
    device_id = (int(shared.cmd_opts.device_id) if shared.cmd_opts.device_id is not None and shared.cmd_opts.device_id.isdigit() else 0) or torch.cuda.current_device()
  File "/home/jurajb/stable-diffusion-webui/stablediffusion-offical/stable-diffusion-webui/venv/lib/python3.10/site-packages/torch/cuda/__init__.py", line 674, in current_device
    _lazy_init()
  File "/home/jurajb/stable-diffusion-webui/stablediffusion-offical/stable-diffusion-webui/venv/lib/python3.10/site-packages/torch/cuda/__init__.py", line 247, in _lazy_init
    torch._C._cuda_init()
RuntimeError: The NVIDIA driver on your system is too old (found version 9010). Please update your GPU driver by downloading and installing a new version from the URL: http://www.nvidia.com/Download/index.aspx Alternatively, go to: https://pytorch.org to install a PyTorch version that has been compiled with your version of the CUDA driver.

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/jurajb/stable-diffusion-webui/stablediffusion-offical/stable-diffusion-webui/launch.py", line 48, in <module>
    main()
  File "/home/jurajb/stable-diffusion-webui/stablediffusion-offical/stable-diffusion-webui/launch.py", line 44, in main
    start()
  File "/home/jurajb/stable-diffusion-webui/stablediffusion-offical/stable-diffusion-webui/modules/launch_utils.py", line 460, in start
    import webui
  File "/home/jurajb/stable-diffusion-webui/stablediffusion-offical/stable-diffusion-webui/webui.py", line 13, in <module>
    initialize.imports()
  File "/home/jurajb/stable-diffusion-webui/stablediffusion-offical/stable-diffusion-webui/modules/initialize.py", line 34, in imports
    shared_init.initialize()
  File "/home/jurajb/stable-diffusion-webui/stablediffusion-offical/stable-diffusion-webui/modules/shared_init.py", line 17, in initialize
    from modules import options, shared_options
  File "/home/jurajb/stable-diffusion-webui/stablediffusion-offical/stable-diffusion-webui/modules/shared_options.py", line 3, in <module>
    from modules import localization, ui_components, shared_items, shared, interrogate, shared_gradio_themes
  File "/home/jurajb/stable-diffusion-webui/stablediffusion-offical/stable-diffusion-webui/modules/interrogate.py", line 13, in <module>
    from modules import devices, paths, shared, lowvram, modelloader, errors
  File "/home/jurajb/stable-diffusion-webui/stablediffusion-offical/stable-diffusion-webui/modules/devices.py", line 84, in <module>
    errors.run(enable_tf32, "Enabling TF32")
  File "/home/jurajb/stable-diffusion-webui/stablediffusion-offical/stable-diffusion-webui/modules/errors.py", line 100, in run
    display(task, e)
  File "/home/jurajb/stable-diffusion-webui/stablediffusion-offical/stable-diffusion-webui/modules/errors.py", line 68, in display
    te = traceback.TracebackException.from_exception(e)
  File "/usr/lib/python3.10/traceback.py", line 572, in from_exception
    return cls(type(exc), exc, exc.__traceback__, *args, **kwargs)
AttributeError: 'str' object has no attribute '__traceback__'

Additional information

you can see my cpu only options applied

picarica avatar Jan 24 '24 11:01 picarica

did you set env TORCH_INDEX_URL to https://download.pytorch.org/whl/cpu otherwise I don't think it installs the CPU version?

w-e-w avatar Jan 24 '24 18:01 w-e-w

did you set env TORCH_INDEX_URL to https://download.pytorch.org/whl/cpu otherwise I don't think it installs the CPU version?

yes i tried that, even adding that to TORCH COMMAND, but then i folled this issue https://github.com/AUTOMATIC1111/stable-diffusion-webui/issues/14749#issuecomment-1908689741 and exacly that commend helped me make it work on my work pc but not at home

picarica avatar Jan 25 '24 11:01 picarica

AttributeError: 'str' object has no attribute 'traceback' May I ask if this problem has been resolved?

weixing1994 avatar May 16 '24 01:05 weixing1994

i think it started working in newest update but no sure what fixed it

picarica avatar May 16 '24 09:05 picarica