Skip to content

CLIP compilation problem #532

@Xwhite4111

Description

@Xwhite4111

F:\Stable Diffusion\stable-diffusion-webui>.\venv\Scripts\activate

(venv) F:\Stable Diffusion\stable-diffusion-webui>webui-user.bat
venv "F:\Stable Diffusion\stable-diffusion-webui\venv\Scripts\Python.exe"
Python 3.10.6 (tags/v3.10.6:9c7b4bd, Aug 1 2022, 21:53:49) [MSC v.1932 64 bit (AMD64)]
Version: v1.10.1
Commit hash: 82a973c04367123ae98bd9abdf80d9eda9b910e2
Installing clip
Traceback (most recent call last):
File "F:\Stable Diffusion\stable-diffusion-webui\launch.py", line 48, in
main()
File "F:\Stable Diffusion\stable-diffusion-webui\launch.py", line 39, in main
prepare_environment()
File "F:\Stable Diffusion\stable-diffusion-webui\modules\launch_utils.py", line 394, in prepare_environment
run_pip(f"install {clip_package}", "clip")
File "F:\Stable Diffusion\stable-diffusion-webui\modules\launch_utils.py", line 144, 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 "F:\Stable Diffusion\stable-diffusion-webui\modules\launch_utils.py", line 116, in run
raise RuntimeError("\n".join(error_bits))
RuntimeError: Couldn't install clip.
Command: "F:\Stable Diffusion\stable-diffusion-webui\venv\Scripts\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)
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: error: subprocess-exited-with-error

Getting requirements to build wheel did not run successfully.
exit code: 1

[17 lines of output]
Traceback (most recent call last):
File "F:\Stable Diffusion\stable-diffusion-webui\venv\lib\site-packages\pip_vendor\pyproject_hooks_in_process_in_process.py", line 389, in
main()
File "F:\Stable Diffusion\stable-diffusion-webui\venv\lib\site-packages\pip_vendor\pyproject_hooks_in_process_in_process.py", line 373, in main
json_out["return_val"] = hook(**hook_input["kwargs"])
File "F:\Stable Diffusion\stable-diffusion-webui\venv\lib\site-packages\pip_vendor\pyproject_hooks_in_process_in_process.py", line 143, in get_requires_for_build_wheel
return hook(config_settings)
File "C:\Users\yasin\AppData\Local\Temp\pip-build-env-hodtfdh0\overlay\Lib\site-packages\setuptools\build_meta.py", line 333, in get_requires_for_build_wheel
return self._get_build_requires(config_settings, requirements=[])
File "C:\Users\yasin\AppData\Local\Temp\pip-build-env-hodtfdh0\overlay\Lib\site-packages\setuptools\build_meta.py", line 301, in _get_build_requires
self.run_setup()
File "C:\Users\yasin\AppData\Local\Temp\pip-build-env-hodtfdh0\overlay\Lib\site-packages\setuptools\build_meta.py", line 520, in run_setup
super().run_setup(setup_script=setup_script)
File "C:\Users\yasin\AppData\Local\Temp\pip-build-env-hodtfdh0\overlay\Lib\site-packages\setuptools\build_meta.py", line 317, in run_setup
exec(code, locals())
File "", line 3, in
ModuleNotFoundError: No module named 'pkg_resources'
[end of output]

note: This error originates from a subprocess, and is likely not a problem with pip.
ERROR: Failed to build 'https://github.com/openai/CLIP/archive/d50d76daa670286dd6cacf3bcd80b5e4823fc8e1.zip' when getting requirements to build wheel

Press any key to continue . . .

