sunnyark / civitai-shortcut

140 stars 13 forks source link

Error loading script: civitai_shortcut.py #14

Closed thejohnd0e closed 1 year ago

thejohnd0e commented 1 year ago

Civitai Helper: Get Custom Model Folder Civitai Helper: Load setting from: C:\a\stable-diffusion-webui\extensions\Stable-Diffusion-Webui-Civitai-Helper\setting.json Error loading script: civitai_shortcut.py Traceback (most recent call last): File "C:\a\stable-diffusion-webui\modules\scripts.py", line 248, in load_scripts script_module = script_loading.load_module(scriptfile.path) File "C:\a\stable-diffusion-webui\modules\script_loading.py", line 11, in load_module module_spec.loader.exec_module(module) File "", line 883, in exec_module File "", line 241, in _call_with_frames_removed File "C:\a\stable-diffusion-webui\extensions\civitai-shortcut\scripts\civitai_shortcut.py", line 11, in from scripts.civitai_manager_libs import classification_action File "C:\a\stable-diffusion-webui\extensions\civitai-shortcut\scripts\civitai_manager_libs\classification_action.py", line 9, in from . import sc_browser File "C:\a\stable-diffusion-webui\extensions\civitai-shortcut\scripts\civitai_manager_libs\sc_browser.py", line 34, in def on_sc_classification_list_select(evt: gr.SelectData,sc_types, sc_search, show_only_downloaded_sc): AttributeError: module 'gradio' has no attribute 'SelectData'

sunnyark commented 1 year ago

It seems that there is a version mismatch with Gradio. It appears that an update to SDUI is required.

thejohnd0e commented 1 year ago

It seems that there is a version mismatch with Gradio. It appears that an update to SDUI is required.

should i update gradio: 3.16.2? if yes, how i can?

sunnyark commented 1 year ago

The version displayed at the bottom of sdui should be higher. Please check the version at the bottom of sdui. screenshot 2023-04-20 150341

thejohnd0e commented 1 year ago

The version displayed at the bottom of sdui should be higher. Please check the version at the bottom of sdui. screenshot 2023-04-20 150341

now i have: image

sunnyark commented 1 year ago

Gradio version 3.23 or higher is required, which means you need to update SDUI. However, there may be other conflicts due to significant changes in SDUI. We recommend installing SDUI in a new location and testing it.

thejohnd0e commented 1 year ago

Gradio version 3.23 or higher is required, which means you need to update SDUI. However, there may be other conflicts due to significant changes in SDUI. We recommend installing SDUI in a new location and testing it.

I reinstalled SD and now everythink works, thank you!