Skip to content

[Bug]: Getting requirements to build wheel did not run successfully. #17398

@Ramankaur17

Description

@Ramankaur17

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?

Python 3.10.12 (main, Jul 28 2023, 18:31:20) [Clang 13.0.0 (clang-1300.0.29.30)]
Version: v1.10.1
Commit hash: 82a973c
Installing clip
Traceback (most recent call last):
File "/Users/ramandeepkaur/Documents/AutomaticDemo/stable-diffusion-webui/launch.py", line 48, in
main()
File "/Users/ramandeepkaur/Documents/AutomaticDemo/stable-diffusion-webui/launch.py", line 39, in main
prepare_environment()
File "/Users/ramandeepkaur/Documents/AutomaticDemo/stable-diffusion-webui/modules/launch_utils.py", line 394, in prepare_environment
run_pip(f"install {clip_package}", "clip")
File "/Users/ramandeepkaur/Documents/AutomaticDemo/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 "/Users/ramandeepkaur/Documents/AutomaticDemo/stable-diffusion-webui/modules/launch_utils.py", line 116, in run
raise RuntimeError("\n".join(error_bits))
RuntimeError: Couldn't install clip.
Command: "/Users/ramandeepkaur/Documents/AutomaticDemo/stable-diffusion-webui/venv/bin/python" -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'

Steps to reproduce the problem

Traceback (most recent call last):
File "/Users/ramandeepkaur/Documents/AutomaticDemo/stable-diffusion-webui/launch.py", line 48, in
main()
File "/Users/ramandeepkaur/Documents/AutomaticDemo/stable-diffusion-webui/launch.py", line 39, in main
prepare_environment()
File "/Users/ramandeepkaur/Documents/AutomaticDemo/stable-diffusion-webui/modules/launch_utils.py", line 394, in prepare_environment
run_pip(f"install {clip_package}", "clip")
File "/Users/ramandeepkaur/Documents/AutomaticDemo/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 "/Users/ramandeepkaur/Documents/AutomaticDemo/stable-diffusion-webui/modules/launch_utils.py", line 116, in run
raise RuntimeError("\n".join(error_bits))
RuntimeError: Couldn't install clip.
Command: "/Users/ramandeepkaur/Documents/AutomaticDemo/stable-diffusion-webui/venv/bin/python" -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]

What should have happened?

Getting requirements to build wheel did not run successfully.

What browsers do you use to access the UI ?

No response

Sysinfo

Traceback (most recent call last):
File "/Users/ramandeepkaur/Documents/AutomaticDemo/stable-diffusion-webui/launch.py", line 48, in
main()
File "/Users/ramandeepkaur/Documents/AutomaticDemo/stable-diffusion-webui/launch.py", line 39, in main
prepare_environment()
File "/Users/ramandeepkaur/Documents/AutomaticDemo/stable-diffusion-webui/modules/launch_utils.py", line 394, in prepare_environment
run_pip(f"install {clip_package}", "clip")
File "/Users/ramandeepkaur/Documents/AutomaticDemo/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 "/Users/ramandeepkaur/Documents/AutomaticDemo/stable-diffusion-webui/modules/launch_utils.py", line 116, in run
raise RuntimeError("\n".join(error_bits))
RuntimeError: Couldn't install clip.
Command: "/Users/ramandeepkaur/Documents/AutomaticDemo/stable-diffusion-webui/venv/bin/python" -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]

Console logs

Python 3.10.12 (main, Jul 28 2023, 18:31:20) [Clang 13.0.0 (clang-1300.0.29.30)]
Version: v1.10.1
Commit hash: 82a973c04367123ae98bd9abdf80d9eda9b910e2
Installing clip
Traceback (most recent call last):
  File "/Users/ramandeepkaur/Documents/AutomaticDemo/stable-diffusion-webui/launch.py", line 48, in <module>
    main()
  File "/Users/ramandeepkaur/Documents/AutomaticDemo/stable-diffusion-webui/launch.py", line 39, in main
    prepare_environment()
  File "/Users/ramandeepkaur/Documents/AutomaticDemo/stable-diffusion-webui/modules/launch_utils.py", line 394, in prepare_environment
    run_pip(f"install {clip_package}", "clip")
  File "/Users/ramandeepkaur/Documents/AutomaticDemo/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 "/Users/ramandeepkaur/Documents/AutomaticDemo/stable-diffusion-webui/modules/launch_utils.py", line 116, in run
    raise RuntimeError("\n".join(error_bits))
RuntimeError: Couldn't install clip.
Command: "/Users/ramandeepkaur/Documents/AutomaticDemo/stable-diffusion-webui/venv/bin/python" -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 "/Users/ramandeepkaur/Documents/AutomaticDemo/stable-diffusion-webui/venv/lib/python3.10/site-packages/pip/_vendor/pyproject_hooks/_in_process/_in_process.py", line 353, in <module>
          main()
        File "/Users/ramandeepkaur/Documents/AutomaticDemo/stable-diffusion-webui/venv/lib/python3.10/site-packages/pip/_vendor/pyproject_hooks/_in_process/_in_process.py", line 335, in main
          json_out['return_val'] = hook(**hook_input['kwargs'])
        File "/Users/ramandeepkaur/Documents/AutomaticDemo/stable-diffusion-webui/venv/lib/python3.10/site-packages/pip/_vendor/pyproject_hooks/_in_process/_in_process.py", line 118, in get_requires_for_build_wheel
          return hook(config_settings)
        File "/private/var/folders/mb/2gscg1kj25b_36jnbt7bcwxh0000gn/T/pip-build-env-210f_vum/overlay/lib/python3.10/site-packages/setuptools/build_meta.py", line 333, in get_requires_for_build_wheel
          return self._get_build_requires(config_settings, requirements=[])
        File "/private/var/folders/mb/2gscg1kj25b_36jnbt7bcwxh0000gn/T/pip-build-env-210f_vum/overlay/lib/python3.10/site-packages/setuptools/build_meta.py", line 301, in _get_build_requires
          self.run_setup()
        File "/private/var/folders/mb/2gscg1kj25b_36jnbt7bcwxh0000gn/T/pip-build-env-210f_vum/overlay/lib/python3.10/site-packages/setuptools/build_meta.py", line 520, in run_setup
          super().run_setup(setup_script=setup_script)
        File "/private/var/folders/mb/2gscg1kj25b_36jnbt7bcwxh0000gn/T/pip-build-env-210f_vum/overlay/lib/python3.10/site-packages/setuptools/build_meta.py", line 317, in run_setup
          exec(code, locals())
        File "<string>", line 3, in <module>
      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: 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.

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