volotat / SD-CN-Animation

This script allows to automate video stylization task using StableDiffusion and ControlNet.
MIT License
806 stars 61 forks source link

ModuleNotFoundError: No module named 'core' #91

Closed xkfx closed 1 year ago

xkfx commented 1 year ago

Error loading script: base_ui.py Traceback (most recent call last): File "/home/ubuntu/stable-diffusion-webui/modules/scripts.py", line 256, in load_scripts script_module = script_loading.load_module(scriptfile.path) File "/home/ubuntu/stable-diffusion-webui/modules/script_loading.py", line 11, in load_module module_spec.loader.exec_module(module) File "", line 848, in exec_module File "", line 219, in _call_with_frames_removed File "/home/ubuntu/stable-diffusion-webui/extensions/SD-CN-Animation-main/scripts/base_ui.py", line 30, in from core import vid2vid, txt2vid, utils ModuleNotFoundError: No module named 'core'

volotat commented 1 year ago

Try to restart the webui.

xkfx commented 1 year ago

I was able to resolve the issue by renaming 'SD-CN-Animation-main' to 'SD-CN-Animation' using the mv command. The problem might have arisen due to my unconventional installation method, where I directly cloned the repository under 'stable-diffusion-webui/extensions/'. However, I would like to point out that I did not encounter this issue when installing other plugins using the same method. It could be beneficial if the author considered refining the path rules to accommodate for this approach.

volotat commented 1 year ago

I think I figured it out. There are some unnecessary sys.path extensions. It will be fixed by the next update.

Edit: should be fixed now.