Engineer-of-Stuff / stable-diffusion-paperspace

Jupyter notebooks for Paperspace.
The Unlicense
289 stars 110 forks source link

ModuleNotFoundError: No module named 'fastapi' #36

Closed start1002 closed 1 year ago

start1002 commented 1 year ago

I am a Chinese who does not speak English(And I don't know programming, I can't read code). I am sorry that I can only use software to translate. The problem is this. When I am using the notebook created on paperspace today, this prompt appears after running the first column under Launch the WebUI: /notebooks/stable-diffusion-webui Traceback (most recent call last): File "/notebooks/stable-diffusion-webui/webui.py", line 7, in from fastapi.middleware.cors import CORSMiddleware ModuleNotFoundError: No module named 'fastapi'

After deleting the notebook and reinstalling it, this prompt still pops up, how can I solve it? thanks. -9lddQ3o2-drgsZgT3cS115-jz

start1002 commented 1 year ago

Someone just opened a pull request https://github.com/Engineer-of-Stuff/stable-diffusion-paperspace/pull/34. In the meantime you can fix the typo by yourself, edit line 20 and add the missing "n" in enviroNment, like this: launch.prepare_environment()

Cyberes commented 1 year ago

Merged. Thanks for letting me know.