Closed Enferlain closed 1 year ago
Woah, actually, not fixed. For some reason, requirements_versions.txt is being totally ignored for me! When I tested, just about everything in the file is installed as the wrong version.
EDIT: Yeah, requirements_versions.txt is being ignored. I had to replace the line in requirements.txt with sed.
!sed -i 's/fastapi/fastapi==0.90.1/' requirements.txt
Replace the original REQS_FILE="requirements.txt" ๐๐ REQS_FILE="requirements_versions.txt"
Fix this problem ๏ผCannot add middleware after an application has started
The fundamental reason is the 0.91 version of Fastapi.
Fastapi 0.90.1 0.90 0.89 is ok.
Replace the original REQS_FILE="requirements.txt" ๐๐ REQS_FILE="requirements_versions.txt"
Don't do that. Requirements_versions.txt doesn't have all of the requirements in it.
Solution is to put fastapi version in both. I'll do that
Can you fix this? Or any manual workaround until it's fixed?
https://github.com/AUTOMATIC1111/stable-diffusion-webui/issues/7714
Traceback (most recent call last): File "launch.py", line 361, in
start()
File "launch.py", line 356, in start
webui.webui()
File "/content/stable-diffusion-webui/webui.py", line 232, in webui
app.add_middleware(GZipMiddleware, minimum_size=1000)
File "/usr/local/lib/python3.8/dist-packages/starlette/applications.py", line 135, in add_middleware
raise RuntimeError("Cannot add middleware after an application has started")
RuntimeError: Cannot add middleware after an application has started
^C