Skip to content
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

ModuleNotFoundError: No module named 'scripts.physton_prompt' #6

Open
jason571 opened this issue Dec 16, 2023 · 1 comment
Open

ModuleNotFoundError: No module named 'scripts.physton_prompt' #6

jason571 opened this issue Dec 16, 2023 · 1 comment

Comments

@jason571
Copy link

在stable-diffusion-webui中使用,本地scripts.physton_prompt.storage提示找不到,在scripts目录有多个module 会出现这个问题
尝试在on_app_started.py中增加下面路径也不能解决,求解
使用在WSL2

import sys
sys.path.append('/mnt/p/home/flyang/stable-diffusion-webui/extensions/sd-webui-prompt-all-in-one/scripts/physton_prompt')

*** Error loading script: on_app_started.py
Traceback (most recent call last):
File "/mnt/p/home/flyang/stable-diffusion-webui/modules/scripts.py", line 381, in load_scripts
script_module = script_loading.load_module(scriptfile.path)
File "/mnt/p/home/flyang/stable-diffusion-webui/modules/script_loading.py", line 12, in load_module
module_spec.loader.exec_module(module)
File "", line 883, in exec_module
File "", line 241, in _call_with_frames_removed
File "/mnt/p/home/flyang/stable-diffusion-webui/extensions/sd-webui-prompt-all-in-one/scripts/on_app_started.py", line 10, in
from scripts.physton_prompt.storage import Storage
ModuleNotFoundError: No module named 'scripts.physton_prompt'

@Physton
Copy link
Owner

Physton commented Dec 16, 2023

尝试在 scripts/physton_prompt 文件夹中创建一个空文件:__init__.py,看能否解决。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants