Skip to content

Cannot install Nunchaku Nodes in ComfyUI with Stability Matrix #1296

@angelika3377

Description

@angelika3377

What happened?

======================================== ComfyUI-nunchaku Initialization ========================================
Nunchaku version: Package 'nunchaku' not found.
ComfyUI-nunchaku version: 0.3.1
ComfyUI-nunchaku 0.3.1 is not compatible with nunchaku Package 'nunchaku' not found.. Please update nunchaku to a supported version in ['v0.3.0', 'v0.3.1'].
Traceback (most recent call last):
File "D:\StabilityMatrix\Packages\ComfyUI\nodes.py", line 2124, in load_custom_node
module_spec.loader.exec_module(module)
File "", line 883, in exec_module
File "", line 241, in call_with_frames_removed
File "D:\StabilityMatrix\Packages\ComfyUI\custom_nodes\ComfyUI-nunchaku_init
.py", line 28, in
from .nodes.lora.flux import NunchakuFluxLoraLoader
File "D:\StabilityMatrix\Packages\ComfyUI\custom_nodes\ComfyUI-nunchaku\nodes\lora\flux.py", line 6, in
from nunchaku.lora.flux import to_diffusers
ModuleNotFoundError: No module named 'nunchaku'

Cannot import D:\StabilityMatrix\Packages\ComfyUI\custom_nodes\ComfyUI-nunchaku module for custom nodes: No module named 'nunchaku'
no module 'xformers'. Processing without...
no module 'xformers'. Processing without...
FETCH ComfyRegistry Data: 15/88
FETCH ComfyRegistry Data: 20/88
FETCH ComfyRegistry Data: 25/88
FETCH ComfyRegistry Data: 30/88
FETCH ComfyRegistry Data: 35/88
FETCH ComfyRegistry Data: 40/88
FETCH ComfyRegistry Data: 45/88
FETCH ComfyRegistry Data: 50/88
FETCH ComfyRegistry Data: 55/88
Workspace manager - Openning file hash dict

Loading: Workspace Manager (V1.0.0)

CUDA SETUP: Loading binary D:\StabilityMatrix\Packages\ComfyUI\venv\lib\site-packages\bitsandbytes\cuda_setup\libbitsandbytes_cuda116.dll...
Could not find module 'D:\StabilityMatrix\Packages\ComfyUI\venv\lib\site-packages\bitsandbytes\cuda_setup\libbitsandbytes_cuda116.dll' (or one of its dependencies). Try using the full path with constructor syntax.
CUDA SETUP: Problem: The main issue seems to be that the main CUDA library was not detected.
CUDA SETUP: Solution 1): Your paths are probably not up-to-date. You can update them via: sudo ldconfig.
CUDA SETUP: Solution 2): If you do not have sudo rights, you can do the following:
CUDA SETUP: Solution 2a): Find the cuda library via: find / -name libcuda.so 2>/dev/null
CUDA SETUP: Solution 2b): Once the library is found add it to the LD_LIBRARY_PATH: export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:FOUND_PATH_FROM_2a
CUDA SETUP: Solution 2c): For a permanent solution add the export from 2b into your .bashrc file, located at ~/.bashrc
CUDA SETUP: Problem: The main issue seems to be that the main CUDA library was not detected.
CUDA SETUP: Solution 1): Your paths are probably not up-to-date. You can update them via: sudo ldconfig.
CUDA SETUP: Solution 2): If you do not have sudo rights, you can do the following:
CUDA SETUP: Solution 2a): Find the cuda library via: find / -name libcuda.so 2>/dev/null
CUDA SETUP: Solution 2b): Once the library is found add it to the LD_LIBRARY_PATH: export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:FOUND_PATH_FROM_2a
CUDA SETUP: Solution 2c): For a permanent solution add the export from 2b into your .bashrc file, located at ~/.bashrc
CUDA SETUP: Problem: The main issue seems to be that the main CUDA library was not detected.
CUDA SETUP: Solution 1): Your paths are probably not up-to-date. You can update them via: sudo ldconfig.
CUDA SETUP: Solution 2): If you do not have sudo rights, you can do the following:
CUDA SETUP: Solution 2a): Find the cuda library via: find / -name libcuda.so 2>/dev/null
CUDA SETUP: Solution 2b): Once the library is found add it to the LD_LIBRARY_PATH: export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:FOUND_PATH_FROM_2a
CUDA SETUP: Solution 2c): For a permanent solution add the export from 2b into your .bashrc file, located at ~/.bashrc
Traceback (most recent call last):
File "D:\StabilityMatrix\Packages\ComfyUI\nodes.py", line 2124, in load_custom_node
module_spec.loader.exec_module(module)
File "", line 883, in exec_module
File "", line 241, in call_with_frames_removed
File "D:\StabilityMatrix\Packages\ComfyUI\custom_nodes\ComfyUI_bnb_nf4_fp4_Loaders_init
.py", line 6, in
import bitsandbytes
File "D:\StabilityMatrix\Packages\ComfyUI\venv\lib\site-packages\bitsandbytes_init_.py", line 7, in
from .autograd.functions import (
File "D:\StabilityMatrix\Packages\ComfyUI\venv\lib\site-packages\bitsandbytes\autograd_init
.py", line 1, in
from ._functions import undo_layout, get_inverse_transform_indices
File "D:\StabilityMatrix\Packages\ComfyUI\venv\lib\site-packages\bitsandbytes\autograd_functions.py", line 9, in
import bitsandbytes.functional as F
File "D:\StabilityMatrix\Packages\ComfyUI\venv\lib\site-packages\bitsandbytes\functional.py", line 17, in
from .cextension import COMPILED_WITH_CUDA, lib
File "D:\StabilityMatrix\Packages\ComfyUI\venv\lib\site-packages\bitsandbytes\cextension.py", line 22, in
raise RuntimeError('''
RuntimeError:
CUDA Setup failed despite GPU being available. Inspect the CUDA SETUP outputs above to fix your environment!
If you cannot find any issues and suspect a bug, please open an issue with detals about your environment:
https://github.com/TimDettmers/bitsandbytes/issues

Cannot import D:\StabilityMatrix\Packages\ComfyUI\custom_nodes\ComfyUI_bnb_nf4_fp4_Loaders module for custom nodes:
CUDA Setup failed despite GPU being available. Inspect the CUDA SETUP outputs above to fix your environment!
If you cannot find any issues and suspect a bug, please open an issue with detals about your environment:
https://github.com/TimDettmers/bitsandbytes/issues

the dependency sentencepiece does not support py313. py313 is too new.

Can you please fix this so a layman can use nunchaku nodes? thank you !

Steps to reproduce

No response

Relevant logs

Version

2.14.2

What Operating System are you using?

Windows

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingstaleStale issue or inactive for long period of time

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions