-
Notifications
You must be signed in to change notification settings - Fork 26.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Bug]: #13208
Comments
same here. Can any one give some hints for that? Really annoying |
AttributeError: partially initialized module 'modules.sysinfo' has no attribute 'format_exception' (most likely due to a circular import) |
Great. It works well. Thanks a lot. |
Is there an existing issue for this?
What happened?
Problem upgrading to version 1.6.0
Steps to reproduce the problem
Problem upgrading to version 1.6.0
What should have happened?
Traceback (most recent call last):
File "/root/autodl-tmp/stable-diffusion-webui/modules/launch_utils.py", line 231, in run_extension_installer
stdout = run(f'"{python}" "{path_installer}"', errdesc=f"Error running install.py for extension {extension_dir}", custom_env=env).strip()
File "/root/autodl-tmp/stable-diffusion-webui/modules/launch_utils.py", line 115, in run
raise RuntimeError("\n".join(error_bits))
RuntimeError: Error running install.py for extension /root/autodl-tmp/stable-diffusion-webui/extensions/sd-face-editor.
Command: "/root/miniconda3/envs/xl_env/bin/python" "/root/autodl-tmp/stable-diffusion-webui/extensions/sd-face-editor/install.py"
Error code: 1
stderr: *** Error running preload() for /root/autodl-tmp/stable-diffusion-webui/extensions/stable-diffusion-webui-wd14-tagger/preload.py
Traceback (most recent call last):
File "/root/autodl-tmp/stable-diffusion-webui/modules/script_loading.py", line 26, in preload_extensions
module = load_module(preload_script)
File "/root/autodl-tmp/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 "/root/autodl-tmp/stable-diffusion-webui/extensions/stable-diffusion-webui-wd14-tagger/preload.py", line 4, in
from modules.shared import models_path
ImportError: cannot import name 'models_path' from partially initialized module 'modules.shared' (most likely due to a circular import) (/root/autodl-tmp/stable-diffusion-webui/modules/shared.py)
/root/miniconda3/envs/xl_env/lib/python3.10/site-packages/pytorch_lightning/utilities/distributed.py:258: LightningDeprecationWarning:
pytorch_lightning.utilities.distributed.rank_zero_only
has been deprecated in v1.8.1 and will be removed in v2.0.0. You can import it frompytorch_lightning.utilities
instead.rank_zero_deprecation(
Traceback (most recent call last):
File "/root/autodl-tmp/stable-diffusion-webui/extensions/sd-face-editor/install.py", line 17, in
if shared.opts.data.get("face_editor_additional_components", None) is not None:
AttributeError: 'NoneType' object has no attribute 'data'
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/root/autodl-tmp/stable-diffusion-webui/modules/script_loading.py", line 26, in preload_extensions
module = load_module(preload_script)
File "/root/autodl-tmp/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 "/root/autodl-tmp/stable-diffusion-webui/extensions/stable-diffusion-webui-wd14-tagger/preload.py", line 4, in
from modules.shared import models_path
ImportError: cannot import name 'models_path' from partially initialized module 'modules.shared' (most likely due to a circular import) (/root/autodl-tmp/stable-diffusion-webui/modules/shared.py)
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/root/autodl-tmp/stable-diffusion-webui/launch.py", line 48, in
main()
File "/root/autodl-tmp/stable-diffusion-webui/launch.py", line 39, in main
prepare_environment()
File "/root/autodl-tmp/stable-diffusion-webui/modules/launch_utils.py", line 400, in prepare_environment
run_extensions_installers(settings_file=args.ui_settings_file)
File "/root/autodl-tmp/stable-diffusion-webui/modules/launch_utils.py", line 268, in run_extensions_installers
run_extension_installer(path)
File "/root/autodl-tmp/stable-diffusion-webui/modules/launch_utils.py", line 235, in run_extension_installer
errors.report(str(e))
File "/root/autodl-tmp/stable-diffusion-webui/modules/errors.py", line 29, in report
record_exception()
File "/root/autodl-tmp/stable-diffusion-webui/modules/errors.py", line 17, in record_exception
from modules import sysinfo
File "/root/autodl-tmp/stable-diffusion-webui/modules/sysinfo.py", line 13, in
from modules import paths_internal, timer, shared, extensions, errors
File "/root/autodl-tmp/stable-diffusion-webui/modules/shared.py", line 5, in
from modules import shared_cmd_options, shared_gradio_themes, options, shared_items, sd_models_types
File "/root/autodl-tmp/stable-diffusion-webui/modules/shared_cmd_options.py", line 9, in
script_loading.preload_extensions(extensions_dir, parser, extension_list=launch.list_extensions(launch.args.ui_settings_file))
File "/root/autodl-tmp/stable-diffusion-webui/modules/script_loading.py", line 31, in preload_extensions
errors.report(f"Error running preload() for {preload_script}", exc_info=True)
File "/root/autodl-tmp/stable-diffusion-webui/modules/errors.py", line 29, in report
record_exception()
File "/root/autodl-tmp/stable-diffusion-webui/modules/errors.py", line 18, in record_exception
exception_records.append(sysinfo.format_exception(e, tb))
AttributeError: partially initialized module 'modules.sysinfo' has no attribute 'format_exception' (most likely due to a circular import)
Sysinfo
Traceback (most recent call last):
File "/root/autodl-tmp/stable-diffusion-webui/modules/launch_utils.py", line 231, in run_extension_installer
stdout = run(f'"{python}" "{path_installer}"', errdesc=f"Error running install.py for extension {extension_dir}", custom_env=env).strip()
File "/root/autodl-tmp/stable-diffusion-webui/modules/launch_utils.py", line 115, in run
raise RuntimeError("\n".join(error_bits))
RuntimeError: Error running install.py for extension /root/autodl-tmp/stable-diffusion-webui/extensions/sd-face-editor.
Command: "/root/miniconda3/envs/xl_env/bin/python" "/root/autodl-tmp/stable-diffusion-webui/extensions/sd-face-editor/install.py"
Error code: 1
stderr: *** Error running preload() for /root/autodl-tmp/stable-diffusion-webui/extensions/stable-diffusion-webui-wd14-tagger/preload.py
Traceback (most recent call last):
File "/root/autodl-tmp/stable-diffusion-webui/modules/script_loading.py", line 26, in preload_extensions
module = load_module(preload_script)
File "/root/autodl-tmp/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 "/root/autodl-tmp/stable-diffusion-webui/extensions/stable-diffusion-webui-wd14-tagger/preload.py", line 4, in
from modules.shared import models_path
ImportError: cannot import name 'models_path' from partially initialized module 'modules.shared' (most likely due to a circular import) (/root/autodl-tmp/stable-diffusion-webui/modules/shared.py)
/root/miniconda3/envs/xl_env/lib/python3.10/site-packages/pytorch_lightning/utilities/distributed.py:258: LightningDeprecationWarning:
pytorch_lightning.utilities.distributed.rank_zero_only
has been deprecated in v1.8.1 and will be removed in v2.0.0. You can import it frompytorch_lightning.utilities
instead.rank_zero_deprecation(
Traceback (most recent call last):
File "/root/autodl-tmp/stable-diffusion-webui/extensions/sd-face-editor/install.py", line 17, in
if shared.opts.data.get("face_editor_additional_components", None) is not None:
AttributeError: 'NoneType' object has no attribute 'data'
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/root/autodl-tmp/stable-diffusion-webui/modules/script_loading.py", line 26, in preload_extensions
module = load_module(preload_script)
File "/root/autodl-tmp/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 "/root/autodl-tmp/stable-diffusion-webui/extensions/stable-diffusion-webui-wd14-tagger/preload.py", line 4, in
from modules.shared import models_path
ImportError: cannot import name 'models_path' from partially initialized module 'modules.shared' (most likely due to a circular import) (/root/autodl-tmp/stable-diffusion-webui/modules/shared.py)
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/root/autodl-tmp/stable-diffusion-webui/launch.py", line 48, in
main()
File "/root/autodl-tmp/stable-diffusion-webui/launch.py", line 39, in main
prepare_environment()
File "/root/autodl-tmp/stable-diffusion-webui/modules/launch_utils.py", line 400, in prepare_environment
run_extensions_installers(settings_file=args.ui_settings_file)
File "/root/autodl-tmp/stable-diffusion-webui/modules/launch_utils.py", line 268, in run_extensions_installers
run_extension_installer(path)
File "/root/autodl-tmp/stable-diffusion-webui/modules/launch_utils.py", line 235, in run_extension_installer
errors.report(str(e))
File "/root/autodl-tmp/stable-diffusion-webui/modules/errors.py", line 29, in report
record_exception()
File "/root/autodl-tmp/stable-diffusion-webui/modules/errors.py", line 17, in record_exception
from modules import sysinfo
File "/root/autodl-tmp/stable-diffusion-webui/modules/sysinfo.py", line 13, in
from modules import paths_internal, timer, shared, extensions, errors
File "/root/autodl-tmp/stable-diffusion-webui/modules/shared.py", line 5, in
from modules import shared_cmd_options, shared_gradio_themes, options, shared_items, sd_models_types
File "/root/autodl-tmp/stable-diffusion-webui/modules/shared_cmd_options.py", line 9, in
script_loading.preload_extensions(extensions_dir, parser, extension_list=launch.list_extensions(launch.args.ui_settings_file))
File "/root/autodl-tmp/stable-diffusion-webui/modules/script_loading.py", line 31, in preload_extensions
errors.report(f"Error running preload() for {preload_script}", exc_info=True)
File "/root/autodl-tmp/stable-diffusion-webui/modules/errors.py", line 29, in report
record_exception()
File "/root/autodl-tmp/stable-diffusion-webui/modules/errors.py", line 18, in record_exception
exception_records.append(sysinfo.format_exception(e, tb))
AttributeError: partially initialized module 'modules.sysinfo' has no attribute 'format_exception' (most likely due to a circular import)
What browsers do you use to access the UI ?
Google Chrome
Console logs
Additional information
No response
The text was updated successfully, but these errors were encountered: