Error in the latest colab file

#33
by aiartcreator - opened

sed: can't read /usr/local/lib/python3.7/dist-packages/gradio/blocks.py: No such file or directory
sed: can't read /usr/local/lib/python3.7/dist-packages/gradio/blocks.py: No such file or directory
sed: can't read /usr/local/lib/python3.7/dist-packages/gradio/blocks.py: No such file or directory
sed: can't read /usr/local/lib/python3.7/dist-packages/gradio/strings.py: No such file or directory
Traceback (most recent call last):
File "/content/gdrive/MyDrive/sd/stable-diffusion-webui/webui.py", line 7, in
from fastapi import FastAPI
ModuleNotFoundError: No module named 'fastapi'

I think it happens because you should access the directory python3.8 now and not 3.7, anyway you can try to use this

Ah sorry, thanks for letting me know
try this, and tell me if it works

Thanks this works, would love to understand what did you change and what was I doing wrong?

Well I pretty much just updated to the newer version from fast-stable-diffiusion . But before I realized that I was fixing it myself and the problem was do to the fact that apparently the version of python now which comes with the machine is 3.8 and since the code was trying to access files from the 3.7 it wasn't working

Hey Jac, thanks for the update. It did work for a couple of days before crashing again.

I gave an update here. I’d like to know if it works for everybody and I would suggest to put it in the readme if it does

@Jac-Zac your link doesn't work, I have the same problem with Colab :/

That was an old link you can try this

I got this

File "/content/gdrive/MyDrive/sd/stable-diffusion-webui/webui.py", line 7, in
from fastapi import FastAPI
ModuleNotFoundError: No module named 'fastapi'

I got this

File "/content/gdrive/MyDrive/sd/stable-diffusion-webui/webui.py", line 7, in
from fastapi import FastAPI
ModuleNotFoundError: No module named 'fastapi'

Same error. Please let me know if you find a fix

Same problems:
ModuleNotFoundError: No module named 'fastapi'
using colab

Same here , using colab. Was working just a couple of hours ago before I went to bed but now is not after disconnecting and deleting the runtime. Only thing I Did differently in that session was used a model I trained last night and made a couple of pics with before going to bed... but this morning I get the same error in the Stable Diffusion cell from this colab

https://colab.research.google.com/github/TheLastBen/fast-stable-diffusion/blob/main/fast_stable_diffusion_AUTOMATIC1111.ipynb?

Error:
"File "/content/gdrive/MyDrive/sd/stable-diffusion-webui/webui.py", line 7, in
from fastapi import FastAPI
ModuleNotFoundError: No module named 'fastapi'"

It seems many of us are having this problem. I suggest waiting for an update to the colab if that is such a thing? There is no way we all had the same error in the same hour and even a guy on his patreon copied n pasted the same error.. So yea , I'm sure thelastben , at least , has been made aware of this particular issue. #NowWeWait

Sucks cause I JUST trained my face to be able to be used in SD and now my plans are $hit on =/

SOLUTION INCOMING:
Taken from the colab of this particular notebook I'm using. It's creator replied with:

TheLastBen- "Maintainer"
"colab changed to python 3.9, I'll update the dependencies, it'll take some time"

Great news, thank you)

I wonder how long

still doesn't work

Any solution?

Sign up or log in to comment