I installed ComfyUI using the Playbook and it has worked well so far, but I am having difficulty getting sage-attention to install. I’m using the command (in the ComfyUI venv):
× Getting requirements to build wheel did not run successfully.
│ exit code: 1
╰─> [18 lines of output]
Traceback (most recent call last):
File “/home/jgrasty/ai/comfyui-env/lib/python3.12/site-packages/pip/_vendor/pyproject_hooks/_in_process/_in_process.py”, line 353, in
main()
File “/home/jgrasty/ai/comfyui-env/lib/python3.12/site-packages/pip/_vendor/pyproject_hooks/_in_process/_in_process.py”, line 335, in main
json_out[‘return_val’] = hook(**hook_input[‘kwargs’])
^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File “/home/jgrasty/ai/comfyui-env/lib/python3.12/site-packages/pip/_vendor/pyproject_hooks/_in_process/_in_process.py”, line 118, in get_requires_for_build_wheel
return hook(config_settings)
^^^^^^^^^^^^^^^^^^^^^
File “/tmp/pip-build-env-6fw9guvs/overlay/lib/python3.12/site-packages/setuptools/build_meta.py”, line 332, in get_requires_for_build_wheel
return self._get_build_requires(config_settings, requirements=)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File “/tmp/pip-build-env-6fw9guvs/overlay/lib/python3.12/site-packages/setuptools/build_meta.py”, line 302, in _get_build_requires
self.run_setup()
File “/tmp/pip-build-env-6fw9guvs/overlay/lib/python3.12/site-packages/setuptools/build_meta.py”, line 318, in run_setup
exec(code, locals())
File “”, line 36, in
ModuleNotFoundError: No module named ‘torch’
[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.
You can confirm if torch is installed by running these commands inside the virtualenv pip show torch python -c "import torch; print(torch.__version__)"
Would using CUDA 12.9 ok 12.8 work? I am also stuck here. I have tried 12.9 and 12.8 and cannot get Sage Attention to work with DGX Spark. But, I probably lack the technical skills to know how to get it to work.