Replies: 6 comments
-
Please use python 3.10.6 as recommended by A1111 main repo. |
Beta Was this translation helpful? Give feedback.
-
Rest of pydantic errors are probably caused by pydantic version issue. Make sure you have pydantic v1 installed. |
Beta Was this translation helpful? Give feedback.
-
I have the same issue and am on pydantic 1.8.2 and Python 3.10.11 - Any other suggestions? |
Beta Was this translation helpful? Give feedback.
-
same issue |
Beta Was this translation helpful? Give feedback.
-
same issue |
Beta Was this translation helpful? Give feedback.
-
same issue |
Beta Was this translation helpful? Give feedback.
-
After git clone when i restart the Automatic1111 webUI this error occurs.
Installing sd-webui-controlnet requirement: changing opencv-python version from 4.10.0.82 to 4.8.0
*** Error loading script: api.py
Traceback (most recent call last):
File "/home/studio-lab-user/stable-diffusion-webui/modules/scripts.py", line 508, in load_scripts
script_module = script_loading.load_module(scriptfile.path)
File "/home/studio-lab-user/stable-diffusion-webui/modules/script_loading.py", line 13, in load_module
module_spec.loader.exec_module(module)
File "", line 850, in exec_module
File "", line 228, in _call_with_frames_removed
File "/home/studio-lab-user/stable-diffusion-webui/extensions/sd-webui-controlnet/scripts/api.py", line 17, in
from scripts import external_code, global_state
File "/home/studio-lab-user/stable-diffusion-webui/extensions/sd-webui-controlnet/scripts/external_code.py", line 1, in
from internal_controlnet.external_code import * # noqa: F403
File "/home/studio-lab-user/stable-diffusion-webui/extensions/sd-webui-controlnet/internal_controlnet/external_code.py", line 7, in
from .args import ControlNetUnit
File "/home/studio-lab-user/stable-diffusion-webui/extensions/sd-webui-controlnet/internal_controlnet/args.py", line 52, in
class ControlNetUnit(BaseModel):
File "pydantic/main.py", line 178, in pydantic.main.ModelMetaclass.new
File "pydantic/typing.py", line 400, in pydantic.typing.resolve_annotations
File "/home/studio-lab-user/.conda/envs/studiolab/lib/python3.9/typing.py", line 292, in _eval_type
return t._evaluate(globalns, localns, recursive_guard)
File "/home/studio-lab-user/.conda/envs/studiolab/lib/python3.9/typing.py", line 554, in _evaluate
eval(self.forward_code, globalns, localns),
File "", line 1, in
TypeError: unsupported operand type(s) for |: 'type' and 'type'
*** Error loading script: batch_hijack.py
Traceback (most recent call last):
File "/home/studio-lab-user/stable-diffusion-webui/modules/scripts.py", line 508, in load_scripts
script_module = script_loading.load_module(scriptfile.path)
File "/home/studio-lab-user/stable-diffusion-webui/modules/script_loading.py", line 13, in load_module
module_spec.loader.exec_module(module)
File "", line 850, in exec_module
File "", line 228, in _call_with_frames_removed
File "/home/studio-lab-user/stable-diffusion-webui/extensions/sd-webui-controlnet/scripts/batch_hijack.py", line 5, in
from scripts import external_code
File "/home/studio-lab-user/stable-diffusion-webui/extensions/sd-webui-controlnet/scripts/external_code.py", line 1, in
from internal_controlnet.external_code import * # noqa: F403
File "/home/studio-lab-user/stable-diffusion-webui/extensions/sd-webui-controlnet/internal_controlnet/external_code.py", line 7, in
from .args import ControlNetUnit
File "/home/studio-lab-user/stable-diffusion-webui/extensions/sd-webui-controlnet/internal_controlnet/args.py", line 52, in
class ControlNetUnit(BaseModel):
File "/home/studio-lab-user/stable-diffusion-webui/extensions/sd-webui-controlnet/internal_controlnet/args.py", line 80, in ControlNetUnit
def check_module(cls, value: str) -> str:
File "pydantic/class_validators.py", line 93, in pydantic.class_validators.validator.dec
File "pydantic/class_validators.py", line 156, in pydantic.class_validators._prepare_validator
pydantic.errors.ConfigError: duplicate validator function "internal_controlnet.args.ControlNetUnit.check_module"; if this is intended, set
allow_reuse=True
ControlNet preprocessor location: /home/studio-lab-user/stable-diffusion-webui/extensions/sd-webui-controlnet/annotator/downloads
*** Error loading script: controlnet.py
Traceback (most recent call last):
File "/home/studio-lab-user/stable-diffusion-webui/modules/scripts.py", line 508, in load_scripts
script_module = script_loading.load_module(scriptfile.path)
File "/home/studio-lab-user/stable-diffusion-webui/modules/script_loading.py", line 13, in load_module
module_spec.loader.exec_module(module)
File "", line 850, in exec_module
File "", line 228, in _call_with_frames_removed
File "/home/studio-lab-user/stable-diffusion-webui/extensions/sd-webui-controlnet/scripts/controlnet.py", line 18, in
from internal_controlnet.external_code import ControlNetUnit
File "/home/studio-lab-user/stable-diffusion-webui/extensions/sd-webui-controlnet/internal_controlnet/external_code.py", line 7, in
from .args import ControlNetUnit
File "/home/studio-lab-user/stable-diffusion-webui/extensions/sd-webui-controlnet/internal_controlnet/args.py", line 52, in
class ControlNetUnit(BaseModel):
File "/home/studio-lab-user/stable-diffusion-webui/extensions/sd-webui-controlnet/internal_controlnet/args.py", line 80, in ControlNetUnit
def check_module(cls, value: str) -> str:
File "pydantic/class_validators.py", line 93, in pydantic.class_validators.validator.dec
File "pydantic/class_validators.py", line 156, in pydantic.class_validators._prepare_validator
pydantic.errors.ConfigError: duplicate validator function "internal_controlnet.args.ControlNetUnit.check_module"; if this is intended, set
allow_reuse=True
*** Error loading script: external_code.py
Traceback (most recent call last):
File "/home/studio-lab-user/stable-diffusion-webui/modules/scripts.py", line 508, in load_scripts
script_module = script_loading.load_module(scriptfile.path)
File "/home/studio-lab-user/stable-diffusion-webui/modules/script_loading.py", line 13, in load_module
module_spec.loader.exec_module(module)
File "", line 850, in exec_module
File "", line 228, in _call_with_frames_removed
File "/home/studio-lab-user/stable-diffusion-webui/extensions/sd-webui-controlnet/scripts/external_code.py", line 1, in
from internal_controlnet.external_code import * # noqa: F403
File "/home/studio-lab-user/stable-diffusion-webui/extensions/sd-webui-controlnet/internal_controlnet/external_code.py", line 7, in
from .args import ControlNetUnit
File "/home/studio-lab-user/stable-diffusion-webui/extensions/sd-webui-controlnet/internal_controlnet/args.py", line 52, in
class ControlNetUnit(BaseModel):
File "/home/studio-lab-user/stable-diffusion-webui/extensions/sd-webui-controlnet/internal_controlnet/args.py", line 80, in ControlNetUnit
def check_module(cls, value: str) -> str:
File "pydantic/class_validators.py", line 93, in pydantic.class_validators.validator.dec
File "pydantic/class_validators.py", line 156, in pydantic.class_validators._prepare_validator
pydantic.errors.ConfigError: duplicate validator function "internal_controlnet.args.ControlNetUnit.check_module"; if this is intended, set
allow_reuse=True
*** Error loading script: infotext.py
Traceback (most recent call last):
File "/home/studio-lab-user/stable-diffusion-webui/modules/scripts.py", line 508, in load_scripts
script_module = script_loading.load_module(scriptfile.path)
File "/home/studio-lab-user/stable-diffusion-webui/modules/script_loading.py", line 13, in load_module
module_spec.loader.exec_module(module)
File "", line 850, in exec_module
File "", line 228, in _call_with_frames_removed
File "/home/studio-lab-user/stable-diffusion-webui/extensions/sd-webui-controlnet/scripts/infotext.py", line 7, in
from internal_controlnet.external_code import ControlNetUnit
File "/home/studio-lab-user/stable-diffusion-webui/extensions/sd-webui-controlnet/internal_controlnet/external_code.py", line 7, in
from .args import ControlNetUnit
File "/home/studio-lab-user/stable-diffusion-webui/extensions/sd-webui-controlnet/internal_controlnet/args.py", line 52, in
class ControlNetUnit(BaseModel):
File "/home/studio-lab-user/stable-diffusion-webui/extensions/sd-webui-controlnet/internal_controlnet/args.py", line 80, in ControlNetUnit
def check_module(cls, value: str) -> str:
File "pydantic/class_validators.py", line 93, in pydantic.class_validators.validator.dec
File "pydantic/class_validators.py", line 156, in pydantic.class_validators._prepare_validator
pydantic.errors.ConfigError: duplicate validator function "internal_controlnet.args.ControlNetUnit.check_module"; if this is intended, set
allow_reuse=True
*** Error loading script: xyz_grid_support.py
Traceback (most recent call last):
File "/home/studio-lab-user/stable-diffusion-webui/modules/scripts.py", line 508, in load_scripts
script_module = script_loading.load_module(scriptfile.path)
File "/home/studio-lab-user/stable-diffusion-webui/modules/script_loading.py", line 13, in load_module
module_spec.loader.exec_module(module)
File "", line 850, in exec_module
File "", line 228, in _call_with_frames_removed
File "/home/studio-lab-user/stable-diffusion-webui/extensions/sd-webui-controlnet/scripts/xyz_grid_support.py", line 8, in
from scripts.external_code import ResizeMode, ControlMode
File "/home/studio-lab-user/stable-diffusion-webui/extensions/sd-webui-controlnet/scripts/external_code.py", line 1, in
from internal_controlnet.external_code import * # noqa: F403
File "/home/studio-lab-user/stable-diffusion-webui/extensions/sd-webui-controlnet/internal_controlnet/external_code.py", line 7, in
from .args import ControlNetUnit
File "/home/studio-lab-user/stable-diffusion-webui/extensions/sd-webui-controlnet/internal_controlnet/args.py", line 52, in
class ControlNetUnit(BaseModel):
File "/home/studio-lab-user/stable-diffusion-webui/extensions/sd-webui-controlnet/internal_controlnet/args.py", line 80, in ControlNetUnit
def check_module(cls, value: str) -> str:
File "pydantic/class_validators.py", line 93, in pydantic.class_validators.validator.dec
File "pydantic/class_validators.py", line 156, in pydantic.class_validators._prepare_validator
pydantic.errors.ConfigError: duplicate validator function "internal_controlnet.args.ControlNetUnit.check_module"; if this is intended, set
allow_reuse=True
Loading weights [6ce0161689] from /home/studio-lab-user/stable-diffusion-webui/models/Stable-diffusion/v1-5-pruned-emaonly.safetensors
Running on local URL: http://0.0.0.0:7860
Creating model from config: /home/studio-lab-user/stable-diffusion-webui/configs/v1-inference.yaml
/home/studio-lab-user/.conda/envs/studiolab/lib/python3.9/site-packages/huggingface_hub/file_download.py:1132: FutureWarning:
resume_download
is deprecated and will be removed in version 1.0.0. Downloads always resume when possible. If you want to force a new download, useforce_download=True
.warnings.warn(
Beta Was this translation helpful? Give feedback.
All reactions