安装sd-webui-inpaint-anything插件,在安装diffusers,无法启动[阿里云函数计算]

Error loading script: !adetailer.py

Traceback (most recent call last):

  File "/stable-diffusion-webui/modules/scripts.py", line 319, in load_scripts

    script_module = script_loading.load_module(scriptfile.path)

  File "/stable-diffusion-webui/modules/script_loading.py", line 10, in load_module

    module_spec.loader.exec_module(module)

  File "", line 883, in exec_module

  File "", line 241, in _call_with_frames_removed

  File "/stable-diffusion-webui/extensions/adetailer/scripts/!adetailer.py", line 20, in 

    from adetailer import (

  File "/stable-diffusion-webui/extensions/adetailer/adetailer/__init__.py", line 2, in 

    from .args import AD_ENABLE, ALL_ARGS, ADetailerArgs, EnableChecker

  File "/stable-diffusion-webui/extensions/adetailer/adetailer/args.py", line 39, in 

    class ADetailerArgs(BaseModel, extra=Extra.forbid):

  File "/mnt/auto/sd/python/pydantic/_internal/_model_construction.py", line 177, in __new__

    set_model_fields(cls, bases, config_wrapper, types_namespace)

  File "/mnt/auto/sd/python/pydantic/_internal/_model_construction.py", line 405, in set_model_fields

    fields, class_vars = collect_model_fields(cls, bases, config_wrapper, types_namespace, typevars_map=typevars_map)

  File "/mnt/auto/sd/python/pydantic/_internal/_fields.py", line 98, in collect_model_fields

    type_hints = get_cls_type_hints_lenient(cls, types_namespace)

  File "/mnt/auto/sd/python/pydantic/_internal/_typing_extra.py", line 212, in get_cls_type_hints_lenient

    hints[name] = eval_type_lenient(value, globalns, localns)

  File "/mnt/auto/sd/python/pydantic/_internal/_typing_extra.py", line 224, in eval_type_lenient

    return typing._eval_type(value, globalns, localns)  # type: ignore

  File "/usr/local/lib/python3.10/typing.py", line 327, in _eval_type

    return t._evaluate(globalns, localns, recursive_guard)

  File "/usr/local/lib/python3.10/typing.py", line 694, in _evaluate

    eval(self.__forward_code__, globalns, localns),

  File "", line 1, in 

TypeError: constr() got an unexpected keyword argument 'regex'


Error loading script: api.py

Traceback (most recent call last):

  File "/stable-diffusion-webui/modules/scripts.py", line 319, in load_scripts

    script_module = script_loading.load_module(scriptfile.path)

  File "/stable-diffusion-webui/modules/script_loading.py", line 10, in load_module

    module_spec.loader.exec_module(module)

  File "", line 883, in exec_module

  File "", line 241, in _call_with_frames_removed

  File "/stable-diffusion-webui/extensions/sd-webui-controlnet/scripts/api.py", line 8, in 

    from modules.api.models import *

  File "/stable-diffusion-webui/modules/api/models.py", line 112, in 

    ).generate_model()

  File "/stable-diffusion-webui/modules/api/models.py", line 97, in generate_model

    DynamicModel.__config__.allow_population_by_field_name = True

  File "/mnt/auto/sd/python/pydantic/_internal/_model_construction.py", line 210, in __getattr__

    raise AttributeError(item)

AttributeError: __config__

* Error loading script: batch_hijack.py

Traceback (most recent call last):

  File "/stable-diffusion-webui/modules/scripts.py", line 319, in load_scripts

    script_module = script_loading.load_module(scriptfile.path)

  File "/stable-diffusion-webui/modules/script_loading.py", line 10, in load_module

    module_spec.loader.exec_module(module)

  File "", line 883, in exec_module

  File "", line 241, in _call_with_frames_removed

  File "/stable-diffusion-webui/extensions/sd-webui-controlnet/scripts/batch_hijack.py", line 7, in 

    from scripts import external_code

  File "/stable-diffusion-webui/extensions/sd-webui-controlnet/scripts/external_code.py", line 1, in 

    from internal_controlnet.external_code import *


  File "/stable-diffusion-webui/extensions/sd-webui-controlnet/internal_controlnet/external_code.py", line 9, in 

    from modules.api import api

  File "/stable-diffusion-webui/modules/api/api.py", line 19, in 

    from modules.api import models

  File "/stable-diffusion-webui/modules/api/models.py", line 112, in 

    ).generate_model()

  File "/stable-diffusion-webui/modules/api/models.py", line 97, in generate_model

    DynamicModel.__config__.allow_population_by_field_name = True

  File "/mnt/auto/sd/python/pydantic/_internal/_model_construction.py", line 210, in __getattr__

    raise AttributeError(item)

