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

Error loading script: gelbooru_prompt.py #4

Open
Gangrelm opened this issue Apr 24, 2024 · 4 comments
Open

Error loading script: gelbooru_prompt.py #4

Gangrelm opened this issue Apr 24, 2024 · 4 comments

Comments

@Gangrelm
Copy link

Gelbooru prompt extension failed to load on my stable diffusion webui every time (v1.9.3)

I tried to install it in every way I know; manually, install from URL and Stability Matrix's extension list, Always the same error.

There's the console error message :

*** Error loading script: gelbooru_prompt.py
Traceback (most recent call last):
File "G:\Stability Matrix\Data\Packages\stable-diffusion-webui\modules\scripts.py", line 508, in load_scripts
script_module = script_loading.load_module(scriptfile.path)
File "G:\Stability Matrix\Data\Packages\stable-diffusion-webui\modules\script_loading.py", line 13, in load_module
module_spec.loader.exec_module(module)
File "", line 883, in exec_module
File "", line 241, in _call_with_frames_removed
File "G:\Stability Matrix\Data\Packages\stable-diffusion-webui\extensions\sd-webui-gelbooru-prompt\scripts\gelbooru_prompt.py", line 11, in
import bs4
ModuleNotFoundError: No module named 'bs4

@ElizaPottinger
Copy link

Easy fix:

Go the root folder where your SD tool is, like
E:\Stability Matrix\Data\Packages\Stable Diffusion WebUI Forge, it should have the VENV folder in it.
Open a CMD in that folder and type:
venv/\Scripts\activate
When you see: (base) (venv) PS E:\Stability Matrix\Data\Packages\Stable Diffusion WebUI Forge>, you know it is working.
Next step is:
pip install BeautifulSoup4
Once you have done it, it should run.
Untitled

@Gangrelm
Copy link
Author

How to open a CMD in folder ?

@ElizaPottinger
Copy link

you can either right click in the folder and choose open terminal or open the cmd normally and navigate to the folder with cd

@Gangrelm
Copy link
Author

"venv/\Scripts\activate" doesn't work.

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