fast-stable-diffusion icon indicating copy to clipboard operation
fast-stable-diffusion copied to clipboard

ModuleNotFoundError: No module named 'fastapi'

Open NissanSUTUTU opened this issue 1 year ago • 19 comments

image Not running the cell

NissanSUTUTU avatar Mar 09 '23 06:03 NissanSUTUTU

Yea yea yea everyone's notebooks are on fire right now LOL

duskfallcrew avatar Mar 09 '23 06:03 duskfallcrew

Sim, sim, sim, os cadernos de todos estão pegando fogo agora LOL

It just so happened that I downloaded over 60 GB of files to use in Stable Diffusion

NissanSUTUTU avatar Mar 09 '23 06:03 NissanSUTUTU

Ran into the same problem. It was working fine yesterday, but suddenly it doesn't work today.

SadSAYA avatar Mar 09 '23 06:03 SadSAYA

Same problem here. image

Griever158 avatar Mar 09 '23 07:03 Griever158

Same here, I've erased whole folder (except models/Stabale-diffusion) and restart the notebook but no luck.

925-Studio avatar Mar 09 '23 07:03 925-Studio

= ... I erased everything in drive, but still with the same error. :(

kozka avatar Mar 09 '23 07:03 kozka

#1711

lamwilton avatar Mar 09 '23 07:03 lamwilton

This works->https://github.com/TheLastBen/fast-stable-diffusion/issues/1706#issuecomment-1460708635

davvoz avatar Mar 09 '23 08:03 davvoz

I'm getting this error when trying to load a custom ckpt, are you having the same issue?

TheExodus90 avatar Mar 09 '23 11:03 TheExodus90

my clumsy and temp solution is: 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 jedi 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 fast_stable_diffusion_AUTOMATIC1111.ipynb.txt

DobrySkazochnik avatar Mar 09 '23 11:03 DobrySkazochnik

Awesome, this is working great!

TheExodus90 avatar Mar 09 '23 11:03 TheExodus90

Here is the solution https://github.com/TheLastBen/fast-stable-diffusion/issues/1706#issuecomment-1461284427

kieuvinh2412 avatar Mar 09 '23 12:03 kieuvinh2412

https://github.com/TheLastBen/fast-stable-diffusion/issues/1706#issuecomment-1461829277 worked for me

jonathangoorin avatar Mar 09 '23 13:03 jonathangoorin

Hi, developer. Why don't you make version locks? Why always releasing unverified things on "main" branch?

mskyan avatar Mar 09 '23 13:03 mskyan

Can you help me please? I had the same problem, i pasted this

!pip install -r /content/gdrive/MyDrive/sd/stable-diffusion-webui/requirements_versions.txt !pip install open_clip_torch !pip install git+https://github.com/openai/CLIP.git !pip install xformers

It gave me an url, but the link opens with empty page(2nd photo) image

image

sdelaldanya avatar Mar 09 '23 15:03 sdelaldanya

fixed

TheLastBen avatar Mar 09 '23 19:03 TheLastBen

We appreciate you! Thanks Ben!

SDS-MrD avatar Mar 09 '23 19:03 SDS-MrD

Great thanks Ben!

1000Hands avatar Mar 10 '23 00:03 1000Hands

fixed

BIG THUMB for you, now it's working again :)

925-Studio avatar Mar 10 '23 05:03 925-Studio