Comments (21)
Trying to install and getting stuck in a module not found loop.
System info: Windows 11 Pro 64 bit 21H2 22000.856
I have a fresh anaconda install from a few days ago.
git4windows installed
I had the previous model installed elsewhere
I already have the full version of anaconda installed, made sure that the script locations match the paths in webui. I followed instructions closely but every time i try and run webui i get stuck in an error loop:
Traceback (most recent call last):
File "C:\Users\heart\Desktop\DEV\stable-diffusion-main\stable-diffusion-main\scripts\webui.py", line 2, in
import gradio as gr
ModuleNotFoundError: No module named 'gradio'
Relauncher: Process is ending. Relaunching in 0.5s...
I have tried 'pip install gradio' before running it, this didnt help either.
help!!
my bad feel free to close my other issue reposting here
from sygil-webui.
@heartlocket post all the requested information
from sygil-webui.
Run webuildm.cmd instead of webui.cmd and see if that works.
Else, did you change your environment.yaml's first line from ldm to something else?
If so, that's a step that should be removed from the rentry instructions.
For now, edit the texts in both in webui.cmd and ldm.cmd and change any mention of ldo or ldm there to the word you changed in environment.yaml
from sygil-webui.
and ldm.cmd
Is it possible people are ignoring the instructions and trying to mix the shortcut and webui.cmd?
The shortcut (and ldm.cmd) is for ldm, webui.cmd is ldo, webuildm.cmd is ldm
Like you and I have already said, it seems likely that this issue is due to the instruction to change the environment.yaml, combined with the old guides still existing, and certain people's inability to read and follow the instructions
Some people could be 'updating' by copying the files from hlky/stable-diffusion to the directory they had previously used
Alternatively, considering at least 2 (or 1 if its the same person) is having the issue with Windows 11, that it's a Windows 11 issue
Honestly it's impossible to tell because the people having issues all seem to be completely incapable of following instructions, and won't provide all the information requested
from sygil-webui.
It could be possible. I remember another guide had the environment set to ldx or lda.
We should ask what environment is installed on their system (shown in the env path in their condabin)
from sygil-webui.
I was able to fix it with a fresh conda install. So I don't think its windows 11. I must have missed something, but no idea what it is. sorry~!
from sygil-webui.
Some user was running webui.cmd
from conda, so that's another possible fix for anyone else, just double click it in the folder, or run it from cmd/powershell (I asked for this way for debugging because it would show all the output easier, and the output is still accessible - if the .cmd were to unexpectedly close the output is gone)
Glad to hear it's fixed though
from sygil-webui.
Thanks!
from sygil-webui.
Here are the following changes that I needed to make to the yaml to get the WebUI to work. I hope others will find this helpful. I added gradio and pynvml to the pips and an -e git+https://github.com/hlky/k-diffusion-sd#egg=k_diffusion`
removed to avoid confusion
from sygil-webui.
You needed to just use the environment.yaml, you must have been using an old repo, it already has all of that, and gfpgan, you're missing gfpgan from that.
I've removed that part of your comment to avoid confusion
from sygil-webui.
from sygil-webui.
you can't use webui.py with that repo, this is a fork that has made several changes to the environment.yaml to enable support for the new features added
Remove any old environment with conda env remove -n also just delete any stable-diffusion folders, dont forget to move the model.ckpt out beforehand otherwise you'll have to download it again, then start following the guide again from scratch
i'll ask the guide maintainer to clarify all of this in the guide to try and prevent these kind of issues occurring
from sygil-webui.
from sygil-webui.
Like I said you didn't need to change environment.yaml, if you downloaded stable-diffusion from hlky/stable-diffusion it already has everything required
hlky/stable-diffusion-webui repo specifically is for the development of the webui and changes are synced to hlky/stable-diffusion soon after being pushed here, a small delay allows for any bug fixes that are found after a push
i have asked the guide maintainer to not link directly to this repo because it's mainly for developers and evidently is causing issues where people think they can drop webui.py from hlky/stable-diffusion-webui in anywhere and expect it to work (and also claim they followed the instructions to the letter, conveniently leaving out the part where they didn't)
from sygil-webui.
from sygil-webui.
I now know what in my case was the problem You have to type in "conda activate ldo" that fixes the whole problem.
from sygil-webui.
@hlky thank you for your help last night, I'm making sure to share the information with folks in the discord when they're running into the same issues as I, to be sure to use your stable-diffusion fork repo not this one.
from sygil-webui.
i too have the issue. I have used latest version and lmo change in the file.
from sygil-webui.
I just solved this problem on my own machine (Windows 10 Pro 20H2) by installing OpenSSL.
I specifically installed the "Win64 OpenSSL v1.1.1q Light" version from https://slproweb.com/products/Win32OpenSSL.html.
Hopefully this helps!
from sygil-webui.
Discussion for this will move to 'Discussions'
Info to the Wiki
from sygil-webui.
This just happened to me after doing a conda clean --all
right after the first install. Deleting z_version_env.tmp
and running update_to_latest.cmd
solved it for me, in case anyone else runs into this.
from sygil-webui.
Related Issues (20)
- Feature Request
- [Bug]: docs mention .env_docker.example but it no longer exists in repo HOT 4
- [Bug]: anaconda3/miniconda3 not found HOT 1
- hlky/sd-webui docker is outdated HOT 20
- [Bug]: The process always kills itself when running webui.sh
- [Bug]: ModuleNotFoundError: No module named 'cv2' HOT 2
- [Bug]: TypeError: CacheDataAPI.__call__() got an unexpected keyword argument 'suppress_st_warning' HOT 5
- [Bug]: Settings broken without GPU
- [Bug]: ERROR: Command errored out with exit status 128: git clone -q https://github.com/hlky/facexlib /content/stable-diffusion/src/facexlib Check the logs for full command output.failed
- win11 install error No module named 'altair.vegalite.v4' HOT 1
- [Bug]: When i run webui.cmd HOT 3
- [Bug]: Outputs are only gray textured images when adding a textual inversion prompt HOT 3
- Are there plans to implement an API to call image generation from outside of the browser? HOT 2
- [Bug]: Dependencies in `requirements.txt` have module conflicts.
- [Bug]: Default install gives error of modules not found (validators.between and hydralit)
- [Bug]: All was well until it auto updated (cannot import name 'hc' from 'sd_utils') HOT 5
- [Bug]: Unable to pull down docker. HOT 4
- [Bug]: raise JSONDecodeError("Expecting value", s, err.value) from None
- [Bug]: Stable Diff - Jsonmerge not found HOT 1
- [Bug]: OMP: Error #15: Initializing libiomp5md.dll, but found libiomp5md.dll already initialized. HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from sygil-webui.