(venv) F:\Stable Diffusion\stable-diffusion-webui>python -m pip install --upgrade pip setuptools wheel
Requirement already satisfied: pip in .\venv\lib\site-packages (26.0.1)
Requirement already satisfied: setuptools in .\venv\lib\site-packages (63.2.0)
Collecting setuptools
Using cached setuptools-82.0.0-py3-none-any.whl.metadata (6.6 kB)
Collecting wheel
Downloading wheel-0.46.3-py3-none-any.whl.metadata (2.4 kB)
Collecting packaging>=24.0 (from wheel)
Downloading packaging-26.0-py3-none-any.whl.metadata (3.3 kB)
Using cached setuptools-82.0.0-py3-none-any.whl (1.0 MB)
Downloading wheel-0.46.3-py3-none-any.whl (30 kB)
Downloading packaging-26.0-py3-none-any.whl (74 kB)
Installing collected packages: setuptools, packaging, wheel
Attempting uninstall: setuptools
Found existing installation: setuptools 63.2.0
Uninstalling setuptools-63.2.0:
Successfully uninstalled setuptools-63.2.0
Successfully installed packaging-26.0 setuptools-82.0.0 wheel-0.46.3

(venv) F:\Stable Diffusion\stable-diffusion-webui>webui-user.bat
venv "F:\Stable Diffusion\stable-diffusion-webui\venv\Scripts\Python.exe"
Python 3.10.6 (tags/v3.10.6:9c7b4bd, Aug 1 2022, 21:53:49) [MSC v.1932 64 bit (AMD64)]
Version: v1.10.1
Commit hash: 82a973c04367123ae98bd9abdf80d9eda9b910e2
Installing clip
Traceback (most recent call last):
File "F:\Stable Diffusion\stable-diffusion-webui\launch.py", line 48, in
main()
File "F:\Stable Diffusion\stable-diffusion-webui\launch.py", line 39, in main
prepare_environment()
File "F:\Stable Diffusion\stable-diffusion-webui\modules\launch_utils.py", line 394, in prepare_environment
run_pip(f"install {clip_package}", "clip")
File "F:\Stable Diffusion\stable-diffusion-webui\modules\launch_utils.py", line 144, 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 "F:\Stable Diffusion\stable-diffusion-webui\modules\launch_utils.py", line 116, in run
raise RuntimeError("\n".join(error_bits))
RuntimeError: Couldn't install clip.
Command: "F:\Stable Diffusion\stable-diffusion-webui\venv\Scripts\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)
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: error: subprocess-exited-with-error

Getting requirements to build wheel did not run successfully.
exit code: 1

[17 lines of output]
Traceback (most recent call last):
File "F:\Stable Diffusion\stable-diffusion-webui\venv\lib\site-packages\pip_vendor\pyproject_hooks_in_process_in_process.py", line 389, in
main()
File "F:\Stable Diffusion\stable-diffusion-webui\venv\lib\site-packages\pip_vendor\pyproject_hooks_in_process_in_process.py", line 373, in main
json_out["return_val"] = hook(**hook_input["kwargs"])
File "F:\Stable Diffusion\stable-diffusion-webui\venv\lib\site-packages\pip_vendor\pyproject_hooks_in_process_in_process.py", line 143, in get_requires_for_build_wheel
return hook(config_settings)
File "C:\Users\yasin\AppData\Local\Temp\pip-build-env-5bcd22l0\overlay\Lib\site-packages\setuptools\build_meta.py", line 333, in get_requires_for_build_wheel
return self._get_build_requires(config_settings, requirements=[])
File "C:\Users\yasin\AppData\Local\Temp\pip-build-env-5bcd22l0\overlay\Lib\site-packages\setuptools\build_meta.py", line 301, in _get_build_requires
self.run_setup()
File "C:\Users\yasin\AppData\Local\Temp\pip-build-env-5bcd22l0\overlay\Lib\site-packages\setuptools\build_meta.py", line 520, in run_setup
super().run_setup(setup_script=setup_script)
File "C:\Users\yasin\AppData\Local\Temp\pip-build-env-5bcd22l0\overlay\Lib\site-packages\setuptools\build_meta.py", line 317, in run_setup
exec(code, locals())
File "", line 3, in
ModuleNotFoundError: No module named 'pkg_resources'
[end of output]

