Closed dreemur99 closed 1 year ago
your pip install command obviously requires internet to download the packages. Try to check your command arguments for the webui start, or whatever else is trying to install stuff in prerequirements, launch.py etc.
There's no pip install command, but it seems to be trying to install something each time anyways.
As someone who lives life behind a whitelist-only firewall, trust me, I feel your pain.
Short answer: This isn't a bug, it's a feature.
Long answer: This software doesn't distribute with all of the necessary components to actually run it offline. I don't know if there are too many legal or technical barriers to merging everything into a single repo, or if we are just dealing with the usual assumption by the terminally online software development community that everything must always be able to access the internet at all times. Either way, there is no 'standalone' product here. First, Python 3.10.6 must first use PIP to install a number of dependencies, then, Git must download a bunch of other repositories (other than this one) before this software can actually function.
My solution: I added firewall whitelist entries for "python.exe" from the Python 3.10.6 installation directory and from "git-remote-https.exe" from the mingw64\libexec\git-core\ subdirectory of the Git installation directory. On first launch, PIP and Git downloaded and installed the necessary components; afterwards, I closed the software, disabled the firewall whitelist entries, and the software launched without any errors. I've been using it since then without allowing any access to the internet. Just to confirm, I went ahead and pulled my ethernet and tested it just now: still seems to work fine.
Other solution: If you're trying to set this software up on a computer that is completely disconnected from the internet, and isn't simply operating behind a firewall like mine, you'll probably need to first download and launch the software (at least once) on a computer that has internet access, then copy its entire directory, as well as the directory of your Python 3.10.6 installation, onto an external drive to bring it over and copy/overwrite. There may be a more targeted approach to copying the Python dependencies, but there's no way I'd want to figure that out, Python is more infuriating than interactive disassembly IMHO.
After initial install of all that's needed there's no requirement to be online, the requirement gets introduced when you install the Dreambooth extension. @d8ahazard introduces it with postinstall.py, you'll also have to thank him for the ongoing dependency nightmare.
So it seems to be the dreambooth extension. If you find specifically what it is from diffusers or whatever, make a discussion post for visibility so users can run training offline.
(it may be some environment variable)
Is there an existing issue for this?
What happened?
I searched but I can't find a solution to this or even that it is reported. If it's there, I can't find it.
For some reason, SD requires the internet to boot up properly. It works fine if I turn it off afterwards but it will not start up without first needing the internet... which doesn't make sense. My bat does not have a git pull and I'm not sure what else can be causing SD to not start when the internet off.
Steps to reproduce the problem
This is a (very) small part of the error list:
. .. ...
Press any key to continue . . .
What should have happened?
I assume SD should start up without need for internet or constantly trying to re/install anything.
Commit where the problem happens
22bcc7be428c94e9408f589966c2040187245d81
What platforms do you use to access the UI ?
Windows
What browsers do you use to access the UI ?
Microsoft Edge
Command Line Arguments
List of extensions
a1111-sd-webui-haku-img a1111-sd-webui-lycoris animator_extension asymmetric-tiling-sd-webui canvas-zoom corridor-crawler-outpainting ebsynth_utility gif2gif Hypernetwork-MonkeyPatch-Extension multi-subject-render openpose-editor posex sd-3dmodel-loader sd-dynamic-prompts sd-webui-3d-open-pose-editor sd-webui-additional-networks sd-webui-controlnet sd-webui-enable-checker sd-webui-llul sd-webui-modelscope-text2video sd-webui-multiple-hypernetworks sd-webui-supermerger stable-diffusion-webui-composable-lora stable-diffusion-webui-pixelization stable-diffusion-webui-promptgen stable-diffusion-webui-rembg stable-diffusion-webui-state stable-diffusion-webui-two-shot video_loopback_for_webui
Console logs
Additional information
No response