StabilityMatrix icon indicating copy to clipboard operation
StabilityMatrix copied to clipboard

how to install SageAttention And Torch?

Open MrMyth opened this issue 3 months ago • 3 comments

Package

how to install SageAttention And Torch?

When did the issue occur?

Installing the Package

What GPU / hardware type are you using?

Nvidia 4070 Ti with Cuda

What happened?

how to install SageAttention And Torch?

Console output

No response

Version

v2.15.1

What Operating System are you using?

Windows

MrMyth avatar Oct 09 '25 15:10 MrMyth

I get this error message for SageAttention. Triton seems OK

Installing SageAttention Using Python 3.12.10 environment at: venv error: The build backend returned an error Caused by: Call to setuptools.build_meta.build_wheel failed (exit code: 1)

[stderr] Traceback (most recent call last): File "", line 8, in File "C:\StabilityMatrix\Data\Assets\uv\cache\builds-v0.tmpGWA3c7\Lib\site-packages\setuptools_init_.py", line 24, in from . import logging, monkey File "C:\StabilityMatrix\Data\Assets\uv\cache\builds-v0.tmpGWA3c7\Lib\site-packages\setuptools\logging.py", line 5, in from . import monkey File "C:\StabilityMatrix\Data\Assets\uv\cache\builds-v0.tmpGWA3c7\Lib\site-packages\setuptools\monkey.py", line 13, in import distutils.filelist ModuleNotFoundError: No module named 'distutils'

hint: distutils was removed from the standard library in Python 3.12. Consider adding a constraint to avoid building a package that depends on distutils. Error: StabilityMatrix.Core.Exceptions.ProcessException: pip install failed with code 2: 'Using Python 3.12.10 environment at: venv\nerror: The build backend returned an error\n Caused by: Call to setuptools.build_meta.build_wheel failed (exit code: 1)\n\n[stderr]\nTraceback (most recent call last):\n File "", line 8, in \n File "C:\StabilityMatrix\Data\Assets\uv\cache\builds-v0.tmpGWA3c7\Lib\site-packages\setuptools_init_.py", line 24, in \n from . import logging, monkey\n File "C:\StabilityMatrix\Data\Assets\uv\cache\builds-v0.tmpGWA3c7\Lib\site-packages\setuptools\logging.py", line 5, in \n from . import monkey\n File "C:\StabilityMatrix\Data\Assets\uv\cache\builds-v0.tmpGWA3c7\Lib\site-packages\setuptools\monkey.py", line 13, in \n import distutils.filelist\nModuleNotFoundError: No module named 'distutils'\n\nhint: distutils was removed from the standard library in Python 3.12. Consider adding a constraint to avoid building a package that depends on distutils.\n' at StabilityMatrix.Core.Python.UvVenvRunner.PipInstall(ProcessArgs args, Action1 outputDataReceived) at StabilityMatrix.Core.Models.PackageModification.InstallSageAttentionStep.ExecuteAsync(IProgress1 progress) at StabilityMatrix.Core.Models.PackageModification.InstallSageAttentionStep.ExecuteAsync(IProgress1 progress) at StabilityMatrix.Core.Models.PackageModification.PackageModificationRunner.ExecuteSteps(IEnumerable1 steps)

precursor1188 avatar Oct 31 '25 02:10 precursor1188

Installing Triton Using Python 3.10.11 environment at: venv Audited 1 package in 6ms Downloading Python libraries Installing SageAttention Using Python 3.10.11 environment at: venv error: The build backend returned an error Caused by: Call to setuptools.build_meta.build_wheel failed (exit code: 1)

[stderr] Traceback (most recent call last): File "", line 14, in File "D:\Matrix\Data\Assets\uv\cache\builds-v0.tmptWhiVB\lib\site-packages\setuptools\build_meta.py", line 332, in get_requires_for_build_wheel return self._get_build_requires(config_settings, requirements=[]) File "D:\Matrix\Data\Assets\uv\cache\builds-v0.tmptWhiVB\lib\site-packages\setuptools\build_meta.py", line 302, in _get_build_requires self.run_setup() File "D:\Matrix\Data\Assets\uv\cache\builds-v0.tmptWhiVB\lib\site-packages\setuptools\build_meta.py", line 318, in run_setup exec(code, locals()) File "", line 36, in ModuleNotFoundError: No module named 'torch'

hint: This error likely indicates that file:///D:/Matrix/Data/Packages/ComfyUI/SageAttention depends on torch, but doesn't declare it as a build dependency. If file:///D:/Matrix/Data/Packages/ComfyUI/SageAttention is a first-party package, consider adding torch to its build-system.requires. Otherwise, uv pip install torch into the environment and re-run with --no-build-isolation. Error: StabilityMatrix.Core.Exceptions.ProcessException: pip install failed with code 2: 'Using Python 3.10.11 environment at: venv\nerror: The build backend returned an error\n Caused by: Call to setuptools.build_meta.build_wheel failed (exit code: 1)\n\n[stderr]\nTraceback (most recent call last):\n File "", line 14, in \n File "D:\Matrix\Data\Assets\uv\cache\builds-v0.tmptWhiVB\lib\site-packages\setuptools\build_meta.py", line 332, in get_requires_for_build_wheel\n return self._get_build_requires(config_settings, requirements=[])\n File "D:\Matrix\Data\Assets\uv\cache\builds-v0.tmptWhiVB\lib\site-packages\setuptools\build_meta.py", line 302, in _get_build_requires\n self.run_setup()\n File "D:\Matrix\Data\Assets\uv\cache\builds-v0.tmptWhiVB\lib\site-packages\setuptools\build_meta.py", line 318, in run_setup\n exec(code, locals())\n File "", line 36, in \nModuleNotFoundError: No module named 'torch'\n\nhint: This error likely indicates that file:///D:/Matrix/Data/Packages/ComfyUI/SageAttention depends on torch, but doesn't declare it as a build dependency. If file:///D:/Matrix/Data/Packages/ComfyUI/SageAttention is a first-party package, consider adding torch to its build-system.requires. Otherwise, uv pip install torch into the environment and re-run with --no-build-isolation.\n' at StabilityMatrix.Core.Python.UvVenvRunner.PipInstall(ProcessArgs args, Action1 outputDataReceived) at StabilityMatrix.Core.Models.PackageModification.InstallSageAttentionStep.ExecuteAsync(IProgress1 progress) at StabilityMatrix.Core.Models.PackageModification.InstallSageAttentionStep.ExecuteAsync(IProgress1 progress) at StabilityMatrix.Core.Models.PackageModification.PackageModificationRunner.ExecuteSteps(IEnumerable1 steps)

My env: 22H2, 4060Ti, CUDA 12.9, Matrix 2.15.4

nyukers avatar Nov 15 '25 17:11 nyukers

How can I upgrade version of Python, CUDA and Torch in Stability Matrix?

nyukers avatar Nov 15 '25 17:11 nyukers