note: This error originates from a subprocess, and is likely not a problem with pip.
ERROR: Failed to build 'https://github.com/openai/CLIP/archive/d50d76daa670286dd6cacf3bcd80b5e4823fc8e1.zip' when getting requirements to build wheel

Press any key to continue . . .

(venv) F:\Stable Diffusion\stable-diffusion-webui>deactivate
F:\Stable Diffusion\stable-diffusion-webui>.\venv\Scripts\activate

(venv) F:\Stable Diffusion\stable-diffusion-webui>.\venv\Scripts\deactivate
F:\Stable Diffusion\stable-diffusion-webui>webui-user.bat
venv "F:\Stable Diffusion\stable-diffusion-webui\venv\Scripts\Python.exe"
Python 3.10.6 (tags/v3.10.6:9c7b4bd, Aug 1 2022, 21:53:49) [MSC v.1932 64 bit (AMD64)]
Version: v1.10.1
Commit hash: 82a973c04367123ae98bd9abdf80d9eda9b910e2
Installing clip
Traceback (most recent call last):
File "F:\Stable Diffusion\stable-diffusion-webui\launch.py", line 48, in
main()
File "F:\Stable Diffusion\stable-diffusion-webui\launch.py", line 39, in main
prepare_environment()
File "F:\Stable Diffusion\stable-diffusion-webui\modules\launch_utils.py", line 394, in prepare_environment
run_pip(f"install {clip_package}", "clip")
File "F:\Stable Diffusion\stable-diffusion-webui\modules\launch_utils.py", line 144, 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 "F:\Stable Diffusion\stable-diffusion-webui\modules\launch_utils.py", line 116, in run
raise RuntimeError("\n".join(error_bits))
RuntimeError: Couldn't install clip.
Command: "F:\Stable Diffusion\stable-diffusion-webui\venv\Scripts\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)
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: error: subprocess-exited-with-error

Getting requirements to build wheel did not run successfully.
exit code: 1

[17 lines of output]
Traceback (most recent call last):
File "F:\Stable Diffusion\stable-diffusion-webui\venv\lib\site-packages\pip_vendor\pyproject_hooks_in_process_in_process.py", line 389, in
main()
File "F:\Stable Diffusion\stable-diffusion-webui\venv\lib\site-packages\pip_vendor\pyproject_hooks_in_process_in_process.py", line 373, in main
json_out["return_val"] = hook(**hook_input["kwargs"])
File "F:\Stable Diffusion\stable-diffusion-webui\venv\lib\site-packages\pip_vendor\pyproject_hooks_in_process_in_process.py", line 143, in get_requires_for_build_wheel
return hook(config_settings)
File "C:\Users\yasin\AppData\Local\Temp\pip-build-env-iuiiao48\overlay\Lib\site-packages\setuptools\build_meta.py", line 333, in get_requires_for_build_wheel
return self._get_build_requires(config_settings, requirements=[])
File "C:\Users\yasin\AppData\Local\Temp\pip-build-env-iuiiao48\overlay\Lib\site-packages\setuptools\build_meta.py", line 301, in _get_build_requires
self.run_setup()
File "C:\Users\yasin\AppData\Local\Temp\pip-build-env-iuiiao48\overlay\Lib\site-packages\setuptools\build_meta.py", line 520, in run_setup
super().run_setup(setup_script=setup_script)
File "C:\Users\yasin\AppData\Local\Temp\pip-build-env-iuiiao48\overlay\Lib\site-packages\setuptools\build_meta.py", line 317, in run_setup
exec(code, locals())
File "", line 3, in
ModuleNotFoundError: No module named 'pkg_resources'
[end of output]

note: This error originates from a subprocess, and is likely not a problem with pip.
ERROR: Failed to build 'https://github.com/openai/CLIP/archive/d50d76daa670286dd6cacf3bcd80b5e4823fc8e1.zip' when getting requirements to build wheel

