[Issue]: Error running git: None /
Issue Description
gives an error that the GIT is not installed, but the 1111 automatic - works. Tried to reinstall the GIT error remains, help solve the problem, please
03:09:22-390432 ERROR Error running git: None / log -1 --pretty=format:"%h %ad" 03:09:22-393843 INFO Version: fatal: not a git repository (or any of the parent directories): .git 03:09:22-480471 ERROR Error running git: None / rev-parse HEAD . . . . 03:09:25-379741 ERROR Error running git: None / log -1 --pretty=format:"%at" 03:09:25-383720 ERROR Error getting local repository version: invalid literal for int() with base 10: 'fatal: not a git repository (or any of the parent directories): .git'
Version Platform Description
win 10 pyton 3.10.6 git 2.40 cent, chrome
it didn't say no git installed, it said no repository found. how did you clone the repo to start with?
I'm running into the exact same problem. Only difference is that my Python version is 3.10.7.
I did use the git clone command.
Edit: Did a clean install of everything and seems to work.
i cant make a fresh install. Running webui.sh script it gives me an error: 16:08:20-584894 ERROR Cannot get git repository status
So if you run "git status" yourself, what does it say?
Same error as elen07zz, though my error occurs with webui.bat, not .sh. The .sh file closes almost immediately after running, so can't get a log of what is printed in the cmd window. Running git status prints this:
On branch master
Your branch is up to date with 'origin/master'.
nothing to commit, working tree clean
i've disabled git status check for now, update&try.
UPDATE: I believe I've solved the issue without updating to the version that disables the Git status check.
On the old webui repo by Automatic1111, Python 3.10.6 was the recommended version by most users online, and the version both myself and the OP had installed as a result. After upgrading to 3.10.11, and then using the command to take ownership of the Automatic directory that it suggests after running webui.bat, I am no longer getting this nor other errors.
Might be a good idea to specify that this is the version of Python required in the ReadMe.
there are multiple random reports with git issues on windows, i'm still trying to figure out which versions work and which cause problems.
@alexandrtsk you're the original author of the issue - can you update current state? there have been a lot of improvements in the past few days, make sure your repo is up to date.
Not exactly same but I am also having some "--upgrade" problems. When I try to update the repo it gets stuck after "Version: ..." line. I had to exit using Ctrl+C, and than it continues like normal. Is it because there are no upgrades or sth?
(vlad2) ubuntu@ip-172-31-34-82:~/vladmandic-sd$ bash webui.sh --upgrade
################################################################
Install script for stable-diffusion + Web UI
Tested on Debian 11 (Bullseye)
################################################################
################################################################
Running on ubuntu user
################################################################
################################################################
Repo already cloned, using it as install directory
################################################################
################################################################
Create and activate python venv
################################################################
################################################################
Launching launch.py...
################################################################
11:01:18-018912 INFO Python 3.10.4 on Linux
11:01:18-053383 INFO Version: bb438efe Tue Apr 25 09:53:11 2023 -0400
^C11:03:12-684093 ERROR Error upgrading repository
11:03:12-685280 INFO nVidia toolkit detected
11:03:13-800776 INFO Torch 2.0.0+cu118
11:03:16-261817 INFO Torch backend: nVidia CUDA 11.8 cuDNN 8700
11:03:16-274467 INFO Torch detected GPU: NVIDIA A10G VRAM 22581 Arch (8, 6)
Cores 80
11:03:16-276055 INFO Verifying requirements
11:03:16-289753 WARNING Package wrong version: diffusers 0.14.0 required 0.15.0
11:03:16-290607 INFO Installing package: diffusers==0.15.0
11:03:19-132942 INFO Running setup
11:03:19-133860 INFO Installing packages
11:03:19-134920 INFO Installing repositories
11:03:19-145808 INFO Installing submodules
11:03:19-475589 INFO Updating submodules
11:03:22-375677 INFO Extensions enabled: ['stable-diffusion-webui-rembg',
'ScuNET', 'a1111-sd-webui-lycoris', 'Lora',
'clip-interrogator-ext',
'multidiffusion-upscaler-for-automatic1111',
'seed_travel', 'LDSR', 'sd-webui-controlnet',
'sd-webui-model-converter',
'sd-extension-steps-animation',
'sd-extension-aesthetic-scorer',
'sd-extension-system-info', 'sd-dynamic-thresholding',
'prompt-bracket-checker', 'SwinIR',
'stable-diffusion-webui-images-browser']
11:03:29-604059 INFO Extensions enabled: ['batch-face-swap',
'Auto-Photoshop-StableDiffusion-Plugin', 'PBRemTools',
'stable-diffusion-webui-anti-burn',
'sd_dreambooth_extension',
'ultimate-upscale-for-automatic1111',
'sd-dynamic-prompts', 'sd-webui-aspect-ratio-helper',
'sd-webui-additional-networks', 'ebsynth_utility',
'stable-diffusion-webui-depthmap-script',
'stable-diffusion-webui-two-shot', 'Config-Presets',
'sd-webui-regional-prompter',
'sd-webui-infinite-image-browsing',
'sdweb-merge-board', 'sd-webui-llul',
'Hypernetwork-MonkeyPatch-Extension',
'sd-canvas-editor']
11:03:48-690008 INFO Updating Wiki
11:03:49-088899 INFO Setting environment tuning
11:03:49-089939 INFO Running extension preloading
11:03:49-090700 INFO Server arguments: ['--upgrade', '--listen',
'--allow-code', '--disable-safe-unpickle',
'--autolaunch',
'--cors-origins=https://www.painthua.com']
Unloading xFormers
Available models: /home/ubuntu/stable-diffusion-webui/models/Stable-diffusion
133
ControlNet v1.1.112
ControlNet v1.1.112
python_server_full_path: /home/ubuntu/vladmandic-sd/extensions/Auto-Photoshop-StableDiffusion-Plugin/server/python_server
[AddNet] Updating model hashes...
0it [00:00, ?it/s]
[AddNet] Updating model hashes...
0it [00:00, ?it/s]
Loading theme: gradio/monochrome
Available models: /home/ubuntu/stable-diffusion-webui/models/Stable-diffusion
133
Running on local URL: http://0.0.0.0:7860
To create a public link, set `share=True` in `launch()`.
Initializing middleware
Loading weights: /home/ubuntu/stable-diffusion-webui/models/Stable-diffusion/t…
Creating model from config:
/home/ubuntu/stable-diffusion-webui/models/Stable-diffusion/timothee_and_kylie/t
imothee_and_kylie_8461.yaml
LatentDiffusion: Running in eps-prediction mode
DiffusionWrapper has 859.52 M params.
Applying scaled dot product cross attention optimization
Embeddings loaded: (0)
Model loaded in 1.9s (load=0.5s create=0.4s apply=0.4s vae=0.3s move=0.3s)
Startup time: 14.9s (torch=2.2s gradio=1.8s libraries=0.4s codeformer=0.1s
scripts=6.5s ui=1.6s start=0.2s scripts app_started_callback=0.1s
checkpoint=2.1s)
@Lalimec sorry to hear that, but its really not part of this issue. And if setup gets stuck at the step you've mentioned that means that likely a simple git pull is hanging. You should check setup.log for details.
closing as no update for a week and other users reported it as fix. if needed, i'll reopen.