AttributeError: __config__

* Error loading script: controlnet.py

Traceback (most recent call last):

  File "/stable-diffusion-webui/modules/scripts.py", line 319, in load_scripts

    script_module = script_loading.load_module(scriptfile.path)

  File "/stable-diffusion-webui/modules/script_loading.py", line 10, in load_module

    module_spec.loader.exec_module(module)

  File "", line 883, in exec_module

  File "", line 241, in _call_with_frames_removed

  File "/stable-diffusion-webui/extensions/sd-webui-controlnet/scripts/controlnet.py", line 13, in 

    from scripts import global_state, hook, external_code, processor, batch_hijack, controlnet_version, utils

  File "/stable-diffusion-webui/extensions/sd-webui-controlnet/scripts/external_code.py", line 1, in 

    from internal_controlnet.external_code import *

  File "/stable-diffusion-webui/extensions/sd-webui-controlnet/internal_controlnet/external_code.py", line 9, in 

    from modules.api import api

  File "/stable-diffusion-webui/modules/api/api.py", line 19, in 

    from modules.api import models

  File "/stable-diffusion-webui/modules/api/models.py", line 112, in 

    ).generate_model()

  File "/stable-diffusion-webui/modules/api/models.py", line 97, in generate_model

    DynamicModel.__config__.allow_population_by_field_name = True

  File "/mnt/auto/sd/python/pydantic/_internal/_model_construction.py", line 210, in __getattr__

    raise AttributeError(item)

AttributeError: __config__

c-650e6370-79bc69850f6646efb8fc2023-09-23 12:03:462023-09-23 04:03:46,016 – ControlNet – INFO – ControlNet v1.1.238


Error loading script: external_code.py

Traceback (most recent call last):

  File "/stable-diffusion-webui/modules/scripts.py", line 319, in load_scripts

    script_module = script_loading.load_module(scriptfile.path)

  File "/stable-diffusion-webui/modules/script_loading.py", line 10, in load_module

    module_spec.loader.exec_module(module)

  File "", line 883, in exec_module

  File "", line 241, in _call_with_frames_removed

  File "/stable-diffusion-webui/extensions/sd-webui-controlnet/scripts/external_code.py", line 1, in 

    from internal_controlnet.external_code import *

  File "/stable-diffusion-webui/extensions/sd-webui-controlnet/internal_controlnet/external_code.py", line 9, in 

    from modules.api import api

  File "/stable-diffusion-webui/modules/api/api.py", line 19, in 

    from modules.api import models

  File "/stable-diffusion-webui/modules/api/models.py", line 112, in 

    ).generate_model()

  File "/stable-diffusion-webui/modules/api/models.py", line 97, in generate_model

    DynamicModel.__config__.allow_population_by_field_name = True

  File "/mnt/auto/sd/python/pydantic/_internal/_model_construction.py", line 210, in __getattr__

    raise AttributeError(item)

AttributeError: __config__

* Error loading script: xyz_grid_support.py

Traceback (most recent call last):

  File "/stable-diffusion-webui/modules/scripts.py", line 319, in load_scripts

    script_module = script_loading.load_module(scriptfile.path)

  File "/stable-diffusion-webui/modules/script_loading.py", line 10, in load_module

    module_spec.loader.exec_module(module)

  File "", line 883, in exec_module

  File "", line 241, in _call_with_frames_removed

  File "/stable-diffusion-webui/extensions/sd-webui-controlnet/scripts/xyz_grid_support.py", line 8, in 

    from scripts.external_code import ResizeMode, ControlMode

  File "/stable-diffusion-webui/extensions/sd-webui-controlnet/scripts/external_code.py", line 1, in 

    from internal_controlnet.external_code import *

  File "/stable-diffusion-webui/extensions/sd-webui-controlnet/internal_controlnet/external_code.py", line 9, in 

    from modules.api import api

  File "/stable-diffusion-webui/modules/api/api.py", line 19, in 

    from modules.api import models

  File "/stable-diffusion-webui/modules/api/models.py", line 112, in 

    ).generate_model()

  File "/stable-diffusion-webui/modules/api/models.py", line 97, in generate_model

    DynamicModel.__config__.allow_population_by_field_name = True

  File "/mnt/auto/sd/python/pydantic/_internal/_model_construction.py", line 210, in __getattr__

    raise AttributeError(item)

AttributeError: __config__

出现以上异常,请问下要怎么解决?

「点点赞赏,手留余香」

    还没有人赞赏,快来当第一个赞赏的人吧!
=====这是一个广告位,招租中,联系qq 78315851====