Closed Nem-z closed 1 year ago
I'm having similar issues on Windows 10, slightly different errors:
D:\SDVlad\automatic>webui.bat
venv "D:\SDVlad\automatic\venv\Scripts\Python.exe"
Python 3.10.6 on Windows
Running setup
Installing requirements
Traceback (most recent call last):
File "D:\SDVlad\automatic\launch.py", line 87, in
D:\SDVlad\automatic>setup.py
11:03:02-481202 INFO Python 3.10.6 on Windows
11:03:02-485200 INFO Running setup
11:03:02-486200 INFO Installing requirements
11:03:02-714200 INFO Version: 910f047c Wed Apr 12 12:51:11 2023 -0400
11:03:03-130391 WARNING Latest available version: 2023-04-12T16:51:11Z
11:03:03-132603 INFO Updating Wiki
11:03:04-787536 INFO Installing packages
┌───────────────────────────────────────── Traceback (most recent call last) ─────────────────────────────────────────┐
│ D:\SDVlad\automatic\setup.py:344 in
same with you
regarding xformers
i've just marked xformers as optional in setup, so that should not cause critical issues anymore. i need recommendation from windows expert on what is the best version to search for when installing xformers on windows - its clearly not the same as linux.
regarding addict
- that is standard library present on all platforms for ages, i see no reason why it should fail. can you try installing it manually and see what happens?
btw, that requirement is required by controlnet
and is out of my control.
how about pip install -U addict
(also from venv)?
I just tried to do a pip install addict
in venv as follow:
PS G:\StableDiffusion\WebUI2> ./venv/scripts/activate (venv) PS G:\StableDiffusion\WebUI2> pip install addict Collecting addict Using cached addict-2.4.0-py3-none-any.whl (3.8 kB) Installing collected packages: addict Successfully installed addict-2.4.0
[notice] A new release of pip available: 22.2.1 -> 23.0.1 [notice] To update, run: python.exe -m pip install --upgrade pip
Then the webui.bat
gave me an aenum
error so I did a pip install aenum
for this as well. Then it gave me an aiohttp
error and then an anyio
error and so on. Maybe the webui.bat
file need to install some kind of dependencies on first launch but fail to do so for some reasons?
it should install everything from requirements.txt
- i'll check why it doesn't.
in the meantime, you can run pip -r requirements.txt
from venv.
btw, workflow should be webui.bat
-> launch.py
-> setup.py
-> launch.py
-> webui.py
.
seems like on windows, some steps are getting skipped.
Manually running pip install -r ./requirements.txt
seems to have downloaded dependencies and I can now progress further in the launch sequence but there are still some issues.
Now, I have another error: The extensions doesn't seems to install if I understand correctly. Here is the log (screenshots because of formatting issue):
I am also getting the missing 'addict' problem on Windows 10 running the webui.bat
venv "D:\automatic\venv\Scripts\Python.exe" Python 3.10.6 on Windows Running setup Installing requirements Traceback (most recent call last): File "D:\automatic\launch.py", line 87, in <module> setup.run_setup(False) File "D:\automatic\setup.py", line 334, in run_setup install_requirements() File "D:\automatic\setup.py", line 273, in install_requirements install(line) File "D:\automatic\setup.py", line 86, in install if not installed(package): File "D:\automatic\setup.py", line 59, in installed version = pkg_resources.get_distribution(p[0]).version File "D:\automatic\venv\lib\site-packages\pkg_resources\__init__.py", line 478, in get_distribution dist = get_provider(dist) File "D:\automatic\venv\lib\site-packages\pkg_resources\__init__.py", line 354, in get_provider return working_set.find(moduleOrReq) or require(str(moduleOrReq))[0] File "D:\automatic\venv\lib\site-packages\pkg_resources\__init__.py", line 909, in require needed = self.resolve(parse_requirements(requirements)) File "D:\automatic\venv\lib\site-packages\pkg_resources\__init__.py", line 795, in resolve raise DistributionNotFound(req, requirers) pkg_resources.DistributionNotFound: The 'addict' distribution was not found and is required by the application Press any key to continue . . .
you can run
pip -r requirements.txt
from venv.
I:\Super SD 2.0\automatic>pip -r requirements.txt
Usage:
pip
no such option: -r
I:\Super SD 2.0\automatic> 😌
Opened a new issue regarding this PermissionError on "setup.log", I faced the same issue. Looks all these extensions are not installed.
no such option: -r
start cmd in venv/scripts/
, launch activate.bat
first, then
cd ../..
pip install -r requirements.txt
Still doesn't work, though. I've installed open_clip_torch
and clip
manually, but getting "Cannot install xformers package", "Torch not compiled with CUDA enabled" and "No module named 'basicsr.version'"
Yeah, at least on Windows, you need the full command as Razunter has it above. I had run it without activating the virtual environment and, while i was able to get it to launch after git pull this morning, it still threw up the errors Nem-Z is getting.
After re-running the pip install -r requirements.text both in and out of the virtual environment, here's what I get when I run .\launch.py (it does launch and I can generate images, though I haven't tested any functionality beyond launching and hitting generate) 13:21:57-712225 INFO Python 3.10.6 on Windows 13:21:57-716226 INFO Running setup 13:21:57-723227 INFO Installing requirements 13:21:57-949225 INFO Version: f46fa099 Wed Apr 12 14:55:46 2023 -0400 13:21:58-352458 WARNING Latest available version: 2023-04-12T18:55:46Z 13:21:58-354457 INFO Updating Wiki 13:21:59-990911 INFO Installing packages 13:22:00-032907 ERROR Cannot install xformers package: {e} 13:22:00-034908 INFO Installing repositories 13:22:00-235909 INFO Installing submodules 13:22:01-097946 INFO Updating submodules 13:22:13-262412 INFO Built-in extensions: ['clip-interrogator-ext', 'LDSR', 'Lora', 'prompt-bracket-checker', 'ScuNET', 'sd-dynamic-thresholding', 'sd-extension-aesthetic-scorer', 'sd-extension-steps-animation', 'sd-extension-system-info', 'sd-webui-controlnet', 'sd-webui-model-converter', 'seed_travel', 'stable-diffusion-webui-images-browser', 'stable-diffusion-webui-rembg', 'SwinIR'] 13:22:14-087401 ERROR Error running extension installer: Traceback (most recent call last): File "D:\SDVlad\automatic\extensions-builtin\clip-interrogator-ext\install.py", line 1, in
That's what I experienced, also.
I also experience this issue on Windows 10. Steps:
I did a little more testing and while I can still generate images, some of the extensions didn't load (though some of the ones that threw errors above do appear to have loaded but not all). Things are missing like Hires Fix, though, but I'm definitely farther along than some of the above.
I should note that I used symbolic links to redirect the models folder to the one in my OG A1111 folder so I don't have to keep up with the syntax for pointing it there, but it doesn't appear to be related to the errors I'm getting.
Yeah, wanted to try out this clone but there doesn't seem to be a clear cut install method that's working. Cloned, and ran webui.bat, same error about 'addict'. I activated the venv, and installed the requirements.txt but still can't get anything to run. I know it shouldn't be that complicated, so there must be a bug somewhere that was recently added.
Interesting. I just discovered that I can get it to fail at the missing open_clip error as [Wffv9FNa] does above if I use webui.bat, but it launches (with errors) if I use Launch.py
Found a bug(?) in setup.py:
version = pkg_resources.get_distribution(p[0]).version
is called before if ok and len(p) > 1:
and crashes if not ok
move it inside of if ok and len(p) > 1:
import pkg_resources
is called on first launch and crashes, since it's not installed yet.
Now it fails at ImportError: cannot import name 'Roboto' from 'fonts.ttf'
I just got aware of this fork. Sounds very good!
Unfortunately I also am running into install problems on Windows 10.
Here's the history-so-far:
First start of webui.bat: pkg_resources.DistributionNotFound: The 'addict' distribution was not found and is required by the application
Manually activated venv and did a pip install -r requirements.txt
Second start: ModuleNotFoundError: No module named 'open_clip'
Third start (on the theory that the second start installed something that might prevent the error on the next run):
Warning: caught exception 'Torch not compiled with CUDA enabled', memory monitor disabled
ModuleNotFoundError: No module named 'clip'
That's as far as I got.
EDIT: I got rid of the torch error, by installing it manually: https://pytorch.org/get-started/locally/ However this at first didn't work, I had to first uninstall the torch stuff. So:
pip3 uninstall torch torchvision torchaudio
pip3 install torch torchvision torchaudio --index-url https://download.pytorch.org/whl/cu118
EDIT 2: It's running! The last step was to install clip manually: pip install git+https://github.com/openai/CLIP.git
EDIT 3: To get xformers to work, this had to be resolved:
ERROR: pip's dependency resolver does not currently take into account all the packages that are installed. This behaviour is the source of the following dependency conflicts.
xformers 0.0.18 requires pyre-extensions==0.0.23, which is not installed.
Which was cured by a simple: pip install xformers -U
After your last commit it runs kinda perfectly (some errors later down the road but nothing that keeps me from generating.)
Thanks for your great work @vladmandic!
P.S.: I manually pip installed the requirements.txt while venv was active and I need to run my CMD with administrator rights on Windows 10
For some poor Google-Soul: Open CMD with administrator rights!!! cd x:\your-stable-diffusion-folder\venv\Scripts activate.bat cd ../.. <-- important to go back to the main directory, where the requirements.txt is located! pip install -r requirements.txt deactivate.bat
EDIT 2: It's running! The last step was to install clip manually:
pip install git+https://github.com/openai/CLIP.git
I did this but it still says ModuleNotFoundError: No module named 'clip' Executed in root folder. Any hints?
I did this but it still says ModuleNotFoundError: No module named 'clip' Executed in root folder. Any hints?
Did you activate the venv first?
EDIT 2: It's running! The last step was to install clip manually:
pip install git+https://github.com/openai/CLIP.git
I did this but it still says ModuleNotFoundError: No module named 'clip' Executed in root folder. Any hints?
Pretty sure you didn't activate the venv and did not install the clip in it. Just had this issue and realized I hadn't activated the venv.
Finally got it to work.
If anyone wanna try on window 10 please follow as @AlUlkesh said above.
Simpler way step by step below :
Now you are done. Congratz. Go to your main Automatic folder and run the Webui.bat again and it will launch.
Thank you so much @AlUlkesh for trying to keep us updated on how to solve this maze.
My experience with this Repo below (Can skip if u don't want to know) :
The speed i'm getting is really on par with Automatic1111 which is around 6.34-3.04it/s with 3060 Ti 8GB Vram. I'm not fully check if there's anything wrong yet. I can run Generate image and change my Model really fast which is really good. The UI is not as heavy as Automatic1111 for my experience atm.
Guys, I appreciate all community troubleshooting efforts!
I've just finished major update to installer/launcher as well as some environment auto-tunes.
Hopefully now those steps should not be needed and should work out-of-the-box
Check README for updated notes and updated thread #92 with details. I'm going to close this issue for now, lets start with a new issue if there is something remaining.
Did you activate the venv first?
Yes, I had it activated because (venv) was written besides the folder name.
Issue Description
Greetings,
I just tried to launch the server via
webui.bat
on Windows 11 after seeing the last commit and, sadly, it doesn't seem to launch. The version from the main repo is working as intended.I've done a
git clone
on a new folder to start clean and just tried to launchwebui.bat
and here is the log I'm getting:It's my very first issue report on GitHub, so if something is missing I will gladly provide more information or doing some more test.
See my specs below.
Platform Description
Windows 11 22H2 build 22621 Python 3.10.6 Git 2.40.0