akatz-ai / ComfyUI-X-Portrait-Nodes

Wrapper for X-Portrait for running in ComfyUI
Apache License 2.0
67 stars 0 forks source link

No module named 'xformers' #3

Open MoonMoon82 opened 1 week ago

MoonMoon82 commented 1 week ago

Hi,

I'm trying to run it the first time, but all I get is the following error message. Any ideas? Thanks in advance!

ComfyUI Error Report

Error Details


## System Information
- **ComfyUI Version:** v0.2.7-22-g122c9ca
- **Arguments:** ComfyUI\main.py --windows-standalone-build --listen --disable-auto-launch --preview-method auto
- **OS:** nt
- **Python Version:** 3.11.8 (tags/v3.11.8:db85d51, Feb  6 2024, 22:03:32) [MSC v.1937 64 bit (AMD64)]
- **Embedded Python:** true
- **PyTorch Version:** 2.4.1+cu124
## Devices

- **Name:** cuda:0 NVIDIA GeForce RTX 3090 : cudaMallocAsync
  - **Type:** cuda
  - **VRAM Total:** 25769148416
  - **VRAM Free:** 24035646204
  - **Torch VRAM Total:** 402653184
  - **Torch VRAM Free:** 12770044
akatz-ai commented 1 week ago

Hi @MoonMoon82, you will need to install xformers in your comfyui environment. Installing xformers can cause other dependencies to change (like torch versions) so it might be best to try creating a new comfyui environment and trying to install this node first before any others.

MoonMoon82 commented 1 week ago

@akatz-ai So I cannot combine the X-Portrait nodes with all my already installed custom nodes? I need to create a new comyUI enviromnet dedicated for the X-Portrait nodes ? Anything else I guess would mess up all the dependencies of my custom nodes.

OlivioSarikas commented 4 days ago

I'm having the same problem and no matter what i try so far, xformers is giving me errors like this: ` RuntimeError: Error compiling objects for extension [end of output]

note: This error originates from a subprocess, and is likely not a problem with pip. ERROR: Failed building wheel for xformers Failed to build xformers ERROR: ERROR: Failed to build installable wheels for some pyproject.toml based projects (xformers)`

akatz-ai commented 2 days ago

Hi all, installing xformers on windows is a challenge due to needing to match the current cuda and pytorch versions I believe, so if there is no wheel found pip tries to compile xformers which requires build tools to be installed. I'm working on a comfyui environment manager that I hope to share soon that should help with environment-specific install issues.