Press any key to continue . . .

(venv) F:\Stable Diffusion\stable-diffusion-webui>.\venv\Scripts\activate

(venv) F:\Stable Diffusion\stable-diffusion-webui>webui-user.bat
venv "F:\Stable Diffusion\stable-diffusion-webui\venv\Scripts\Python.exe"
Python 3.10.6 (tags/v3.10.6:9c7b4bd, Aug 1 2022, 21:53:49) [MSC v.1932 64 bit (AMD64)]
Version: v1.10.1
Commit hash: 82a973c04367123ae98bd9abdf80d9eda9b910e2
Installing clip
Traceback (most recent call last):
File "F:\Stable Diffusion\stable-diffusion-webui\launch.py", line 48, in
main()
File "F:\Stable Diffusion\stable-diffusion-webui\launch.py", line 39, in main
prepare_environment()
File "F:\Stable Diffusion\stable-diffusion-webui\modules\launch_utils.py", line 394, in prepare_environment
run_pip(f"install {clip_package}", "clip")
File "F:\Stable Diffusion\stable-diffusion-webui\modules\launch_utils.py", line 144, 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 "F:\Stable Diffusion\stable-diffusion-webui\modules\launch_utils.py", line 116, in run
raise RuntimeError("\n".join(error_bits))
RuntimeError: Couldn't install clip.
Command: "F:\Stable Diffusion\stable-diffusion-webui\venv\Scripts\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)
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: error: subprocess-exited-with-error

Getting requirements to build wheel did not run successfully.
exit code: 1

[17 lines of output]
Traceback (most recent call last):
File "F:\Stable Diffusion\stable-diffusion-webui\venv\lib\site-packages\pip_vendor\pyproject_hooks_in_process_in_process.py", line 389, in
main()
File "F:\Stable Diffusion\stable-diffusion-webui\venv\lib\site-packages\pip_vendor\pyproject_hooks_in_process_in_process.py", line 373, in main
json_out["return_val"] = hook(**hook_input["kwargs"])
File "F:\Stable Diffusion\stable-diffusion-webui\venv\lib\site-packages\pip_vendor\pyproject_hooks_in_process_in_process.py", line 143, in get_requires_for_build_wheel
return hook(config_settings)
File "C:\Users\yasin\AppData\Local\Temp\pip-build-env-sf54pf2m\overlay\Lib\site-packages\setuptools\build_meta.py", line 333, in get_requires_for_build_wheel
return self._get_build_requires(config_settings, requirements=[])
File "C:\Users\yasin\AppData\Local\Temp\pip-build-env-sf54pf2m\overlay\Lib\site-packages\setuptools\build_meta.py", line 301, in _get_build_requires
self.run_setup()
File "C:\Users\yasin\AppData\Local\Temp\pip-build-env-sf54pf2m\overlay\Lib\site-packages\setuptools\build_meta.py", line 520, in run_setup
super().run_setup(setup_script=setup_script)
File "C:\Users\yasin\AppData\Local\Temp\pip-build-env-sf54pf2m\overlay\Lib\site-packages\setuptools\build_meta.py", line 317, in run_setup
exec(code, locals())
File "", line 3, in
ModuleNotFoundError: No module named 'pkg_resources'
[end of output]

note: This error originates from a subprocess, and is likely not a problem with pip.
ERROR: Failed to build 'https://github.com/openai/CLIP/archive/d50d76daa670286dd6cacf3bcd80b5e4823fc8e1.zip' when getting requirements to build wheel

Press any key to continue . . .

(venv) F:\Stable Diffusion\stable-diffusion-webui># For Windows, inside the main folder:
'#' is not recognized as an internal or external command,
operable program or batch file.

