Skip to content

[Bug]: couldnt install open_clip #17432

Description

@mathewceli1-lab

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?

I tried to install but this is showing i have a 5070rtx

Steps to reproduce the problem

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-96-g1937682a
Commit hash: 1937682
Installing open_clip
Traceback (most recent call last):
File "C:\Users\mathe\Downloads\sd.webui\webui\launch.py", line 53, in
main()
File "C:\Users\mathe\Downloads\sd.webui\webui\launch.py", line 44, in main
prepare_environment()
File "C:\Users\mathe\Downloads\sd.webui\webui\modules\launch_utils.py", line 446, in prepare_environment
run_pip(f"install {openclip_package}", "open_clip")
File "C:\Users\mathe\Downloads\sd.webui\webui\modules\launch_utils.py", line 142, 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 "C:\Users\mathe\Downloads\sd.webui\webui\modules\launch_utils.py", line 114, in run
raise RuntimeError("\n".join(error_bits))
RuntimeError: Couldn't install open_clip.
Command: "C:\Users\mathe\Downloads\sd.webui\system\python\python.exe" -m pip install https://github.com/mlfoundations/open_clip/archive/bb6e834e9c70d9c27d0dc3ecedeebeaeb1ffad6b.zip --prefer-binary
Error code: 2
stdout: Collecting https://github.com/mlfoundations/open_clip/archive/bb6e834e9c70d9c27d0dc3ecedeebeaeb1ffad6b.zip
Using cached bb6e834e9c70d9c27d0dc3ecedeebeaeb1ffad6b.zip (10.0 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'

stderr: ERROR: Exception:
Traceback (most recent call last):
File "C:\Users\mathe\Downloads\sd.webui\system\python\lib\site-packages\pip_internal\cli\base_command.py", line 109, in _run_wrapper
status = _inner_run()
File "C:\Users\mathe\Downloads\sd.webui\system\python\lib\site-packages\pip_internal\cli\base_command.py", line 102, in _inner_run
return self.run(options, args)
File "C:\Users\mathe\Downloads\sd.webui\system\python\lib\site-packages\pip_internal\cli\req_command.py", line 101, in wrapper
return func(self, options, args)
File "C:\Users\mathe\Downloads\sd.webui\system\python\lib\site-packages\pip_internal\commands\install.py", line 479, in run
requirement_set = resolver.resolve(
File "C:\Users\mathe\Downloads\sd.webui\system\python\lib\site-packages\pip_internal\resolution\resolvelib\resolver.py", line 79, in resolve
collected = self.factory.collect_root_requirements(root_reqs)
File "C:\Users\mathe\Downloads\sd.webui\system\python\lib\site-packages\pip_internal\resolution\resolvelib\factory.py", line 597, in collect_root_requirements
reqs = list(
File "C:\Users\mathe\Downloads\sd.webui\system\python\lib\site-packages\pip_internal\resolution\resolvelib\factory.py", line 553, in _make_requirements_from_install_req
cand = self._make_base_candidate_from_link(
File "C:\Users\mathe\Downloads\sd.webui\system\python\lib\site-packages\pip_internal\resolution\resolvelib\factory.py", line 228, in _make_base_candidate_from_link
self._link_candidate_cache[link] = LinkCandidate(
File "C:\Users\mathe\Downloads\sd.webui\system\python\lib\site-packages\pip_internal\resolution\resolvelib\candidates.py", line 326, in init
super().init(
File "C:\Users\mathe\Downloads\sd.webui\system\python\lib\site-packages\pip_internal\resolution\resolvelib\candidates.py", line 168, in init
self.dist = self._prepare()
File "C:\Users\mathe\Downloads\sd.webui\system\python\lib\site-packages\pip_internal\resolution\resolvelib\candidates.py", line 246, in _prepare
dist = self._prepare_distribution()
File "C:\Users\mathe\Downloads\sd.webui\system\python\lib\site-packages\pip_internal\resolution\resolvelib\candidates.py", line 337, in _prepare_distribution
return preparer.prepare_linked_requirement(self._ireq, parallel_builds=True)
File "C:\Users\mathe\Downloads\sd.webui\system\python\lib\site-packages\pip_internal\operations\prepare.py", line 542, in prepare_linked_requirement
return self._prepare_linked_requirement(req, parallel_builds)
File "C:\Users\mathe\Downloads\sd.webui\system\python\lib\site-packages\pip_internal\operations\prepare.py", line 661, in _prepare_linked_requirement
dist = _get_prepared_distribution(
File "C:\Users\mathe\Downloads\sd.webui\system\python\lib\site-packages\pip_internal\operations\prepare.py", line 77, in _get_prepared_distribution
abstract_dist.prepare_distribution_metadata(
File "C:\Users\mathe\Downloads\sd.webui\system\python\lib\site-packages\pip_internal\distributions\sdist.py", line 55, in prepare_distribution_metadata
self._install_build_reqs(build_env_installer)
File "C:\Users\mathe\Downloads\sd.webui\system\python\lib\site-packages\pip_internal\distributions\sdist.py", line 132, in _install_build_reqs
build_reqs = self._get_build_requires_wheel()
File "C:\Users\mathe\Downloads\sd.webui\system\python\lib\site-packages\pip_internal\distributions\sdist.py", line 107, in _get_build_requires_wheel
return backend.get_requires_for_build_wheel()
File "C:\Users\mathe\Downloads\sd.webui\system\python\lib\site-packages\pip_internal\utils\misc.py", line 700, in get_requires_for_build_wheel
return super().get_requires_for_build_wheel(config_settings=cs)
File "C:\Users\mathe\Downloads\sd.webui\system\python\lib\site-packages\pip_vendor\pyproject_hooks_impl.py", line 196, in get_requires_for_build_wheel
return self._call_hook(
File "C:\Users\mathe\Downloads\sd.webui\system\python\lib\site-packages\pip_vendor\pyproject_hooks_impl.py", line 402, in _call_hook
raise BackendUnavailable(
pip._vendor.pyproject_hooks._impl.BackendUnavailable: Cannot import 'setuptools.build_meta'

Presione una tecla para continuar . . .

What should have happened?

oppened the program

What browsers do you use to access the UI ?

No response

Sysinfo

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-96-g1937682a
Commit hash: 1937682
Installing open_clip
Traceback (most recent call last):
File "C:\Users\mathe\Downloads\sd.webui\webui\launch.py", line 53, in
main()
File "C:\Users\mathe\Downloads\sd.webui\webui\launch.py", line 44, in main
prepare_environment()
File "C:\Users\mathe\Downloads\sd.webui\webui\modules\launch_utils.py", line 446, in prepare_environment
run_pip(f"install {openclip_package}", "open_clip")
File "C:\Users\mathe\Downloads\sd.webui\webui\modules\launch_utils.py", line 142, 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 "C:\Users\mathe\Downloads\sd.webui\webui\modules\launch_utils.py", line 114, in run
raise RuntimeError("\n".join(error_bits))
RuntimeError: Couldn't install open_clip.
Command: "C:\Users\mathe\Downloads\sd.webui\system\python\python.exe" -m pip install https://github.com/mlfoundations/open_clip/archive/bb6e834e9c70d9c27d0dc3ecedeebeaeb1ffad6b.zip --prefer-binary
Error code: 2
stdout: Collecting https://github.com/mlfoundations/open_clip/archive/bb6e834e9c70d9c27d0dc3ecedeebeaeb1ffad6b.zip
Using cached bb6e834e9c70d9c27d0dc3ecedeebeaeb1ffad6b.zip (10.0 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'

stderr: ERROR: Exception:
Traceback (most recent call last):
File "C:\Users\mathe\Downloads\sd.webui\system\python\lib\site-packages\pip_internal\cli\base_command.py", line 109, in _run_wrapper
status = _inner_run()
File "C:\Users\mathe\Downloads\sd.webui\system\python\lib\site-packages\pip_internal\cli\base_command.py", line 102, in _inner_run
return self.run(options, args)
File "C:\Users\mathe\Downloads\sd.webui\system\python\lib\site-packages\pip_internal\cli\req_command.py", line 101, in wrapper
return func(self, options, args)
File "C:\Users\mathe\Downloads\sd.webui\system\python\lib\site-packages\pip_internal\commands\install.py", line 479, in run
requirement_set = resolver.resolve(
File "C:\Users\mathe\Downloads\sd.webui\system\python\lib\site-packages\pip_internal\resolution\resolvelib\resolver.py", line 79, in resolve
collected = self.factory.collect_root_requirements(root_reqs)
File "C:\Users\mathe\Downloads\sd.webui\system\python\lib\site-packages\pip_internal\resolution\resolvelib\factory.py", line 597, in collect_root_requirements
reqs = list(
File "C:\Users\mathe\Downloads\sd.webui\system\python\lib\site-packages\pip_internal\resolution\resolvelib\factory.py", line 553, in _make_requirements_from_install_req
cand = self._make_base_candidate_from_link(
File "C:\Users\mathe\Downloads\sd.webui\system\python\lib\site-packages\pip_internal\resolution\resolvelib\factory.py", line 228, in _make_base_candidate_from_link
self._link_candidate_cache[link] = LinkCandidate(
File "C:\Users\mathe\Downloads\sd.webui\system\python\lib\site-packages\pip_internal\resolution\resolvelib\candidates.py", line 326, in init
super().init(
File "C:\Users\mathe\Downloads\sd.webui\system\python\lib\site-packages\pip_internal\resolution\resolvelib\candidates.py", line 168, in init
self.dist = self._prepare()
File "C:\Users\mathe\Downloads\sd.webui\system\python\lib\site-packages\pip_internal\resolution\resolvelib\candidates.py", line 246, in _prepare
dist = self._prepare_distribution()
File "C:\Users\mathe\Downloads\sd.webui\system\python\lib\site-packages\pip_internal\resolution\resolvelib\candidates.py", line 337, in _prepare_distribution
return preparer.prepare_linked_requirement(self._ireq, parallel_builds=True)
File "C:\Users\mathe\Downloads\sd.webui\system\python\lib\site-packages\pip_internal\operations\prepare.py", line 542, in prepare_linked_requirement
return self._prepare_linked_requirement(req, parallel_builds)
File "C:\Users\mathe\Downloads\sd.webui\system\python\lib\site-packages\pip_internal\operations\prepare.py", line 661, in _prepare_linked_requirement
dist = _get_prepared_distribution(
File "C:\Users\mathe\Downloads\sd.webui\system\python\lib\site-packages\pip_internal\operations\prepare.py", line 77, in _get_prepared_distribution
abstract_dist.prepare_distribution_metadata(
File "C:\Users\mathe\Downloads\sd.webui\system\python\lib\site-packages\pip_internal\distributions\sdist.py", line 55, in prepare_distribution_metadata
self._install_build_reqs(build_env_installer)
File "C:\Users\mathe\Downloads\sd.webui\system\python\lib\site-packages\pip_internal\distributions\sdist.py", line 132, in _install_build_reqs
build_reqs = self._get_build_requires_wheel()
File "C:\Users\mathe\Downloads\sd.webui\system\python\lib\site-packages\pip_internal\distributions\sdist.py", line 107, in _get_build_requires_wheel
return backend.get_requires_for_build_wheel()
File "C:\Users\mathe\Downloads\sd.webui\system\python\lib\site-packages\pip_internal\utils\misc.py", line 700, in get_requires_for_build_wheel
return super().get_requires_for_build_wheel(config_settings=cs)
File "C:\Users\mathe\Downloads\sd.webui\system\python\lib\site-packages\pip_vendor\pyproject_hooks_impl.py", line 196, in get_requires_for_build_wheel
return self._call_hook(
File "C:\Users\mathe\Downloads\sd.webui\system\python\lib\site-packages\pip_vendor\pyproject_hooks_impl.py", line 402, in _call_hook
raise BackendUnavailable(
pip._vendor.pyproject_hooks._impl.BackendUnavailable: Cannot import 'setuptools.build_meta'

Presione una tecla para continuar . . .

Console logs

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-96-g1937682a
Commit hash: 1937682a20f7f0442311a1ede68f9f0cb480163b
Installing open_clip
Traceback (most recent call last):
  File "C:\Users\mathe\Downloads\sd.webui\webui\launch.py", line 53, in <module>
    main()
  File "C:\Users\mathe\Downloads\sd.webui\webui\launch.py", line 44, in main
    prepare_environment()
  File "C:\Users\mathe\Downloads\sd.webui\webui\modules\launch_utils.py", line 446, in prepare_environment
    run_pip(f"install {openclip_package}", "open_clip")
  File "C:\Users\mathe\Downloads\sd.webui\webui\modules\launch_utils.py", line 142, 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 "C:\Users\mathe\Downloads\sd.webui\webui\modules\launch_utils.py", line 114, in run
    raise RuntimeError("\n".join(error_bits))
RuntimeError: Couldn't install open_clip.
Command: "C:\Users\mathe\Downloads\sd.webui\system\python\python.exe" -m pip install https://github.com/mlfoundations/open_clip/archive/bb6e834e9c70d9c27d0dc3ecedeebeaeb1ffad6b.zip --prefer-binary
Error code: 2
stdout: Collecting https://github.com/mlfoundations/open_clip/archive/bb6e834e9c70d9c27d0dc3ecedeebeaeb1ffad6b.zip
  Using cached bb6e834e9c70d9c27d0dc3ecedeebeaeb1ffad6b.zip (10.0 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'

stderr: ERROR: Exception:
Traceback (most recent call last):
  File "C:\Users\mathe\Downloads\sd.webui\system\python\lib\site-packages\pip\_internal\cli\base_command.py", line 109, in _run_wrapper
    status = _inner_run()
  File "C:\Users\mathe\Downloads\sd.webui\system\python\lib\site-packages\pip\_internal\cli\base_command.py", line 102, in _inner_run
    return self.run(options, args)
  File "C:\Users\mathe\Downloads\sd.webui\system\python\lib\site-packages\pip\_internal\cli\req_command.py", line 101, in wrapper
    return func(self, options, args)
  File "C:\Users\mathe\Downloads\sd.webui\system\python\lib\site-packages\pip\_internal\commands\install.py", line 479, in run
    requirement_set = resolver.resolve(
  File "C:\Users\mathe\Downloads\sd.webui\system\python\lib\site-packages\pip\_internal\resolution\resolvelib\resolver.py", line 79, in resolve
    collected = self.factory.collect_root_requirements(root_reqs)
  File "C:\Users\mathe\Downloads\sd.webui\system\python\lib\site-packages\pip\_internal\resolution\resolvelib\factory.py", line 597, in collect_root_requirements
    reqs = list(
  File "C:\Users\mathe\Downloads\sd.webui\system\python\lib\site-packages\pip\_internal\resolution\resolvelib\factory.py", line 553, in _make_requirements_from_install_req
    cand = self._make_base_candidate_from_link(
  File "C:\Users\mathe\Downloads\sd.webui\system\python\lib\site-packages\pip\_internal\resolution\resolvelib\factory.py", line 228, in _make_base_candidate_from_link
    self._link_candidate_cache[link] = LinkCandidate(
  File "C:\Users\mathe\Downloads\sd.webui\system\python\lib\site-packages\pip\_internal\resolution\resolvelib\candidates.py", line 326, in __init__
    super().__init__(
  File "C:\Users\mathe\Downloads\sd.webui\system\python\lib\site-packages\pip\_internal\resolution\resolvelib\candidates.py", line 168, in __init__
    self.dist = self._prepare()
  File "C:\Users\mathe\Downloads\sd.webui\system\python\lib\site-packages\pip\_internal\resolution\resolvelib\candidates.py", line 246, in _prepare
    dist = self._prepare_distribution()
  File "C:\Users\mathe\Downloads\sd.webui\system\python\lib\site-packages\pip\_internal\resolution\resolvelib\candidates.py", line 337, in _prepare_distribution
    return preparer.prepare_linked_requirement(self._ireq, parallel_builds=True)
  File "C:\Users\mathe\Downloads\sd.webui\system\python\lib\site-packages\pip\_internal\operations\prepare.py", line 542, in prepare_linked_requirement
    return self._prepare_linked_requirement(req, parallel_builds)
  File "C:\Users\mathe\Downloads\sd.webui\system\python\lib\site-packages\pip\_internal\operations\prepare.py", line 661, in _prepare_linked_requirement
    dist = _get_prepared_distribution(
  File "C:\Users\mathe\Downloads\sd.webui\system\python\lib\site-packages\pip\_internal\operations\prepare.py", line 77, in _get_prepared_distribution
    abstract_dist.prepare_distribution_metadata(
  File "C:\Users\mathe\Downloads\sd.webui\system\python\lib\site-packages\pip\_internal\distributions\sdist.py", line 55, in prepare_distribution_metadata
    self._install_build_reqs(build_env_installer)
  File "C:\Users\mathe\Downloads\sd.webui\system\python\lib\site-packages\pip\_internal\distributions\sdist.py", line 132, in _install_build_reqs
    build_reqs = self._get_build_requires_wheel()
  File "C:\Users\mathe\Downloads\sd.webui\system\python\lib\site-packages\pip\_internal\distributions\sdist.py", line 107, in _get_build_requires_wheel
    return backend.get_requires_for_build_wheel()
  File "C:\Users\mathe\Downloads\sd.webui\system\python\lib\site-packages\pip\_internal\utils\misc.py", line 700, in get_requires_for_build_wheel
    return super().get_requires_for_build_wheel(config_settings=cs)
  File "C:\Users\mathe\Downloads\sd.webui\system\python\lib\site-packages\pip\_vendor\pyproject_hooks\_impl.py", line 196, in get_requires_for_build_wheel
    return self._call_hook(
  File "C:\Users\mathe\Downloads\sd.webui\system\python\lib\site-packages\pip\_vendor\pyproject_hooks\_impl.py", line 402, in _call_hook
    raise BackendUnavailable(
pip._vendor.pyproject_hooks._impl.BackendUnavailable: Cannot import 'setuptools.build_meta'

Presione una tecla para continuar . . .

Additional information

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    bug-reportReport of a bug, yet to be confirmed

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions