Skip to content

[Bug]: Cannot start stable diffusions #15885

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
3 of 6 tasks
AusarDvilest opened this issue May 25, 2024 · 3 comments
Open
3 of 6 tasks

[Bug]: Cannot start stable diffusions #15885

AusarDvilest opened this issue May 25, 2024 · 3 comments
Labels
bug-report Report of a bug, yet to be confirmed

Comments

@AusarDvilest
Copy link

Checklist

  • The issue exists after disabling all extensions
  • 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
  • The issue exists in the current version of the webui
  • The issue has not been reported before recently
  • The issue has been reported before but has not been fixed yet

What happened?

When i press run for the first time (i have not used stable diffusions before, was trying to download it right now)

Steps to reproduce the problem

press run

What should have happened?

Webui should have started

What browsers do you use to access the UI ?

No response

Sysinfo

Could not find this as the thing did not want to open

Console logs

Python 3.10.6 (tags/v3.10.6:9c7b4bd, Aug  1 2022, 21:53:49) [MSC v.1932 64 bit (AMD64)]
Version: v1.9.3
Commit hash: 1c0a0c4c26f78c32095ebc7f8af82f5c04fca8c0
Launching Web UI with arguments:
no module 'xformers'. Processing without...
no module 'xformers'. Processing without...
No module 'xformers'. Proceeding without it.
Traceback (most recent call last):
  File "E:\Stable dif\Stable diff\webui\launch.py", line 48, in <module>
    main()
  File "E:\Stable dif\Stable diff\webui\launch.py", line 44, in main
    start()
  File "E:\Stable dif\Stable diff\webui\modules\launch_utils.py", line 465, in start
    import webui
  File "E:\Stable dif\Stable diff\webui\webui.py", line 13, in <module>
    initialize.imports()
  File "E:\Stable dif\Stable diff\webui\modules\initialize.py", line 39, in imports
    from modules import processing, gradio_extensons, ui  # noqa: F401
  File "E:\Stable dif\Stable diff\webui\modules\processing.py", line 18, in <module>
    import modules.sd_hijack
  File "E:\Stable dif\Stable diff\webui\modules\sd_hijack.py", line 5, in <module>
    from modules import devices, sd_hijack_optimizations, shared, script_callbacks, errors, sd_unet, patches
  File "E:\Stable dif\Stable diff\webui\modules\sd_hijack_optimizations.py", line 13, in <module>
    from modules.hypernetworks import hypernetwork
  File "E:\Stable dif\Stable diff\webui\modules\hypernetworks\hypernetwork.py", line 8, in <module>
    import modules.textual_inversion.dataset
  File "E:\Stable dif\Stable diff\webui\modules\textual_inversion\dataset.py", line 12, in <module>
    from modules import devices, shared, images
  File "E:\Stable dif\Stable diff\webui\modules\images.py", line 22, in <module>
    from modules import sd_samplers, shared, script_callbacks, errors
  File "E:\Stable dif\Stable diff\webui\modules\sd_samplers.py", line 5, in <module>
    from modules import sd_samplers_kdiffusion, sd_samplers_timesteps, sd_samplers_lcm, shared, sd_samplers_common, sd_schedulers
  File "E:\Stable dif\Stable diff\webui\modules\sd_samplers_kdiffusion.py", line 3, in <module>
    import k_diffusion.sampling
  File "E:\Stable dif\Stable diff\webui\repositories\k-diffusion\k_diffusion\__init__.py", line 1, in <module>
    from . import augmentation, config, evaluation, external, gns, layers, models, sampling, utils
  File "E:\Stable dif\Stable diff\webui\repositories\k-diffusion\k_diffusion\evaluation.py", line 6, in <module>
    import clip
  File "E:\Stable dif\Stable diff\system\python\lib\site-packages\clip\__init__.py", line 1, in <module>
    from .clip import *
  File "E:\Stable dif\Stable diff\system\python\lib\site-packages\clip\clip.py", line 6, in <module>
    from pkg_resources import packaging
ImportError: cannot import name 'packaging' from 'pkg_resources' (E:\Stable dif\Stable diff\system\python\lib\site-packages\pkg_resources\__init__.py)

Additional information

