Skip to content

Installation Fails #289

Description

@bitshifter52

Sage attention used to install and work, though I don't know which version was involve. After reinstalling ComfyUI, sageattention doesn't seem installable - perhaps I'm doing something wrong, but I can't figure out what.

When using the installation process as recommended: pip install sageattention==2.2.0 --no-build-isolation
it fails.

`$ pip install sageattention==2.2.0 --no-build-isolation
Collecting sageattention==2.2.0
Using cached sageattention-2.2.0.tar.gz (67 kB)
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 "/media/$USER/AI_WorkDrive/ComfyUI/.venv/lib/python3.11/site-packages/pip/_vendor/pyproject_hooks/_in_process/_in_process.py", line 353, in
main()
File "/media/$USER/AI_WorkDrive/ComfyUI/.venv/lib/python3.11/site-packages/pip/_vendor/pyproject_hooks/_in_process/_in_process.py", line 335, in main
json_out['return_val'] = hook(**hook_input['kwargs'])
^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/media/$USER/AI_WorkDrive/ComfyUI/.venv/lib/python3.11/site-packages/pip/_vendor/pyproject_hooks/_in_process/_in_process.py", line 149, in prepare_metadata_for_build_wheel
return hook(metadata_directory, config_settings)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/media/$USER/AI_WorkDrive/ComfyUI/.venv/lib/python3.11/site-packages/setuptools/build_meta.py", line 377, in prepare_metadata_for_build_wheel
self.run_setup()
File "/media/$USER/AI_WorkDrive/ComfyUI/.venv/lib/python3.11/site-packages/setuptools/build_meta.py", line 335, in run_setup
exec(code, locals())
File "", line 74, in
RuntimeError: Cannot find CUDA_HOME. CUDA must be available to build the package.
[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.
╰─> See above for output.

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

Here is my system information:

`Snapshot created on: 20250818_1641
System:
Kernel: 6.15.11-1-liquorix-amd64 [6.15-12mx23ahs] arch: x86_64 bits: 64 compiler: gcc v: 12.2.0 clocksource: tsc
avail: hpet,acpi_pm parameters: audit=0 intel_pstate=disable amd_pstate=disable
BOOT_IMAGE=/vmlinuz-6.15.11-1-liquorix-amd64 root=UUID= ro quiet nomodeset splash
Desktop: Xfce v: 4.20.0 tk: Gtk v: 3.24.38 wm: xfwm4 v: 4.20.0 with: xfce4-panel
tools: xfce4-screensaver vt: 7 dm: LightDM v: 1.32.0 Distro: MX-23.6_ahs_x64 Libretto April 13
2025 base: Debian GNU/Linux 12 (bookworm)
Machine:
Type: Desktop System: Gigabyte product: X570 AORUS ELITE WIFI v: -CF serial:
Mobo: Gigabyte model: X570 AORUS ELITE WIFI serial:
uuid: UEFI: American Megatrends LLC. v: F38f date: 09/20/2023
CPU:
Info: model: AMD Ryzen 5 5600X bits: 64 type: MT MCP arch: Zen 3+ gen: 3 level: v3 note: check
built: 2022 process: TSMC n6 (7nm) family: 0x19 (25) model-id: 0x21 (33) stepping: 0
microcode: 0xA20102D
Topology: cpus: 1x dies: 1 clusters: 1 cores: 6 threads: 12 tpc: 2 smt: enabled cache:
L1: 384 KiB desc: d-6x32 KiB; i-6x32 KiB L2: 3 MiB desc: 6x512 KiB L3: 32 MiB desc: 1x32 MiB
Speed (MHz): avg: 2879 min/max: 2200/4652 boost: enabled scaling: driver: acpi-cpufreq
governor: ondemand cores: 1: 2879 2: 2879 3: 2879 4: 2879 5: 2879 6: 2879 7: 2879 8: 2879 9: 2879
10: 2879 11: 2879 12: 2879 bogomips: 88800
Flags: avx avx2 ht lm nx pae sse sse2 sse3 sse4_1 sse4_2 sse4a ssse3 svm
Vulnerabilities:
Type: gather_data_sampling status: Not affected
Type: ghostwrite status: Not affected
Type: indirect_target_selection status: Not affected
Type: itlb_multihit status: Not affected
Type: l1tf status: Not affected
Type: mds status: Not affected
Type: meltdown status: Not affected
Type: mmio_stale_data status: Not affected
Type: reg_file_data_sampling status: Not affected
Type: retbleed status: Not affected
Type: spec_rstack_overflow mitigation: Safe RET
Type: spec_store_bypass mitigation: Speculative Store Bypass disabled via prctl
Type: spectre_v1 mitigation: usercopy/swapgs barriers and __user pointer sanitization
Type: spectre_v2 mitigation: Retpolines; IBPB: conditional; IBRS_FW; STIBP: always-on; RSB
filling; PBRSB-eIBRS: Not affected; BHI: Not affected
Type: srbds status: Not affected
Type: tsa status: Vulnerable: Clear CPU buffers attempted, no microcode
Type: tsx_async_abort status: Not affected
Graphics:
Device-1: NVIDIA AD106 [GeForce RTX 4060 Ti] vendor: ASUSTeK driver: nvidia v: 580.95.05
alternate: nouveau,nvidia_drm non-free: 550-570.xx+ status: current (as of 2025-04)
arch: Lovelace code: AD1xx process: TSMC n4 (5nm) built: 2022+ pcie: gen: 1 speed: 2.5 GT/s
lanes: 8 link-max: gen: 4 speed: 16 GT/s ports: active: none off: DP-2
empty: DP-1,DP-3,HDMI-A-1 bus-ID: 08:00.0 chip-ID: 10de:2803 class-ID: 0300
Display: x11 server: X.Org v: 1.21.1.7 compositor: xfwm4 v: 4.20.0 driver: X: loaded: nvidia
unloaded: fbdev,modesetting,nouveau,vesa alternate: nv gpu: nvidia,nvidia-nvswitch
display-ID: :0.0 screens: 1
Screen-1: 0 s-res: 2560x1440 s-dpi: 96 s-size: 678x382mm (26.69x15.04") s-diag: 778mm (30.64")
Monitor-1: DP-2 note: disabled model: Acer XV273K V3 serial: built: 2024 res:
mode: 3840x2160 hz: 160 scale: 150% (0.666666666666667) to: 2560x1440 dpi: 163 gamma: 1.2
size: 600x340mm (23.62x13.39") diag: 685mm (27") ratio: 16:9 modes: max: 3840x2160 min: 640x480
API: EGL v: 1.5 hw: drv: nvidia platforms: device: 0 drv: nvidia device: 2 drv: swrast gbm:
drv: nvidia surfaceless: drv: nvidia x11: drv: nvidia inactive: wayland,device-1
API: OpenGL v: 4.6.0 vendor: nvidia v: 580.95.05 glx-v: 1.4 direct-render: yes renderer: NVIDIA
GeForce RTX 4060 Ti/PCIe/SSE2 memory: 15.62 GiB
API: Vulkan v: 1.4.304 layers: 5 device: 0 type: discrete-gpu name: NVIDIA GeForce RTX 4060 Ti
driver: nvidia v: 580.95.05 device-ID: 10de:2803 surfaces: xcb,xlib device: 1 type: cpu
name: llvmpipe (LLVM 15.0.6 256 bits) driver: mesa llvmpipe v: 25.0.7-2
mx23ahs (LLVM 15.0.6)
device-ID: 10005:0000 surfaces: xcb,xlib
Info: Tools: api: clinfo, eglinfo, glxinfo, vulkaninfo de: xfce4-display-settings
gpu: nvidia-settings x11: xdriinfo, xdpyinfo, xprop, xrandr
Audio:
Device-1: NVIDIA AD106M High Definition Audio vendor: ASUSTeK driver: snd_hda_intel v: kernel
pcie: gen: 4 speed: 16 GT/s lanes: 8 bus-ID: 08:00.1 chip-ID: 10de:22bd class-ID: 0403
Device-2: Advanced Micro Devices [AMD] Starship/Matisse HD Audio vendor: Gigabyte
driver: snd_hda_intel v: kernel pcie: gen: 4 speed: 16 GT/s lanes: 16 bus-ID: 0a:00.4
chip-ID: 1022:1487 class-ID: 0403
API: ALSA v: k6.15.11-1-liquorix-amd64 status: kernel-api with: apulse type: pulse-emulator
tools: alsactl,alsamixer,amixer
Server-1: PulseAudio v: 16.1 status: active tools: pacat,pactl,pavucontrol
Network:
Device-1: Intel Wi-Fi 5 Wireless-AC 9x6x [Thunder Peak] driver: iwlwifi v: kernel pcie: gen: 2
speed: 5 GT/s lanes: 1 bus-ID: 03:00.0 chip-ID: 8086:2526 class-ID: 0280
IF: wlan0 state: down mac:
Device-2: Intel I211 Gigabit Network vendor: Gigabyte driver: igb v: kernel pcie: gen: 1
speed: 2.5 GT/s lanes: 1 port: f000 bus-ID: 04:00.0 chip-ID: 8086:1539 class-ID: 0200
IF: eth0 state: up speed: 1000 Mbps duplex: full mac:
IF-ID-1: br-740cc5d65f76 state: down mac:
IF-ID-2: docker0 state: down mac:
Info: services: NetworkManager, nginx, smbd, wpa_supplicant
Bluetooth:
Device-1: Intel Wireless-AC 9260 Bluetooth Adapter driver: btusb v: 0.8 type: USB rev: 2.0
speed: 12 Mb/s lanes: 1 mode: 1.1 bus-ID: 3-5:2 chip-ID: 8087:0025 class-ID: e001
Report: hciconfig ID: hci0 rfk-id: 1 state: down bt-service: N/A rfk-block: hardware: no
software: yes address:
Info: acl-mtu: 0:0 sco-mtu: 0:0 link-mode: peripheral accept
Drives:
Local Storage: total: 52.8 TiB used: 23.59 TiB (44.7%)
SMART Message: Unable to run smartctl. Root privileges required.
ID-1: /dev/sda maj-min: 8:0 vendor: Inland model: SATA SSD size: 1.86 TiB block-size:
physical: 512 B logical: 512 B speed: 6.0 Gb/s tech: SSD serial: fw-rev: 9A0 scheme: GPT
ID-2: /dev/sdb maj-min: 8:16 vendor: Samsung model: SSD 870 EVO 1TB size: 931.51 GiB
block-size: physical: 512 B logical: 512 B speed: 6.0 Gb/s tech: SSD serial:
fw-rev: 2B6Q scheme: GPT
ID-3: /dev/sdc maj-min: 8:32 vendor: Seagate model: ST8000NM0105 size: 7.28 TiB block-size:
physical: 4096 B logical: 512 B speed: 6.0 Gb/s tech: HDD rpm: 7200 serial: fw-rev: G00A
scheme: GPT
ID-4: /dev/sdd maj-min: 8:48 vendor: Seagate model: ST8000NM0105 size: 7.28 TiB block-size:
physical: 4096 B logical: 512 B speed: 6.0 Gb/s tech: HDD rpm: 7200 serial: fw-rev: G00A
scheme: GPT
ID-5: /dev/sde maj-min: 8:64 vendor: Western Digital model: WD60EZAZ-00SF3B0 size: 5.46 TiB
block-size: physical: 4096 B logical: 512 B speed: 3.0 Gb/s tech: HDD rpm: 5400 serial:
fw-rev: 0A80 scheme: GPT
ID-6: /dev/sdf maj-min: 8:80 vendor: Seagate model: ST8000DM004-2CX188 size: 7.28 TiB
block-size: physical: 4096 B logical: 512 B speed: 6.0 Gb/s tech: HDD rpm: 5425 serial:
fw-rev: 0001 scheme: GPT
ID-7: /dev/sdg maj-min: 8:96 vendor: Samsung model: PSSD T9 size: 3.64 TiB block-size:
physical: 512 B logical: 512 B type: USB rev: 3.2 spd: 10 Gb/s lanes: 1 mode: 3.2 gen-2x1
tech: SSD serial: scheme: GPT
SMART Message: Unknown USB bridge. Flash drive/Unsupported enclosure?
ID-8: /dev/sdh maj-min: 8:112 vendor: Seagate model: BUP Portable size: 4.55 TiB block-size:
physical: 4096 B logical: 512 B type: USB rev: 3.2 spd: 5 Gb/s lanes: 1 mode: 3.2 gen-1x1
tech: N/A serial: fw-rev: 0004 scheme: GPT
ID-9: /dev/sdi maj-min: 8:128 vendor: Western Digital model: WD160EDGZ-11B2DA0 size: 14.55 TiB
block-size: physical: 4096 B logical: 512 B type: USB rev: 3.1 spd: 5 Gb/s lanes: 1
mode: 3.2 gen-1x1 tech: HDD rpm: 7200 serial: fw-rev: 1031 scheme: GPT
Partition:
ID-1: / raw-size: 930.25 GiB size: 914.57 GiB (98.31%) used: 295.72 GiB (32.3%) fs: ext4
dev: /dev/dm-0 maj-min: 253:0 mapped: luks-
ID-2: /boot raw-size: 1024 MiB size: 973.4 MiB (95.06%) used: 140.3 MiB (14.4%) fs: ext4
dev: /dev/sdb2 maj-min: 8:18
ID-3: /boot/efi raw-size: 256 MiB size: 252 MiB (98.46%) used: 290 KiB (0.1%) fs: vfat
dev: /dev/sdb1 maj-min: 8:17
Swap:
Kernel: swappiness: 15 (default 60) cache-pressure: 100 (default) zswap: no
ID-1: swap-1 type: file size: 8 GiB used: 3.31 GiB (41.3%) priority: -2 file: /swap/swap
Sensors:
System Temperatures: cpu: 39.9 C mobo: 28.0 C gpu: nvidia temp: 43 C
Fan Speeds (rpm): N/A gpu: nvidia fan: 0%
Repos:
Packages: 3039 pm: dpkg pkgs: 3019 libs: 1407 tools: apt, apt-get, aptitude, nala, synaptic
pm: rpm pkgs: 0 pm: flatpak pkgs: 20
No active apt repos in: /etc/apt/sources.list
Active apt repos in: /etc/apt/sources.list.d/brave-browser-release.list
1: deb [arch=amd64 signed-by=/usr/share/keyrings/brave-browser-archive-keyring.gpg] https://brave-browser-apt-release.s3.brave.com/ stable main
No active apt repos in: /etc/apt/sources.list.d/contrib.list
Active apt repos in: /etc/apt/sources.list.d/cuda-debian12-x86_64.list
1: deb [signed-by=/usr/share/keyrings/cuda-archive-keyring.gpg] https://developer.download.nvidia.com/compute/cuda/repos/debian12/x86_64/ /
Active apt repos in: /etc/apt/sources.list.d/debian-stable-updates.list
1: deb http://deb.debian.org/debian bookworm-updates main contrib non-free non-free-firmware
Active apt repos in: /etc/apt/sources.list.d/debian.list
1: deb http://deb.debian.org/debian bookworm main contrib non-free non-free-firmware
2: deb http://security.debian.org/debian-security bookworm-security main contrib non-free non-free-firmware
Active apt repos in: /etc/apt/sources.list.d/google-chrome.list
1: deb [arch=amd64] https://dl.google.com/linux/chrome/deb/ stable main
Active apt repos in: /etc/apt/sources.list.d/mx.list
1: deb http://mxrepo.com/mx/repo/ bookworm main non-free
2: deb http://mxrepo.com/mx/repo/ bookworm ahs
Active apt repos in: /etc/apt/sources.list.d/swee.list
1: deb https://debian.pkg.swee.codes ./
Active apt repos in: /etc/apt/sources.list.d/vivaldi.list
1: deb [arch=amd64] https://repo.vivaldi.com/stable/deb/ stable main
Info:
Memory: total: N/A available: 62.73 GiB used: 6.28 GiB (10.0%)
Processes: 531 Power: uptime: 8h 14m states: freeze,mem,disk suspend: deep avail: s2idle
wakeups: 0 hibernate: platform avail: shutdown, reboot, suspend, test_resume image: 25.05 GiB
services: upowerd,xfce4-power-manager Init: SysVinit v: 3.06 runlevel: 5 default: graphical
tool: systemctl
Compilers: gcc: 12.2.0 alt: 11 Client: shell wrapper v: 5.2.15-release inxi: 3.3.38
Boot Mode: UEFI
'

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