vladmandic / automatic

SD.Next: Advanced Implementation of Stable Diffusion and other Diffusion-based generative image models
https://github.com/vladmandic/automatic
GNU Affero General Public License v3.0
5.61k stars 411 forks source link

[Issue]: I can't install on a clean Windows SD.Next #3392

Closed AbramovS1 closed 1 month ago

AbramovS1 commented 1 month ago

Issue Description

I can't install using the new SD. next, it returns the OSError (winError126) error.

Version Platform Description

Win11 bild 26100.1457 64 RAM

Relevant log output

Using VENV: J:\SD.Next\automatic\venv
09:54:18-456952 INFO     Starting SD.Next
09:54:18-462404 INFO     Logger: file="J:\SD.Next\automatic\sdnext.log" level=INFO size=24581 mode=append
09:54:18-464653 INFO     Python version=3.12.3 platform=Windows bin="J:\SD.Next\automatic\venv\Scripts\python.exe"
                         venv="J:\SD.Next\automatic\venv"
09:54:18-885177 INFO     Version: app=sd.next updated=2024-08-31 hash=bab17a0b branch=master
                         url=https://github.com/vladmandic/automatic/tree/master ui=main
09:54:19-770421 INFO     Platform: arch=AMD64 cpu=Intel64 Family 6 Model 165 Stepping 3, GenuineIntel system=Windows
                         release=Windows-11-10.0.26100-SP0 python=3.12.3
09:54:19-772795 INFO     HF cache folder: C:\Users\mrjek\.cache\huggingface\hub
09:54:19-783790 INFO     nVidia CUDA toolkit detected: nvidia-smi present
09:54:19-943310 INFO     Verifying requirements
09:54:19-948931 INFO     Verifying packages
09:54:20-029776 INFO     Extensions: disabled=[]
09:54:20-031814 INFO     Extensions: enabled=['Lora', 'sd-extension-chainner', 'sd-extension-system-info',
                         'sd-webui-agent-scheduler', 'sdnext-modernui', 'stable-diffusion-webui-rembg']
                         extensions-builtin
09:54:20-034826 INFO     Extensions: enabled=[] extensions
09:54:20-035829 INFO     Startup: quick launch
09:54:20-036972 INFO     Extensions: disabled=[]
09:54:20-039138 INFO     Extensions: enabled=['Lora', 'sd-extension-chainner', 'sd-extension-system-info',
                         'sd-webui-agent-scheduler', 'sdnext-modernui', 'stable-diffusion-webui-rembg']
                         extensions-builtin
09:54:20-041512 INFO     Extensions: enabled=[] extensions
09:54:20-045853 INFO     Command line args: []
╭───────────────────────────────────────── Traceback (most recent call last) ──────────────────────────────────────────╮
│ J:\SD.Next\automatic\launch.py:265 in <module>                                                                       │
│                                                                                                                      │
│   264 if __name__ == "__main__":                                                                                     │
│ ❱ 265     main()                                                                                                     │
│   266                                                                                                                │
│                                                                                                                      │
│ J:\SD.Next\automatic\launch.py:242 in main                                                                           │
│                                                                                                                      │
│   241                                                                                                                │
│ ❱ 242     uv, instance = start_server(immediate=True, server=None)                                                   │
│   243     while True:                                                                                                │
│                                                                                                                      │
│ J:\SD.Next\automatic\launch.py:168 in start_server                                                                   │
│                                                                                                                      │
│   167     get_custom_args()                                                                                          │
│ ❱ 168     module_spec.loader.exec_module(server)                                                                     │
│   169     uvicorn = None                                                                                             │
│ in exec_module:995                                                                                                   │
│ in _call_with_frames_removed:488                                                                                     │
│                                                                                                                      │
│ J:\SD.Next\automatic\webui.py:11 in <module>                                                                         │
│                                                                                                                      │
│    10 from threading import Thread                                                                                   │
│ ❱  11 import modules.loader                                                                                          │
│    12 import torch # pylint: disable=wrong-import-order                                                              │
│                                                                                                                      │
│ J:\SD.Next\automatic\modules\loader.py:14 in <module>                                                                │
│                                                                                                                      │
│   13                                                                                                                 │
│ ❱ 14 import torch # pylint: disable=C0411                                                                            │
│   15 try:                                                                                                            │
│                                                                                                                      │
│ J:\SD.Next\automatic\venv\Lib\site-packages\torch\__init__.py:148 in <module>                                        │
│                                                                                                                      │
│    147                 err.strerror += f' Error loading "{dll}" or one of its dependencies.'                         │
│ ❱  148                 raise err                                                                                     │
│    149                                                                                                               │
╰──────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╯
OSError: [WinError 126] The specified module was not found. Error loading "J:\SD.Next\automatic\venv\Lib\site-packages\torch\lib\fbgemm.dll" or one of its dependencies.

Backend

Diffusers

UI

Standard

Branch

Master

Model

StableDiffusion 1.5

Acknowledgements

brknsoul commented 1 month ago

I spot a lie! image

https://github.com/vladmandic/automatic/issues/3360#issuecomment-2272566647

vladmandic commented 1 month ago

closing as duplicate.