Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Bug]: /bin/sh: line 1: git: No such file or directory #597

Open
1 of 6 tasks
FlashJack22 opened this issue Apr 2, 2025 · 1 comment
Open
1 of 6 tasks

[Bug]: /bin/sh: line 1: git: No such file or directory #597

FlashJack22 opened this issue Apr 2, 2025 · 1 comment

Comments

@FlashJack22
Copy link

Checklist

  • The issue exists after disabling all extensions
  • The issue exists on a clean installation of webui
  • The issue is caused by an extension, but I believe it is caused by a bug in the webui
  • The issue exists in the current version of the webui
  • The issue has not been reported before recently
  • The issue has been reported before but has not been fixed yet

What happened?

When launching Stable Diffusion WebUI, the setup fails when trying to clone the assets repository due to a missing git command. (I am assuming)

Steps to reproduce the problem

Trying to install webui.sh

What should have happened?

webui.sh should have been able to clone assets and proceed with installation as intended

What browsers do you use to access the UI ?

Brave

Sysinfo

Unable to log, program won't start.

Console logs

glibc version is 2.41
Check TCMalloc: libtcmalloc_minimal.so.4
libtcmalloc_minimal.so.4 is linked with libc.so,execute LD_PRELOAD=/usr/lib/libtcmalloc_minimal.so.4
Python 3.10.6 (main, Apr  1 2025, 21:19:57) [GCC 14.2.1 20250207]
Version: v1.10.1-amd-31-ga31ef086
Commit hash: a31ef08686915e63f56bb0a4543f0a429847aafb
ROCm: agents=['gfx1100', 'gfx1036']
ROCm: version=6.3, using agent gfx1100
Cloning assets into /home/fjack/stable-diffusion-webui-amdgpu/repositories/stable-diffusion-webui-assets...
/bin/sh: line 1: git: No such file or directory
Traceback (most recent call last):
  File "/home/fjack/stable-diffusion-webui-amdgpu/launch.py", line 48, in <module>
    main()
  File "/home/fjack/stable-diffusion-webui-amdgpu/launch.py", line 39, in main
    prepare_environment()
  File "/home/fjack/stable-diffusion-webui-amdgpu/modules/launch_utils.py", line 646, in prepare_environment
    git_clone(assets_repo, repo_dir('stable-diffusion-webui-assets'), "assets", assets_commit_hash)
  File "/home/fjack/stable-diffusion-webui-amdgpu/modules/launch_utils.py", line 281, in git_clone
    run(f'"{git}" clone --config core.filemode=false "{url}" "{dir}"', f"Cloning {name} into {dir}...", f"Couldn't clone {name}", live=True)
  File "/home/fjack/stable-diffusion-webui-amdgpu/modules/launch_utils.py", line 120, in run
    raise RuntimeError("\n".join(error_bits))
RuntimeError: Couldn't clone assets.
Command: "git" clone --config core.filemode=false "https://github.com/AUTOMATIC1111/stable-diffusion-webui-assets.git" "/home/fjack/stable-diffusion-webui-amdgpu/repositories/stable-diffusion-webui-assets"
Error code: 127

Additional information

I edited the nightly PyTorch download links in webui.sh for rocm to match the version 6.3, as it kept giving me this error:

ERROR: HTTP error 403 while getting https://download.pytorch.org/whl/nightly/rocm5.7/torch-2.2.0.dev20231010%2Brocm5.7-cp310-cp310-linux_x86_64.whl (from https://download.pytorch.org/whl/nightly/rocm5.7/torch/)
ERROR: Could not install requirement torch from https://download.pytorch.org/whl/nightly/rocm5.7/torch-2.2.0.dev20231010%2Brocm5.7-cp310-cp310-linux_x86_64.whl because of HTTP error 403 Client Error: Forbidden for url: https://download.pytorch.org/whl/nightly/rocm5.7/torch-2.2.0.dev20231010%2Brocm5.7-cp310-cp310-linux_x86_64.whl for URL https://download.pytorch.org/whl/nightly/rocm5.7/torch-2.2.0.dev20231010%2Brocm5.7-cp310-cp310-linux_x86_64.whl (from https://download.pytorch.org/whl/nightly/rocm5.7/torch/)

@lshqqytiger
Copy link
Owner

Please check if you have git.
Also, why do you need nightly PyTorch?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants