Skip to content

buggy extension installation keeps forge from starting #9

@gitwittidbit

Description

@gitwittidbit

First of all, thank you for your work - this is the only forge installation I got to work.

After initially successfully installing forge, I went and installed a couple of extension through the GUI. The way I understand, they don't get installed immediately but only when the server restarts.

Now when I (re)start the container, forge tries to install the extension and then throws this error:

*** Error running install.py for extension /workspace/stable-diffusion-webui-forge/extensions/sd-face-editor. *** Command: "/opt/environments/python/forge/bin/python" "/workspace/stable-diffusion-webui-forge/extensions/sd-face-editor/install.py" *** Error code: 1 *** stderr: Traceback (most recent call last): *** File "/workspace/stable-diffusion-webui-forge/extensions/sd-face-editor/install.py", line 2, in <module> *** from face_editor.io.util import load_classes_from_directory *** File "/workspace/stable-diffusion-webui-forge/extensions/sd-face-editor/face_editor/io/util.py", line 6, in <module> *** import modules.scripts as scripts *** File "/workspace/stable-diffusion-webui-forge/modules/scripts.py", line 8, in <module> *** import gradio as gr *** File "/opt/environments/python/forge/lib/python3.10/site-packages/gradio/__init__.py", line 3, in <module> *** import gradio.components as components *** File "/opt/environments/python/forge/lib/python3.10/site-packages/gradio/components/__init__.py", line 1, in <module> *** from gradio.components.annotated_image import AnnotatedImage *** File "/opt/environments/python/forge/lib/python3.10/site-packages/gradio/components/annotated_image.py", line 13, in <module> *** from gradio.components.base import IOComponent, _Keywords *** File "/opt/environments/python/forge/lib/python3.10/site-packages/gradio/components/base.py", line 20, in <module> *** from fastapi import UploadFile *** File "/opt/environments/python/forge/lib/python3.10/site-packages/fastapi/__init__.py", line 7, in <module> *** from .applications import FastAPI as FastAPI *** File "/opt/environments/python/forge/lib/python3.10/site-packages/fastapi/applications.py", line 15, in <module> *** from fastapi import routing *** File "/opt/environments/python/forge/lib/python3.10/site-packages/fastapi/routing.py", line 22, in <module> *** from fastapi import params *** File "/opt/environments/python/forge/lib/python3.10/site-packages/fastapi/params.py", line 4, in <module> *** from pydantic.fields import FieldInfo, Undefined *** ImportError: cannot import name 'Undefined' from 'pydantic.fields' (/opt/environments/python/forge/lib/python3.10/site-packages/pydantic/fields.py)

And forge does not start.

I tried entering the container and manually removing the extension. But it somehow keeps coming back.

Is there a way to remove this (not yet installed but over and over again trying to install) extension somehow to get forge going again?

Thanks

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions