AUTOMATIC1111 / stable-diffusion-webui

Stable Diffusion web UI
GNU Affero General Public License v3.0
131.68k stars 25.27k forks source link

[Bug]: No module named 'pillow_avif' #15601

Closed moskvinsss closed 3 weeks ago

moskvinsss commented 4 weeks ago

Checklist

What happened?

Traceback (most recent call last): File "/content/gdrive/MyDrive/sd/stable-diffusion-webui/webui.py", line 13, in initialize.imports() File "/content/gdrive/MyDrive/sd/stable-diffusion-webui/modules/initialize.py", line 39, in imports from modules import processing, gradio_extensons, ui # noqa: F401 File "/content/gdrive/MyDrive/sd/stable-diffusion-webui/modules/processing.py", line 18, in import modules.sd_hijack File "/content/gdrive/MyDrive/sd/stable-diffusion-webui/modules/sd_hijack.py", line 5, in from modules import devices, sd_hijack_optimizations, shared, script_callbacks, errors, sd_unet, patches File "/content/gdrive/MyDrive/sd/stable-diffusion-webui/modules/sd_hijack_optimizations.py", line 13, in from modules.hypernetworks import hypernetwork File "/content/gdrive/MyDrive/sd/stable-diffusion-webui/modules/hypernetworks/hypernetwork.py", line 8, in import modules.textual_inversion.dataset File "/content/gdrive/MyDrive/sd/stable-diffusion-webui/modules/textual_inversion/dataset.py", line 12, in from modules import devices, shared, images File "/content/gdrive/MyDrive/sd/stable-diffusion-webui/modules/images.py", line 17, in import pillow_avif # noqa: F401 ModuleNotFoundError: No module named 'pillow_avif'

Steps to reproduce the problem

Just start webui

What should have happened?

Start of SD

What browsers do you use to access the UI ?

No response

Sysinfo

Cant open

Console logs

Traceback (most recent call last):
  File "/content/gdrive/MyDrive/sd/stable-diffusion-webui/webui.py", line 13, in <module>
    initialize.imports()
  File "/content/gdrive/MyDrive/sd/stable-diffusion-webui/modules/initialize.py", line 39, in imports
    from modules import processing, gradio_extensons, ui  # noqa: F401
  File "/content/gdrive/MyDrive/sd/stable-diffusion-webui/modules/processing.py", line 18, in <module>
    import modules.sd_hijack
  File "/content/gdrive/MyDrive/sd/stable-diffusion-webui/modules/sd_hijack.py", line 5, in <module>
    from modules import devices, sd_hijack_optimizations, shared, script_callbacks, errors, sd_unet, patches
  File "/content/gdrive/MyDrive/sd/stable-diffusion-webui/modules/sd_hijack_optimizations.py", line 13, in <module>
    from modules.hypernetworks import hypernetwork
  File "/content/gdrive/MyDrive/sd/stable-diffusion-webui/modules/hypernetworks/hypernetwork.py", line 8, in <module>
    import modules.textual_inversion.dataset
  File "/content/gdrive/MyDrive/sd/stable-diffusion-webui/modules/textual_inversion/dataset.py", line 12, in <module>
    from modules import devices, shared, images
  File "/content/gdrive/MyDrive/sd/stable-diffusion-webui/modules/images.py", line 17, in <module>
    import pillow_avif # noqa: F401
ModuleNotFoundError: No module named 'pillow_avif'

Additional information

No response

missionfloyd commented 4 weeks ago
venv\Scripts\activate
pip install pillow-avif-plugin

Or delete the venv folder. It'll reinstall all the dependencies.

ashleykleynhans commented 3 weeks ago

Wrong repo, looks like you're using Fast Stable Diffusion and the issue was resolved yesterday - https://github.com/TheLastBen/fast-stable-diffusion/issues/2812