vladmandic / automatic

SD.Next: Advanced Implementation of Stable Diffusion and other Diffusion-based generative image models
https://github.com/vladmandic/automatic
GNU Affero General Public License v3.0
5.61k stars 413 forks source link

[Issue]: Error getting git status #1121

Closed MakeItGame closed 1 year ago

MakeItGame commented 1 year ago

Issue Description

I am getting this error:

venv "G:\Andere Computer\Mein Laptop\automatic-webui\venv\Scripts\Python.exe"
HERE G:\Andere Computer\Mein Laptop\automatic-webui
21:24:10-986541 INFO     Python 3.10.7 on Windows
21:24:13-259808 ERROR    Error running git: None / status
21:24:13-262386 ERROR    Cannot get git repository status
Drücken Sie eine beliebige Taste . . .

This is in setup.log

2023-05-22 21:24:10,986 | INFO | G:\Andere Computer\Mein Laptop\automatic-webui\setup.py | Python 3.10.7 on Windows
2023-05-22 21:24:13,259 | ERROR | G:\Andere Computer\Mein Laptop\automatic-webui\setup.py | Error running git: None / status
2023-05-22 21:24:13,261 | DEBUG | G:\Andere Computer\Mein Laptop\automatic-webui\setup.py | Git output: fatal: 'git status --porcelain=2' failed in submodule extensions-builtin/sd-extension-aesthetic-scorer
2023-05-22 21:24:13,262 | ERROR | G:\Andere Computer\Mein Laptop\automatic-webui\setup.py | Cannot get git repository status

Maybe this does tell me what the error is but i do not really know how to fix that

Version Platform Description

Programm version is newest (after getting this error i cloned it again but nothing changed) Windows 10 FireFox GPU: 3080 12GB version

vladmandic commented 1 year ago

if you manually run git status in app folder, what is the output? can you run webui.bat --debug to capture more detailed output?

and update issue TITLE - this is not valid issue as such.

MakeItGame commented 1 year ago

I will take a look at it tomorrow when i get back from school, can't access my pc until then

Vladimir Mandic @.***> schrieb am Mo., 22. Mai 2023, 21:36:

if you manually run git status in app folder, what is the output? can you run webui.bat --debug to capture more detailed output?

and update issue TITLE - this is not valid issue as such.

— Reply to this email directly, view it on GitHub https://github.com/vladmandic/automatic/issues/1121#issuecomment-1557835040, or unsubscribe https://github.com/notifications/unsubscribe-auth/ANEVX5GTN7VTLTB5QQBU2HLXHO52PANCNFSM6AAAAAAYK3YL4Y . You are receiving this because you authored the thread.Message ID: @.***>

MakeItGame commented 1 year ago
G:\Andere Computer\Mein Laptop\automatic-webui>git status
fatal: 'git status --porcelain=2' failed in submodule extensions-builtin/sd-extension-aesthetic-scorer
G:\Andere Computer\Mein Laptop\automatic-webui>webui.bat --debug
venv "G:\Andere Computer\Mein Laptop\automatic-webui\venv\Scripts\Python.exe"
HERE G:\Andere Computer\Mein Laptop\automatic-webui
14:12:30-303783 INFO     Python 3.10.7 on Windows
14:12:38-704609 ERROR    Error running git: None / status
14:12:38-706612 DEBUG    Git output: fatal: 'git status --porcelain=2' failed in submodule
                         extensions-builtin/sd-extension-aesthetic-scorer
14:12:38-708614 ERROR    Cannot get git repository status

This is the result from the commands

(did not see that ya changed it, but i changed it back to the one you selected title)

vladmandic commented 1 year ago

and this is with a completely fresh clone? which git are you using? your git executable looks very suspicious as it should not be adding --porcelain=2 on its own.

let's check your git version and config:

git --version
git config --list

note normal sequence:

D:\>git clone https://github.com/vladmandic/automatic SD
Cloning into 'SD'...
remote: Enumerating objects: 25128, done.
remote: Counting objects: 100% (455/455), done.
remote: Compressing objects: 100% (217/217), done.
Receiving objects: 100% (25128/25128), 33.27 MiB | 22.59 MiB/s, done.24673
Resolving deltas: 100% (17701/17701), done.

D:\>cd SD
D:\SD>git status
On branch master
Your branch is up to date with 'origin/master'.
nothing to commit, working tree clean

D:\SD>webui.bat
Creating venv in directory D:\SD\venv using python "C:\Users\mandi\AppData\Local\Programs\Python\Python310\python.exe"
Using VENV: D:\SD\venv
08:22:57-056433 INFO     Starting SD.Next
08:22:57-058433 INFO     Python 3.10.11 on Windows
08:22:57-112433 INFO     Version: beff89ba Mon May 22 15:27:20 2023 -0400
08:22:57-138433 INFO     Setting environment tuning
08:22:57-141105 INFO     nVidia CUDA toolkit detected
08:22:57-151372 INFO     Installing package: torch torchvision --index-url https://download.pytorch.org/whl/cu118
MakeItGame commented 1 year ago

I now installed it on an new directory, there it did not create any problems anymore, but i still got the old one if you should need it for testing, i ran the commands you sent in the directory and got this as output

G:\Andere Computer\Mein Laptop\automatic-webui>git --version
git version 2.40.1.windows.1

