lllyasviel / lllyasviel/stable-diffusion-webui-forge

Had been working perfectly, now I always get the following error after everything has already loaded

Open
#2,559 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Python
Stars
13k
Forks
1.7k
PR merge metrics
No merged PRs in 30d

Description

Python 3.11.11 (main, Dec 4 2024, 08:55:07) [GCC 11.4.0]
Version: f2.0.1v1.10.1-previous-563-g862c7a58
Commit hash: 862c7a589e43935fa9271bb05399ca003420cbf9
Installing SD-Hub requirement: pv
Legacy Preprocessor init warning: Unable to install insightface automatically. Please try run `pip install insightface` manually.
Launching Web UI with arguments: --enable-insecure-extension-access --disable-safe-unpickle --share --no-hashing --disable-console-progressbars --lowram --opt-sub-quad-attention --opt-channelslast --no-download-sd-model --gradio-queue --listen --lowram --theme dark --no-half-vae --opt-sdp-attention
Total VRAM 15102 MB, total RAM 12979 MB
pytorch version: 2.5.1+cu121
Set vram state to: NORMAL_VRAM
Device: cuda:0 Tesla T4 : native
VAE dtype preferences: [torch.float32] -> torch.float32
CUDA Using Stream: False
Traceback (most recent call last):
File "/content/stable-diffusion-webui-forge/launch.py", line 54, in
main()
File "/content/stable-diffusion-webui-forge/launch.py", line 50, in main
start()
File "/content/stable-diffusion-webui-forge/modules/launch_utils.py", line 549, in start
import webui
File "/content/stable-diffusion-webui-forge/webui.py", line 17, in
initialize_forge()
File "/content/stable-diffusion-webui-forge/modules_forge/initialization.py", line 94, in initialize_forge
import modules_forge.patch_basic
File "/content/stable-diffusion-webui-forge/modules_forge/patch_basic.py", line 6, in
import gradio.networking
File "/usr/local/lib/python3.11/dist-packages/gradio/__init__.py", line 3, in
import gradio._simple_templates
File "/usr/local/lib/python3.11/dist-packages/gradio/_simple_templates/__init__.py", line 1, in
from .simpledropdown import SimpleDropdown
File "/usr/local/lib/python3.11/dist-packages/gradio/_simple_templates/simpledropdown.py", line 6, in
from gradio.components.base import Component, FormComponent
File "/usr/local/lib/python3.11/dist-packages/gradio/components/__init__.py", line 1, in
from gradio.components.annotated_image import AnnotatedImage
File "/usr/local/lib/python3.11/dist-packages/gradio/components/annotated_image.py", line 9, in
import PIL.Image
File "/usr/local/lib/python3.11/dist-packages/PIL/Image.py", line 111, in
raise ImportError(msg)
ImportError: The _imaging extension was built for another version of Pillow or PIL:
Core version: 11.1.0
Pillow version: 9.5.0

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start with the import path in launch.py, modules/launch_utils.py, modules_forge/initialization.py, and modules_forge/patch_basic.py, then inspect the Pillow and PIL versions shown in the traceback. Reproduce the startup failure and determine how the project's dependency setup should avoid the _imaging version mismatch; done means the web UI starts without this ImportError.

Written by the indexing model from the issue text.

Assessment

Tech stack
python
Domain
devops
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
30/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.