Tried doing it by downloading with python and git took 3 hours and couldnt download torch so i went and did the nvidia method but this pops up

@AusarDvilest AusarDvilest added the bug-report Report of a bug, yet to be confirmed label May 25, 2024
@i833tacos
Copy link

I am getting this exact error. Any solutions yet? Code below for reference.

`Python 3.10.6 (tags/v3.10.6:9c7b4bd, Aug 1 2022, 21:53:49) [MSC v.1932 64 bit (AMD64)]
Version: v1.9.3
Commit hash: 1c0a0c4
Installing torch and torchvision
Looking in indexes: https://pypi.org/simple, https://download.pytorch.org/whl/cu121
Collecting torch==2.1.2
Using cached https://download.pytorch.org/whl/cu121/torch-2.1.2%2Bcu121-cp310-cp310-win_amd64.whl (2473.9 MB)
Collecting torchvision==0.16.2
Using cached https://download.pytorch.org/whl/cu121/torchvision-0.16.2%2Bcu121-cp310-cp310-win_amd64.whl (5.6 MB)
Collecting filelock (from torch==2.1.2)
Using cached filelock-3.14.0-py3-none-any.whl.metadata (2.8 kB)
Collecting typing-extensions (from torch==2.1.2)
Using cached typing_extensions-4.12.0-py3-none-any.whl.metadata (3.0 kB)
Collecting sympy (from torch==2.1.2)
Using cached https://download.pytorch.org/whl/sympy-1.12-py3-none-any.whl (5.7 MB)
Collecting networkx (from torch==2.1.2)
Using cached networkx-3.3-py3-none-any.whl.metadata (5.1 kB)
Collecting jinja2 (from torch==2.1.2)
Using cached jinja2-3.1.4-py3-none-any.whl.metadata (2.6 kB)
Collecting fsspec (from torch==2.1.2)
Using cached fsspec-2024.5.0-py3-none-any.whl.metadata (11 kB)
Collecting numpy (from torchvision==0.16.2)
Using cached numpy-1.26.4-cp310-cp310-win_amd64.whl.metadata (61 kB)
Collecting requests (from torchvision==0.16.2)
Using cached requests-2.32.2-py3-none-any.whl.metadata (4.6 kB)
Collecting pillow!=8.3.*,>=5.3.0 (from torchvision==0.16.2)
Using cached pillow-10.3.0-cp310-cp310-win_amd64.whl.metadata (9.4 kB)
Collecting MarkupSafe>=2.0 (from jinja2->torch==2.1.2)
Using cached https://download.pytorch.org/whl/MarkupSafe-2.1.5-cp310-cp310-win_amd64.whl (17 kB)
Collecting charset-normalizer<4,>=2 (from requests->torchvision==0.16.2)
Using cached charset_normalizer-3.3.2-cp310-cp310-win_amd64.whl.metadata (34 kB)
Collecting idna<4,>=2.5 (from requests->torchvision==0.16.2)
Using cached idna-3.7-py3-none-any.whl.metadata (9.9 kB)
Collecting urllib3<3,>=1.21.1 (from requests->torchvision==0.16.2)
Using cached urllib3-2.2.1-py3-none-any.whl.metadata (6.4 kB)
Collecting certifi>=2017.4.17 (from requests->torchvision==0.16.2)
Using cached certifi-2024.2.2-py3-none-any.whl.metadata (2.2 kB)
Collecting mpmath>=0.19 (from sympy->torch==2.1.2)
Using cached https://download.pytorch.org/whl/mpmath-1.3.0-py3-none-any.whl (536 kB)
Using cached pillow-10.3.0-cp310-cp310-win_amd64.whl (2.5 MB)
Using cached filelock-3.14.0-py3-none-any.whl (12 kB)
Using cached fsspec-2024.5.0-py3-none-any.whl (316 kB)
Using cached jinja2-3.1.4-py3-none-any.whl (133 kB)
Using cached networkx-3.3-py3-none-any.whl (1.7 MB)
Using cached numpy-1.26.4-cp310-cp310-win_amd64.whl (15.8 MB)
Using cached requests-2.32.2-py3-none-any.whl (63 kB)
Using cached typing_extensions-4.12.0-py3-none-any.whl (37 kB)
Using cached certifi-2024.2.2-py3-none-any.whl (163 kB)
Using cached charset_normalizer-3.3.2-cp310-cp310-win_amd64.whl (100 kB)
Using cached idna-3.7-py3-none-any.whl (66 kB)
Using cached urllib3-2.2.1-py3-none-any.whl (121 kB)
Installing collected packages: mpmath, urllib3, typing-extensions, sympy, pillow, numpy, networkx, MarkupSafe, idna, fsspec, filelock, charset-normalizer, certifi, requests, jinja2, torch, torchvision
Successfully installed MarkupSafe-2.1.5 certifi-2024.2.2 charset-normalizer-3.3.2 filelock-3.14.0 fsspec-2024.5.0 idna-3.7 jinja2-3.1.4 mpmath-1.3.0 networkx-3.3 numpy-1.26.4 pillow-10.3.0 requests-2.32.2 sympy-1.12 torch-2.1.2+cu121 torchvision-0.16.2+cu121 typing-extensions-4.12.0 urllib3-2.2.1
Installing clip
Installing open_clip
Cloning assets into C:\Users\danny\OneDrive\Desktop\Stable_Diffusion_App\webui\repositories\stable-diffusion-webui-assets...
Cloning into 'C:\Users\danny\OneDrive\Desktop\Stable_Diffusion_App\webui\repositories\stable-diffusion-webui-assets'...
remote: Enumerating objects: 20, done.
remote: Counting objects: 100% (20/20), done.
remote: Compressing objects: 100% (18/18), done.
remote: Total 20 (delta 0), reused 20 (delta 0), pack-reused 0
Receiving objects: 100% (20/20), 132.70 KiB | 672.00 KiB/s, done.
Cloning Stable Diffusion into C:\Users\danny\OneDrive\Desktop\Stable_Diffusion_App\webui\repositories\stable-diffusion-stability-ai...
Cloning into 'C:\Users\danny\OneDrive\Desktop\Stable_Diffusion_App\webui\repositories\stable-diffusion-stability-ai'...
remote: Enumerating objects: 580, done.
remote: Counting objects: 100% (571/571), done.
remote: Compressing objects: 100% (306/306), done.
remote: Total 580 (delta 278), reused 446 (delta 247), pack-reused 9Receiving objects: 92% (534/580), 72.42 MiB | 2.46Receiving objects: 100% (580/580), 73.44 MiB | 2.85 MiB/s, done.

Resolving deltas: 100% (278/278), done.
Cloning Stable Diffusion XL into C:\Users\danny\OneDrive\Desktop\Stable_Diffusion_App\webui\repositories\generative-models...
Cloning into 'C:\Users\danny\OneDrive\Desktop\Stable_Diffusion_App\webui\repositories\generative-models'...
remote: Enumerating objects: 941, done.
remote: Total 941 (delta 0), reused 0 (delta 0), pack-reused 941Receiving objects: 92% (866/941), 43.42 MiB | 1.64 MiB/Receiving objects: 98% (923/941), 43.42 MiB | 1.64 MiB/s
Receiving objects: 100% (941/941), 43.85 MiB | 2.90 MiB/s, done.
Resolving deltas: 100% (491/491), done.
Cloning K-diffusion into C:\Users\danny\OneDrive\Desktop\Stable_Diffusion_App\webui\repositories\k-diffusion...
Cloning into 'C:\Users\danny\OneDrive\Desktop\Stable_Diffusion_App\webui\repositories\k-diffusion'...
remote: Enumerating objects: 1345, done.
remote: Counting objects: 100% (743/743), done.
remote: Compressing objects: 100% (94/94), done.
remote: Total 1345 (delta 697), reused 655 (delta 649), pack-reused 602
Receiving objects: 100% (1345/1345), 236.07 KiB | 1.17 MiB/s, done.
Resolving deltas: 100% (945/945), done.
Cloning BLIP into C:\Users\danny\OneDrive\Desktop\Stable_Diffusion_App\webui\repositories\BLIP...
Cloning into 'C:\Users\danny\OneDrive\Desktop\Stable_Diffusion_App\webui\repositories\BLIP'...
remote: Enumerating objects: 277, done.
remote: Counting objects: 100% (165/165), done.
remote: Compressing objects: 100% (30/30), done.
remote: Total 277 (delta 137), reused 136 (delta 135), pack-reused 112Receiving objects: 99% (275/277), 5.36 MiB | 5.34

Receiving objects: 100% (277/277), 7.03 MiB | 5.93 MiB/s, done.
Resolving deltas: 100% (152/152), done.
Installing requirements
Launching Web UI with arguments:
no module 'xformers'. Processing without...
no module 'xformers'. Processing without...
No module 'xformers'. Proceeding without it.
Traceback (most recent call last):
File "C:\Users\danny\OneDrive\Desktop\Stable_Diffusion_App\webui\launch.py", line 48, in
main()
File "C:\Users\danny\OneDrive\Desktop\Stable_Diffusion_App\webui\launch.py", line 44, in main
start()
File "C:\Users\danny\OneDrive\Desktop\Stable_Diffusion_App\webui\modules\launch_utils.py", line 465, in start
import webui
File "C:\Users\danny\OneDrive\Desktop\Stable_Diffusion_App\webui\webui.py", line 13, in
initialize.imports()
File "C:\Users\danny\OneDrive\Desktop\Stable_Diffusion_App\webui\modules\initialize.py", line 39, in imports
from modules import processing, gradio_extensons, ui # noqa: F401
File "C:\Users\danny\OneDrive\Desktop\Stable_Diffusion_App\webui\modules\processing.py", line 18, in
import modules.sd_hijack
File "C:\Users\danny\OneDrive\Desktop\Stable_Diffusion_App\webui\modules\sd_hijack.py", line 5, in
from modules import devices, sd_hijack_optimizations, shared, script_callbacks, errors, sd_unet, patches
File "C:\Users\danny\OneDrive\Desktop\Stable_Diffusion_App\webui\modules\sd_hijack_optimizations.py", line 13, in
from modules.hypernetworks import hypernetwork
File "C:\Users\danny\OneDrive\Desktop\Stable_Diffusion_App\webui\modules\hypernetworks\hypernetwork.py", line 8, in
import modules.textual_inversion.dataset
File "C:\Users\danny\OneDrive\Desktop\Stable_Diffusion_App\webui\modules\textual_inversion\dataset.py", line 12, in
from modules import devices, shared, images
File "C:\Users\danny\OneDrive\Desktop\Stable_Diffusion_App\webui\modules\images.py", line 22, in
from modules import sd_samplers, shared, script_callbacks, errors
File "C:\Users\danny\OneDrive\Desktop\Stable_Diffusion_App\webui\modules\sd_samplers.py", line 5, in
from modules import sd_samplers_kdiffusion, sd_samplers_timesteps, sd_samplers_lcm, shared, sd_samplers_common, sd_schedulers
File "C:\Users\danny\OneDrive\Desktop\Stable_Diffusion_App\webui\modules\sd_samplers_kdiffusion.py", line 3, in
import k_diffusion.sampling
File "C:\Users\danny\OneDrive\Desktop\Stable_Diffusion_App\webui\repositories\k-diffusion\k_diffusion_init_.py", line 1, in
from . import augmentation, config, evaluation, external, gns, layers, models, sampling, utils
File "C:\Users\danny\OneDrive\Desktop\Stable_Diffusion_App\webui\repositories\k-diffusion\k_diffusion\evaluation.py",line 6, in
import clip
File "C:\Users\danny\OneDrive\Desktop\Stable_Diffusion_App\system\python\lib\site-packages\clip_init_.py", line 1,in
from .clip import *
File "C:\Users\danny\OneDrive\Desktop\Stable_Diffusion_App\system\python\lib\site-packages\clip\clip.py", line 6, in
from pkg_resources import packaging
ImportError: cannot import name 'packaging' from 'pkg_resources' (C:\Users\danny\OneDrive\Desktop\Stable_Diffusion_App\system\python\lib\site-packages\pkg_resources_init_.py)`

@w-e-w
Copy link
Collaborator

w-e-w commented May 28, 2024

fix has bee pushed to 1.9.4 so update to make it work

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug-report Report of a bug, yet to be confirmed
Projects
None yet
Development

No branches or pull requests

3 participants