G:\Andere Computer\Mein Laptop\automatic-webui>git config --list
diff.astextplain.textconv=astextplain
filter.lfs.clean=git-lfs clean -- %f
filter.lfs.smudge=git-lfs smudge -- %f
filter.lfs.process=git-lfs filter-process
filter.lfs.required=true
http.sslbackend=openssl
http.sslcainfo=C:/Program Files/Git/mingw64/etc/ssl/certs/ca-bundle.crt
core.autocrlf=true
core.fscache=true
core.symlinks=true
core.fsmonitor=true
pull.rebase=false
credential.helper=manager
credential.https://dev.azure.com.usehttppath=true
init.defaultbranch=master
filter.lfs.process=git-lfs filter-process
filter.lfs.required=true
filter.lfs.clean=git-lfs clean -- %f
filter.lfs.smudge=git-lfs smudge -- %f
user.name=MakeItGame
user.email=luwo18112002@gmail.com
core.repositoryformatversion=0
core.filemode=false
core.bare=false
core.logallrefupdates=true
core.symlinks=false
core.ignorecase=true
remote.origin.url=https://github.com/vladmandic/automatic
remote.origin.fetch=+refs/heads/*:refs/remotes/origin/*
:...skipping...
diff.astextplain.textconv=astextplain
filter.lfs.clean=git-lfs clean -- %f
filter.lfs.smudge=git-lfs smudge -- %f
filter.lfs.process=git-lfs filter-process
filter.lfs.required=true
http.sslbackend=openssl
http.sslcainfo=C:/Program Files/Git/mingw64/etc/ssl/certs/ca-bundle.crt
core.autocrlf=true
core.fscache=true
core.symlinks=true
core.fsmonitor=true
pull.rebase=false
credential.helper=manager
credential.https://dev.azure.com.usehttppath=true
init.defaultbranch=master
filter.lfs.process=git-lfs filter-process
filter.lfs.required=true
filter.lfs.clean=git-lfs clean -- %f
filter.lfs.smudge=git-lfs smudge -- %f
user.name=MakeItGame
user.email=X
core.repositoryformatversion=0
core.filemode=false
core.bare=false
core.logallrefupdates=true
core.symlinks=false
core.ignorecase=true
remote.origin.url=https://github.com/vladmandic/automatic
remote.origin.fetch=+refs/heads/*:refs/remotes/origin/*
branch.master.remote=origin
branch.master.merge=refs/heads/master
submodule.extensions-builtin/a1111-sd-webui-lycoris.active=true
submodule.extensions-builtin/a1111-sd-webui-lycoris.url=https://github.com/KohakuBlueleaf/a1111-sd-webui-lycoris
submodule.extensions-builtin/clip-interrogator-ext.active=true
submodule.extensions-builtin/clip-interrogator-ext.url=https://github.com/pharmapsychotic/clip-interrogator-ext.git
submodule.extensions-builtin/multidiffusion-upscaler-for-automatic1111.active=true
submodule.extensions-builtin/multidiffusion-upscaler-for-automatic1111.url=https://github.com/pkuliyi2015/multidiffusion-upscaler-for-automatic1111
submodule.extensions-builtin/sd-dynamic-thresholding.active=true
submodule.extensions-builtin/sd-dynamic-thresholding.url=https://github.com/mcmonkeyprojects/sd-dynamic-thresholding
submodule.extensions-builtin/sd-extension-aesthetic-scorer.active=true
submodule.extensions-builtin/sd-extension-aesthetic-scorer.url=https://github.com/vladmandic/sd-extension-aesthetic-scorer
submodule.extensions-builtin/sd-extension-steps-animation.active=true
submodule.extensions-builtin/sd-extension-steps-animation.url=https://github.com/vladmandic/sd-extension-steps-animation
submodule.extensions-builtin/sd-extension-system-info.active=true
submodule.extensions-builtin/sd-extension-system-info.url=https://github.com/vladmandic/sd-extension-system-info
submodule.extensions-builtin/sd-webui-controlnet.active=true
submodule.extensions-builtin/sd-webui-controlnet.url=https://github.com/Mikubill/sd-webui-controlnet
submodule.extensions-builtin/sd-webui-model-converter.active=true
submodule.extensions-builtin/sd-webui-model-converter.url=https://github.com/Akegarasu/sd-webui-model-converter
submodule.extensions-builtin/seed_travel.active=true
submodule.extensions-builtin/seed_travel.url=https://github.com/yownas/seed_travel
submodule.extensions-builtin/stable-diffusion-webui-images-browser.active=true
submodule.extensions-builtin/stable-diffusion-webui-images-browser.url=https://github.com/AlUlkesh/stable-diffusion-webui-images-browser
submodule.extensions-builtin/stable-diffusion-webui-rembg.active=true
submodule.extensions-builtin/stable-diffusion-webui-rembg.url=https://github.com/AUTOMATIC1111/stable-diffusion-webui-rembg
submodule.modules/lora.active=true
submodule.modules/lora.url=https://github.com/kohya-ss/sd-scripts
submodule.modules/lycoris.active=true
submodule.modules/lycoris.url=https://github.com/KohakuBlueleaf/LyCORIS
submodule.wiki.active=true
submodule.wiki.url=https://github.com/vladmandic/automatic.wiki
~
(END)
vladmandic commented 1 year ago

if i had unlimited time, i'd love to test the old instance, but as it is, i'm glad its resolved. your git config has a LOT of ghosts. some i see were added by git-for-windows, some are just old entries which should have been deleted when you did a git pull and some are i-have-no-idea-where from. so yes, your git config was the one to blame.