fast-stable-diffusion: "ModuleNotFoundError: No module named 'fastapi'"

Starting last night, whenever I try to run your Colab version of Automatic1111, I get the following error:

Traceback (most recent call last):
  File "/content/gdrive/MyDrive/sd/stable-diffusion-webui/webui.py", line 7, in <module>
    from fastapi import FastAPI
ModuleNotFoundError: No module named 'fastapi'

I tried deleting all of the files from my Google Drive and trying again, but it doesn’t help.

About this issue

  • Original URL
  • State: closed
  • Created 2 years ago
  • Reactions: 2
  • Comments: 23 (7 by maintainers)

Most upvoted comments

what to do? create two code blocks after “Requirements” 1st: %%writefile requirements.txt blendmodes accelerate basicsr fonts font-roboto gfpgan gradio==3.16.2 invisible-watermark numpy omegaconf opencv-contrib-python requests piexif Pillow pytorch_lightning==1.7.7 realesrgan scikit-image>=0.19 timm==0.4.12 transformers==4.25.1 torch einops jsonmerge clean-fid resize-right torchdiffeq kornia lark inflection GitPython torchsde safetensors psutil albumentations==0.4.3 opencv-python pudb==2019.2 imageio==2.9.0 omegaconf==2.1.1 test-tube>=0.7.5 webdataset==0.2.5 open-clip-torch==2.7.0 kornia==0.6 invisible-watermark>=0.1.5 streamlit-drawable-canvas==0.8.0 xformers fastapi 2nd: !pip install -r requirements.txt !pip install git+https://github.com/openai/CLIP.git !pip install --upgrade fastapi==0.90.1

2023-03-09_06-10-51

I’m aware of the freezing issue and I’m working on it.