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 "<frozen importlib._bootstrap_external>", line 883, in exec_module
File "<frozen importlib._bootstrap>", line 241, in _call_with_frames_removed
File "/stable-diffusion-webui/extensions/adetailer/scripts/!adetailer.py", line 20, in <module>
from adetailer import (
File "/stable-diffusion-webui/extensions/adetailer/adetailer/__init__.py", line 2, in <module>
from .args import AD_ENABLE, ALL_ARGS, ADetailerArgs, EnableChecker
File "/stable-diffusion-webui/extensions/adetailer/adetailer/args.py", line 39, in <module>
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 "<string>", line 1, in <module>
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 "<frozen importlib._bootstrap_external>", line 883, in exec_module
File "<frozen importlib._bootstrap>", line 241, in _call_with_frames_removed
File "/stable-diffusion-webui/extensions/sd-webui-controlnet/scripts/api.py", line 8, in <module>
from modules.api.models import *
File "/stable-diffusion-webui/modules/api/models.py", line 112, in <module>
).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 "<frozen importlib._bootstrap_external>", line 883, in exec_module
File "<frozen importlib._bootstrap>", line 241, in _call_with_frames_removed
File "/stable-diffusion-webui/extensions/sd-webui-controlnet/scripts/batch_hijack.py", line 7, in <module>
from scripts import external_code
File "/stable-diffusion-webui/extensions/sd-webui-controlnet/scripts/external_code.py", line 1, in <module>
from internal_controlnet.external_code import *
File "/stable-diffusion-webui/extensions/sd-webui-controlnet/internal_controlnet/external_code.py", line 9, in <module>
from modules.api import api
File "/stable-diffusion-webui/modules/api/api.py", line 19, in <module>
from modules.api import models
File "/stable-diffusion-webui/modules/api/models.py", line 112, in <module>
).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 "<frozen importlib._bootstrap_external>", line 883, in exec_module
File "<frozen importlib._bootstrap>", line 241, in _call_with_frames_removed
File "/stable-diffusion-webui/extensions/sd-webui-controlnet/scripts/controlnet.py", line 13, in <module>
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 <module>
from internal_controlnet.external_code import *
File "/stable-diffusion-webui/extensions/sd-webui-controlnet/internal_controlnet/external_code.py", line 9, in <module>
from modules.api import api
File "/stable-diffusion-webui/modules/api/api.py", line 19, in <module>
from modules.api import models
File "/stable-diffusion-webui/modules/api/models.py", line 112, in <module>
).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 "<frozen importlib._bootstrap_external>", line 883, in exec_module
File "<frozen importlib._bootstrap>", line 241, in _call_with_frames_removed
File "/stable-diffusion-webui/extensions/sd-webui-controlnet/scripts/external_code.py", line 1, in <module>
from internal_controlnet.external_code import *
File "/stable-diffusion-webui/extensions/sd-webui-controlnet/internal_controlnet/external_code.py", line 9, in <module>
from modules.api import api
File "/stable-diffusion-webui/modules/api/api.py", line 19, in <module>
from modules.api import models
File "/stable-diffusion-webui/modules/api/models.py", line 112, in <module>
).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 "<frozen importlib._bootstrap_external>", line 883, in exec_module
File "<frozen importlib._bootstrap>", line 241, in _call_with_frames_removed
File "/stable-diffusion-webui/extensions/sd-webui-controlnet/scripts/xyz_grid_support.py", line 8, in <module>
from scripts.external_code import ResizeMode, ControlMode
File "/stable-diffusion-webui/extensions/sd-webui-controlnet/scripts/external_code.py", line 1, in <module>
from internal_controlnet.external_code import *
File "/stable-diffusion-webui/extensions/sd-webui-controlnet/internal_controlnet/external_code.py", line 9, in <module>
from modules.api import api
File "/stable-diffusion-webui/modules/api/api.py", line 19, in <module>
from modules.api import models
File "/stable-diffusion-webui/modules/api/models.py", line 112, in <module>
).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__
出现以上异常,请问下要怎么解决?
版权声明:本文内容由阿里云实名注册用户自发贡献,版权归原作者所有,阿里云开发者社区不拥有其著作权,亦不承担相应法律责任。具体规则请查看《阿里云开发者社区用户服务协议》和《阿里云开发者社区知识产权保护指引》。如果您发现本社区中有涉嫌抄袭的内容,填写侵权投诉表单进行举报,一经查实,本社区将立刻删除涉嫌侵权内容。