lllyasviel / lllyasviel/stable-diffusion-webui-forge

RuntimeError: Couldn't install clip.

Open
#2,385 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
Python
Stars
13k
Forks
1.7k
PR merge metrics
No merged PRs in 30d

Description

When running `run.bat`, I get this error
```
Installing clip
Traceback (most recent call last):
File "Z:\docker\webui_forge_cu121_torch231\webui\launch.py", line 51, in
main()
File "Z:\docker\webui_forge_cu121_torch231\webui\launch.py", line 39, in main
prepare_environment()
File "Z:\docker\webui_forge_cu121_torch231\webui\modules\launch_utils.py", line 443, in prepare_environment
run_pip(f"install {clip_package}", "clip")
File "Z:\docker\webui_forge_cu121_torch231\webui\modules\launch_utils.py", line 153, in run_pip
return run(f'"{python}" -m pip {command} --prefer-binary{index_url_line}', desc=f"Installing {desc}", errdesc=f"Couldn't install {desc}", live=live)
File "Z:\docker\webui_forge_cu121_torch231\webui\modules\launch_utils.py", line 125, in run
raise RuntimeError("\n".join(error_bits))
RuntimeError: Couldn't install clip.
Command: "Z:\docker\webui_forge_cu121_torch231\system\python\python.exe" -m pip install https://github.com/openai/CLIP/archive/d50d76daa670286dd6cacf3bcd80b5e4823fc8e1.zip --prefer-binary
Error code: 1
stdout: Collecting https://github.com/openai/CLIP/archive/d50d76daa670286dd6cacf3bcd80b5e4823fc8e1.zip
Using cached https://github.com/openai/CLIP/archive/d50d76daa670286dd6cacf3bcd80b5e4823fc8e1.zip (4.3 MB)
Preparing metadata (setup.py): started
Preparing metadata (setup.py): finished with status 'error'

stderr: error: subprocess-exited-with-error

python setup.py egg_info did not run successfully.
exit code: 1

[10 lines of output]
Traceback (most recent call last):
File "", line 2, in
File "", line 14, in
File "", line 1027, in _find_and_load
File "", line 1006, in _find_and_load_unlocked
File "", line 688, in _load_unlocked
File "", line 879, in exec_module
File "", line 1012, in get_code
File "", line 672, in _compile_bytecode
ValueError: bad marshal data (unknown type code)
[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.
```
How can I fix this?

Contributor guide

No contributing guide indexed for this repository

Research direction

Start by reproducing the failure with run.bat and follow the setup path through launch.py and modules/launch_utils.py, especially the clip installation call. Inspect the reported pip output and the referenced OpenAI CLIP archive. Done means identifying a repository-side fix or documenting that the failure is caused by the local Python environment, then confirming that run.bat completes installation.

Written by the indexing model from the issue text.

Assessment

Tech stack
python
Domain
tooling
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.