(venv) F:\Stable Diffusion\stable-diffusion-webui>venv\Scripts\python.exe -m ensurepip --upgrade
Looking in links: c:\Users\yasin\AppData\Local\Temp\tmpopu30jti
Requirement already satisfied: setuptools in f:\stable diffusion\stable-diffusion-webui\venv\lib\site-packages (82.0.0)
Requirement already satisfied: pip in f:\stable diffusion\stable-diffusion-webui\venv\lib\site-packages (26.0.1)

(venv) F:\Stable Diffusion\stable-diffusion-webui>venv\Scripts\python.exe -m pip install --upgrade pip setuptools wheel
Requirement already satisfied: pip in .\venv\lib\site-packages (26.0.1)
Requirement already satisfied: setuptools in .\venv\lib\site-packages (82.0.0)
Requirement already satisfied: wheel in .\venv\lib\site-packages (0.46.3)
Requirement already satisfied: packaging>=24.0 in .\venv\lib\site-packages (from wheel) (26.0)

(venv) F:\Stable Diffusion\stable-diffusion-webui>
(venv) F:\Stable Diffusion\stable-diffusion-webui># For Linux/macOS, after activating the venv:
'#' is not recognized as an internal or external command,
operable program or batch file.

(venv) F:\Stable Diffusion\stable-diffusion-webui>python3 -m ensurepip --upgrade
Python was not found; run without arguments to install from the Microsoft Store, or disable this shortcut from Settings > Apps > Advanced app settings > App execution aliases.

(venv) F:\Stable Diffusion\stable-diffusion-webui>python3 -m pip install --upgrade pip setuptools wheel
Python was not found; run without arguments to install from the Microsoft Store, or disable this shortcut from Settings > Apps > Advanced app settings > App execution aliases.

(venv) F:\Stable Diffusion\stable-diffusion-webui>venv\Scripts\activate.bat

(venv) F:\Stable Diffusion\stable-diffusion-webui>pip install https://github.com/openai/CLIP/archive/d50d76daa670286dd6cacf3bcd80b5e4823fc8e1.zip --no-build-isolation
Collecting https://github.com/openai/CLIP/archive/d50d76daa670286dd6cacf3bcd80b5e4823fc8e1.zip
Using cached https://github.com/openai/CLIP/archive/d50d76daa670286dd6cacf3bcd80b5e4823fc8e1.zip (4.3 MB)
Preparing metadata (pyproject.toml) ... error
error: subprocess-exited-with-error

× Preparing metadata (pyproject.toml) did not run successfully.
│ exit code: 1
╰─> [15 lines of output]
Traceback (most recent call last):
File "F:\Stable Diffusion\stable-diffusion-webui\venv\lib\site-packages\pip_vendor\pyproject_hooks_in_process_in_process.py", line 389, in
main()
File "F:\Stable Diffusion\stable-diffusion-webui\venv\lib\site-packages\pip_vendor\pyproject_hooks_in_process_in_process.py", line 373, in main
json_out["return_val"] = hook(**hook_input["kwargs"])
File "F:\Stable Diffusion\stable-diffusion-webui\venv\lib\site-packages\pip_vendor\pyproject_hooks_in_process_in_process.py", line 175, in prepare_metadata_for_build_wheel
return hook(metadata_directory, config_settings)
File "F:\Stable Diffusion\stable-diffusion-webui\venv\lib\site-packages\setuptools\build_meta.py", line 380, in prepare_metadata_for_build_wheel
self.run_setup()
File "F:\Stable Diffusion\stable-diffusion-webui\venv\lib\site-packages\setuptools\build_meta.py", line 520, in run_setup
super().run_setup(setup_script=setup_script)
File "F:\Stable Diffusion\stable-diffusion-webui\venv\lib\site-packages\setuptools\build_meta.py", line 317, in run_setup
exec(code, locals())
File "", line 3, in
ModuleNotFoundError: No module named 'pkg_resources'
[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.
╰─> from https://github.com/openai/CLIP/archive/d50d76daa670286dd6cacf3bcd80b5e4823fc8e1.zip

note: This is an issue with the package mentioned above, not pip.
hint: See above for details.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions