[Bug]: raise RuntimeError(
mollenmest opened this issue · 9 comments
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?
venv "C:\Users\dulda\sd\webui\stable-diffusion-webui-directml\venv\Scripts\Python.exe"
fatal: No names found, cannot describe anything.
Python 3.10.6 (tags/v3.10.6:9c7b4bd, Aug 1 2022, 21:53:49) [MSC v.1932 64 bit (AMD64)]
Version: 1.8.0-RC
Commit hash: 25a3b6c
Traceback (most recent call last):
File "C:\Users\dulda\sd\webui\stable-diffusion-webui-directml\launch.py", line 48, in
main()
File "C:\Users\dulda\sd\webui\stable-diffusion-webui-directml\launch.py", line 39, in main
prepare_environment()
File "C:\Users\dulda\sd\webui\stable-diffusion-webui-directml\modules\launch_utils.py", line 568, in prepare_environment
raise RuntimeError(
RuntimeError: Torch is not able to use GPU; add --skip-torch-cuda-test to COMMANDLINE_ARGS variable to disable this check
Press any key to continue . . .
böyle bir hata almaktayım ?
Steps to reproduce the problem
raise RuntimeError(
RuntimeError: Torch is not able to use GPU; add --skip-torch-cuda-test to COMMANDLINE_ARGS variable to disable this check
What should have happened?
Commit hash: 25a3b6c
What browsers do you use to access the UI ?
Other
Sysinfo
Console logs
--skip-torch-cuda-test to COMMANDLINE_ARGS variable to disable this check
Additional information
İşletim Sistemi Adı Microsoft Windows 11 Pro
Amd Rx6750xt 12 GB ekran kartım var bu hatayı alıyorum
İşlemci AMD Ryzen 7 5800X 8-Core Processor, 3801 Mhz, 8 Çekirdek, 16 Mantıksal İşlemci
Temel Kart Ürünü B450 TOMAHAWK MAX (MS-7C02)
Yüklü Fiziksel Bellek (RAM) 32,0 GB
DirectML: add --use-directml
ZLUDA: add --use-zluda
DirectML: add
--use-directml
ZLUDA: add--use-zluda
I don't understand "ZLUDA: add --use-zluda"
I just do these steps and successfully run it.
step1: add params "--use-directml" for "webui-user.bat"
@echo off
set PYTHON=
set GIT=
set VENV_DIR=
# modifed line
set COMMANDLINE_ARGS=--use-directml
call webui.bat
step2 : remove directory "venv"
if you have run "webui-user.bat", the directory "venv" will exist.
step3: run modified "webui-user.bat" again
venv "C:\Users\dulda\sd\webui\stable-diffusion-webui-directml\venv\Scripts\Python.exe"
fatal: No names found, cannot describe anything.
Python 3.12.2 (tags/v3.12.2:6abddd9, Feb 6 2024, 21:26:36) [MSC v.1937 64 bit (AMD64)]
Version: 1.8.0-RC
Commit hash: 25a3b6c
Installing requirements
Traceback (most recent call last):
File "C:\Users\dulda\sd\webui\stable-diffusion-webui-directml\launch.py", line 48, in
main()
File "C:\Users\dulda\sd\webui\stable-diffusion-webui-directml\launch.py", line 39, in main
prepare_environment()
File "C:\Users\dulda\sd\webui\stable-diffusion-webui-directml\modules\launch_utils.py", line 603, in prepare_environment
run_pip(f'install -r "{requirements_file}"', "requirements")
File "C:\Users\dulda\sd\webui\stable-diffusion-webui-directml\modules\launch_utils.py", line 149, in run_pip
return run(
^^^^
File "C:\Users\dulda\sd\webui\stable-diffusion-webui-directml\modules\launch_utils.py", line 121, in run
raise RuntimeError("\n".join(error_bits))
RuntimeError: Couldn't install requirements.
Command: "C:\Users\dulda\sd\webui\stable-diffusion-webui-directml\venv\Scripts\python.exe" -m pip install -r "requirements_versions.txt" --prefer-binary
Error code: 1
stdout: Collecting GitPython==3.1.32 (from -r requirements_versions.txt (line 1))
Using cached GitPython-3.1.32-py3-none-any.whl.metadata (10.0 kB)
Collecting Pillow==9.5.0 (from -r requirements_versions.txt (line 2))
Using cached Pillow-9.5.0-cp312-cp312-win_amd64.whl.metadata (9.7 kB)
Collecting accelerate==0.21.0 (from -r requirements_versions.txt (line 3))
Using cached accelerate-0.21.0-py3-none-any.whl.metadata (17 kB)
Collecting blendmodes==2022 (from -r requirements_versions.txt (line 4))
Using cached blendmodes-2022-py3-none-any.whl.metadata (12 kB)
Collecting clean-fid==0.1.35 (from -r requirements_versions.txt (line 5))
Using cached clean_fid-0.1.35-py3-none-any.whl.metadata (36 kB)
Collecting diffusers (from -r requirements_versions.txt (line 6))
Using cached diffusers-0.27.2-py3-none-any.whl.metadata (18 kB)
Collecting einops==0.4.1 (from -r requirements_versions.txt (line 7))
Using cached einops-0.4.1-py3-none-any.whl.metadata (10 kB)
Collecting facexlib==0.3.0 (from -r requirements_versions.txt (line 8))
Using cached facexlib-0.3.0-py3-none-any.whl.metadata (4.6 kB)
Collecting fastapi==0.94.0 (from -r requirements_versions.txt (line 9))
Using cached fastapi-0.94.0-py3-none-any.whl.metadata (25 kB)
Collecting gradio==3.41.2 (from -r requirements_versions.txt (line 10))
Using cached gradio-3.41.2-py3-none-any.whl.metadata (17 kB)
Collecting httpcore==0.15 (from -r requirements_versions.txt (line 11))
Using cached httpcore-0.15.0-py3-none-any.whl.metadata (15 kB)
Collecting inflection==0.5.1 (from -r requirements_versions.txt (line 12))
Using cached inflection-0.5.1-py2.py3-none-any.whl.metadata (1.7 kB)
Collecting jsonmerge==1.8.0 (from -r requirements_versions.txt (line 13))
Using cached jsonmerge-1.8.0.tar.gz (26 kB)
Installing build dependencies: started
Installing build dependencies: finished with status 'done'
Getting requirements to build wheel: started
Getting requirements to build wheel: finished with status 'done'
Installing backend dependencies: started
Installing backend dependencies: finished with status 'done'
Preparing metadata (pyproject.toml): started
Preparing metadata (pyproject.toml): finished with status 'done'
Collecting kornia==0.6.7 (from -r requirements_versions.txt (line 14))
Using cached kornia-0.6.7-py2.py3-none-any.whl.metadata (12 kB)
Collecting lark==1.1.2 (from -r requirements_versions.txt (line 15))
Using cached lark-1.1.2-py2.py3-none-any.whl.metadata (1.7 kB)
Collecting numpy==1.26.2 (from -r requirements_versions.txt (line 16))
Using cached numpy-1.26.2-cp312-cp312-win_amd64.whl.metadata (61 kB)
Collecting omegaconf==2.2.3 (from -r requirements_versions.txt (line 17))
Using cached omegaconf-2.2.3-py3-none-any.whl.metadata (3.9 kB)
Collecting open-clip-torch==2.20.0 (from -r requirements_versions.txt (line 18))
Using cached open_clip_torch-2.20.0-py3-none-any.whl.metadata (46 kB)
Collecting onnx (from -r requirements_versions.txt (line 19))
Using cached onnx-1.16.0-cp312-cp312-win_amd64.whl.metadata (16 kB)
Collecting onnxruntime (from -r requirements_versions.txt (line 20))
Using cached onnxruntime-1.17.1-cp312-cp312-win_amd64.whl.metadata (4.4 kB)
Collecting optimum (from -r requirements_versions.txt (line 21))
Using cached optimum-1.18.0-py3-none-any.whl.metadata (18 kB)
Collecting olive-ai (from -r requirements_versions.txt (line 22))
Using cached olive_ai-0.5.0-py3-none-any.whl.metadata (3.2 kB)
Collecting piexif==1.1.3 (from -r requirements_versions.txt (line 23))
Using cached piexif-1.1.3-py2.py3-none-any.whl.metadata (3.7 kB)
Collecting psutil==5.9.5 (from -r requirements_versions.txt (line 24))
Using cached psutil-5.9.5-cp36-abi3-win_amd64.whl.metadata (21 kB)
Collecting pytorch_lightning==1.9.4 (from -r requirements_versions.txt (line 25))
Using cached pytorch_lightning-1.9.4-py3-none-any.whl.metadata (22 kB)
Collecting resize-right==0.0.2 (from -r requirements_versions.txt (line 26))
Using cached resize_right-0.0.2-py3-none-any.whl.metadata (551 bytes)
Collecting safetensors==0.4.2 (from -r requirements_versions.txt (line 27))
Using cached safetensors-0.4.2-cp312-none-win_amd64.whl.metadata (3.9 kB)
Collecting scikit-image==0.21.0 (from -r requirements_versions.txt (line 28))
Using cached scikit_image-0.21.0.tar.gz (22.7 MB)
Installing build dependencies: started
Installing build dependencies: finished with status 'done'
Getting requirements to build wheel: started
Getting requirements to build wheel: finished with status 'done'
Installing backend dependencies: started
Installing backend dependencies: finished with status 'done'
Preparing metadata (pyproject.toml): started
Preparing metadata (pyproject.toml): finished with status 'error'
stderr: error: subprocess-exited-with-error
Preparing metadata (pyproject.toml) did not run successfully.
exit code: 1
[21 lines of output]
- meson setup C:\Users\dulda\AppData\Local\Temp\pip-install-fjuqkq58\scikit-image_183615ff708a4485bae24bd464f0570a C:\Users\dulda\AppData\Local\Temp\pip-install-fjuqkq58\scikit-image_183615ff708a4485bae24bd464f0570a.mesonpy-jevch6jn -Dbuildtype=release -Db_ndebug=if-release -Db_vscrt=md --native-file=C:\Users\dulda\AppData\Local\Temp\pip-install-fjuqkq58\scikit-image_183615ff708a4485bae24bd464f0570a.mesonpy-jevch6jn\meson-python-native-file.ini
The Meson build system
Version: 1.4.0
Source dir: C:\Users\dulda\AppData\Local\Temp\pip-install-fjuqkq58\scikit-image_183615ff708a4485bae24bd464f0570a
Build dir: C:\Users\dulda\AppData\Local\Temp\pip-install-fjuqkq58\scikit-image_183615ff708a4485bae24bd464f0570a.mesonpy-jevch6jn
Build type: native build
Project name: scikit-image
Project version: 0.21.0
WARNING: Failed to activate VS environment: Could not find C:\Program Files (x86)\Microsoft Visual Studio\Installer\vswhere.exe
..\meson.build:1:0: ERROR: Unknown compiler(s): [['icl'], ['cl'], ['cc'], ['gcc'], ['clang'], ['clang-cl'], ['pgcc']]
The following exception(s) were encountered:
Running icl ""
gave "[WinError 2] Sistem belirtilen dosyay bulamyor"
Running cl /?
gave "[WinError 2] Sistem belirtilen dosyay bulamyor"
Running cc --version
gave "[WinError 2] Sistem belirtilen dosyay bulamyor"
Running gcc --version
gave "[WinError 2] Sistem belirtilen dosyay bulamyor"
Running clang --version
gave "[WinError 2] Sistem belirtilen dosyay bulamyor"
Running clang-cl /?
gave "[WinError 2] Sistem belirtilen dosyay bulamyor"
Running pgcc --version
gave "[WinError 2] Sistem belirtilen dosyay bulamyor"
A full log can be found at C:\Users\dulda\AppData\Local\Temp\pip-install-fjuqkq58\scikit-image_183615ff708a4485bae24bd464f0570a.mesonpy-jevch6jn\meson-logs\meson-log.txt
[end of output]
note: This error originates from a subprocess, and is likely not a problem with pip.
error: metadata-generation-failed
Encountered error while generating package metadata.
See above for output.
note: This is an issue with the package mentioned above, not pip.
hint: See above for details.
Press any key to continue . . .
EN SON ALDIĞIM HATADIR DEDİĞİNİZİ YAPTIM
@echo off
set PYTHON=
set GIT=
set VENV_DIR=
set COMMANDLINE_ARGS=--use-directml
call webui.bat
Python 3.12 is not compatible with DirectML. Downgrade to <=3.10.
Creating venv in directory C:\Users\dulda\sd\webui\stable-diffusion-webui-directml\venv using python "C:\Users\dulda\AppData\Local\Programs\Python\Python310\python.exe"
venv "C:\Users\dulda\sd\webui\stable-diffusion-webui-directml\venv\Scripts\Python.exe"
fatal: No names found, cannot describe anything.
Python 3.10.6 (tags/v3.10.6:9c7b4bd, Aug 1 2022, 21:53:49) [MSC v.1932 64 bit (AMD64)]
Version: 1.8.0-RC
Commit hash: 25a3b6c
Installing torch and torchvision
Collecting torch==2.0.0
Downloading torch-2.0.0-cp310-cp310-win_amd64.whl (172.3 MB)
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 172.3/172.3 MB 5.0 MB/s eta 0:00:00
Collecting torchvision==0.15.1
Downloading torchvision-0.15.1-cp310-cp310-win_amd64.whl (1.2 MB)
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 1.2/1.2 MB 5.4 MB/s eta 0:00:00
Collecting torch-directml
Downloading torch_directml-0.2.0.dev230426-cp310-cp310-win_amd64.whl (8.2 MB)
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 8.2/8.2 MB 5.8 MB/s eta 0:00:00
Collecting networkx
Downloading networkx-3.2.1-py3-none-any.whl (1.6 MB)
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 1.6/1.6 MB 5.8 MB/s eta 0:00:00
Collecting typing-extensions
Downloading typing_extensions-4.10.0-py3-none-any.whl (33 kB)
Collecting filelock
Downloading filelock-3.13.3-py3-none-any.whl (11 kB)
Collecting jinja2
Downloading Jinja2-3.1.3-py3-none-any.whl (133 kB)
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 133.2/133.2 kB 4.0 MB/s eta 0:00:00
Collecting sympy
Downloading sympy-1.12-py3-none-any.whl (5.7 MB)
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 5.7/5.7 MB 5.4 MB/s eta 0:00:00
Collecting pillow!=8.3.*,>=5.3.0
Downloading pillow-10.2.0-cp310-cp310-win_amd64.whl (2.6 MB)
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 2.6/2.6 MB 4.8 MB/s eta 0:00:00
Collecting numpy
Downloading numpy-1.26.4-cp310-cp310-win_amd64.whl (15.8 MB)
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 15.8/15.8 MB 5.8 MB/s eta 0:00:00
Collecting requests
Downloading requests-2.31.0-py3-none-any.whl (62 kB)
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 62.6/62.6 kB ? eta 0:00:00
Collecting MarkupSafe>=2.0
Downloading MarkupSafe-2.1.5-cp310-cp310-win_amd64.whl (17 kB)
Collecting idna<4,>=2.5
Downloading idna-3.6-py3-none-any.whl (61 kB)
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 61.6/61.6 kB ? eta 0:00:00
Collecting charset-normalizer<4,>=2
Downloading charset_normalizer-3.3.2-cp310-cp310-win_amd64.whl (100 kB)
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 100.3/100.3 kB 6.0 MB/s eta 0:00:00
Collecting urllib3<3,>=1.21.1
Downloading urllib3-2.2.1-py3-none-any.whl (121 kB)
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 121.1/121.1 kB 7.4 MB/s eta 0:00:00
Collecting certifi>=2017.4.17
Downloading certifi-2024.2.2-py3-none-any.whl (163 kB)
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 163.8/163.8 kB 5.0 MB/s eta 0:00:00
Collecting mpmath>=0.19
Downloading mpmath-1.3.0-py3-none-any.whl (536 kB)
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 536.2/536.2 kB 5.6 MB/s eta 0:00:00
Installing collected packages: mpmath, urllib3, typing-extensions, sympy, pillow, numpy, networkx, MarkupSafe, idna, filelock, charset-normalizer, certifi, requests, jinja2, torch, torchvision, torch-directml
Successfully installed MarkupSafe-2.1.5 certifi-2024.2.2 charset-normalizer-3.3.2 filelock-3.13.3 idna-3.6 jinja2-3.1.3 mpmath-1.3.0 networkx-3.2.1 numpy-1.26.4 pillow-10.2.0 requests-2.31.0 sympy-1.12 torch-2.0.0 torch-directml-0.2.0.dev230426 torchvision-0.15.1 typing-extensions-4.10.0 urllib3-2.2.1
[notice] A new release of pip available: 22.2.1 -> 24.0
[notice] To update, run: C:\Users\dulda\sd\webui\stable-diffusion-webui-directml\venv\Scripts\python.exe -m pip install --upgrade pip
Failed to automatically patch torch with ZLUDA. Could not find ZLUDA from PATH.
Installing clip
Installing open_clip
Installing requirements
python 3.10 düşürdüm şimdide bu hatayı alıyorum
venv "C:\Users\dulda\sd\webui\stable-diffusion-webui-directml\venv\Scripts\Python.exe"
fatal: No names found, cannot describe anything.
Python 3.10.6 (tags/v3.10.6:9c7b4bd, Aug 1 2022, 21:53:49) [MSC v.1932 64 bit (AMD64)]
Version: 1.8.0-RC
Commit hash: 25a3b6c
Installing requirements
@echo off
set PYTHON=
set GIT=
set VENV_DIR=
set COMMANDLINE_ARGS=--use-directml --use-zluda
call webui.bat
kodları böyle yaptğımdada bu hatayı veriyor
You should have only one of --use-directml
and --use-zluda
.
For GCN cards (~Radeon VII), add only --use-directml
.
For other newer cards, try --use-zluda
instead of --use-directml
.
--use-zluda bunda hata veriyor
Amd Radeon RX6750 XT 12GB ekran kartım
--use-directml
venv "C:\Users\dulda\sd\webui\stable-diffusion-webui-directml\venv\Scripts\Python.exe"
fatal: No names found, cannot describe anything.
Python 3.10.6 (tags/v3.10.6:9c7b4bd, Aug 1 2022, 21:53:49) [MSC v.1932 64 bit (AMD64)]
Version: 1.8.0-RC
Commit hash: 25a3b6c
Installing requirements
@echo off
set PYTHON=
set GIT=
set VENV_DIR=
modifed line
set COMMANDLINE_ARGS=--use-directml
call webui.bat
bölye yaptım çalıştı teşekkürler