lllyasviel / lllyasviel/stable-diffusion-webui-forge
problems with sertificates on dowloading zips
Nobody has claimed this yet.
- Dominant language
- Python
- Stars
- 13k
- Forks
- 1.7k
- PR merge metrics
- No merged PRs in 30d
Description
to fix errors like: stderr: WARNING: Certificate did not match expected hostname: codeload.github.com
open webui/modules/launch_utils.py with notepad (or anything you like) and change clip_package = os.environ.get('CLIP_PACKAGE', "https://github.com/openai/CLIP/archive/d50d76daa670286dd6cacf3bcd80b5e4823fc8e1.zip") to clip_package = os.environ.get('CLIP_PACKAGE', "git+https://github.com/openai/CLIP.git"). But with openclip_package = os.environ.get('OPENCLIP_PACKAGE', "https://github.com/mlfoundations/open_clip/archive/bb6e834e9c70d9c27d0dc3ecedeebeaeb1ffad6b.zip") to openclip_package = os.environ.get('OPENCLIP_PACKAGE', "git+https://github.com/mlfoundations/open_clip.git") doesn't work. Error code: Traceback (most recent call last):
File "D:\Загрузки\webui_forge_cu121_torch231\webui\launch.py", line 54, in
main()
File "D:\Загрузки\webui_forge_cu121_torch231\webui\launch.py", line 42, in main
prepare_environment()
File "D:\Загрузки\webui_forge_cu121_torch231\webui\modules\launch_utils.py", line 449, in prepare_environment
run_pip(f"install {openclip_package}", "open_clip")
File "D:\Загрузки\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 "D:\Загрузки\webui_forge_cu121_torch231\webui\modules\launch_utils.py", line 125, in run
raise RuntimeError("\n".join(error_bits))
RuntimeError: Couldn't install open_clip.
Command: "D:\Загрузки\webui_forge_cu121_torch231\system\python\python.exe" -m pip install git+https://github.com/mlfoundations/open_clip.git --prefer-binary
Error code: 1
stdout: Collecting git+https://github.com/mlfoundations/open_clip.git
Cloning https://github.com/mlfoundations/open_clip.git to c:\users\pitte.desktop-hi6m7s1\appdata\local\temp\pip-req-build-f7rit9ws
Resolved https://github.com/mlfoundations/open_clip.git to commit 49eac2f27a5bb98a7f7ecc1154918880aa55256c
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 'error'
stderr: Running command git clone --filter=blob:none --quiet https://github.com/mlfoundations/open_clip.git 'C:\Users\Pitte.DESKTOP-HI6M7S1\AppData\Local\Temp\pip-req-build-f7rit9ws'
error: subprocess-exited-with-error
Getting requirements to build wheel did not run successfully.
exit code: 1
[18 lines of output]
Traceback (most recent call last):
File "D:\webui_forge_cu121_torch231\system\python\lib\site-packages\pip_vendor\pyproject_hooks_in_process_in_process.py", line 353, in
main()
File "D:\webui_forge_cu121_torch231\system\python\lib\site-packages\pip_vendor\pyproject_hooks_in_process_in_process.py", line 335, in main
json_out['return_val'] = hook(**hook_input['kwargs'])
File "D:\webui_forge_cu121_torch231\system\python\lib\site-packages\pip_vendor\pyproject_hooks_in_process_in_process.py", line 118, in get_requires_for_build_wheel
return hook(config_settings)
File "C:\Users\Pitte.DESKTOP-HI6M7S1\AppData\Local\Temp\pip-build-env-87m64f01\overlay\Lib\site-packages\pdm\backend_init_.py", line 21, in get_requires_for_build_wheel
from pdm.backend.wheel import WheelBuilder
File "C:\Users\Pitte.DESKTOP-HI6M7S1\AppData\Local\Temp\pip-build-env-87m64f01\overlay\Lib\site-packages\pdm\backend\wheel.py", line 14, in
from importlib.metadata import version as get_version
File "importlib\metadata_init_.py", line 17, in
return resources.as_file(
File "importlib\metadata_adapters.py", line 3, in
File "email\message.py", line 15, in
File "email\utils.py", line 29, in
File "socket.py", line 51, in
ModuleNotFoundError: No module named '_socket'
[end of output]
note: This error originates from a subprocess, and is likely not a problem with pip.
error: subprocess-exited-with-error
Getting requirements to build wheel did not run successfully.
exit code: 1
See above for output.
note: This error originates from a subprocess, and is likely not a problem with pip.
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start with webui/modules/launch_utils.py, especially prepare_environment and run_pip, and reproduce the open_clip installation command shown in the traceback. Compare the certificate warning and the later ModuleNotFoundError for _socket to determine the relevant failure path. Done means the affected dependency installation completes successfully in the reported Windows environment without the documented error.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- git, python
- Domain
- build-system, tooling
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 25/100