Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

(IMPORT FAILED): custom_nodes\ComfyUI-Easy-Use #604

Open
jellya791 opened this issue Jan 6, 2025 · 2 comments
Open

(IMPORT FAILED): custom_nodes\ComfyUI-Easy-Use #604

jellya791 opened this issue Jan 6, 2025 · 2 comments

Comments

@jellya791
Copy link

The following directories listed in your path were found to be non-existent: {WindowsPath('F'), WindowsPath('/ComfyUI-aki-v1.3/.ext/lib')}
F:\ComfyUI-aki-v1.3\python\lib\site-packages\bitsandbytes\cuda_setup\main.py:167: UserWarning: F:\ComfyUI-aki-v1.3.ext did not contain ['libcudart.so', 'libcudart.so.11.0', 'libcudart.so.12.0'] as expected! Searching further paths...
warn(msg)
The following directories listed in your path were found to be non-existent: {WindowsPath('/Users/jelly/AppData/Local/Temp/15174c49-e788-4d70-a386-4a05152394c6.tmp'), WindowsPath('file'), WindowsPath('/C')}
The following directories listed in your path were found to be non-existent: {WindowsPath('//pypi.oystermercury.top/ms/'), WindowsPath('https')}
The following directories listed in your path were found to be non-existent: {WindowsPath('//mirror.sjtu.edu.cn/pytorch-wheels/torch_stable.html'), WindowsPath('https')}

The following directories listed in your path were found to be non-existent: {WindowsPath('//pypi.doubanio.com/simple/'), WindowsPath('https')}
The following directories listed in your path were found to be non-existent: {WindowsPath('/Users/jelly/AppData/Local/Temp/15174c49-e788-4d70-a386-4a05152394c6.tmp'), WindowsPath('file'), WindowsPath('/C')}
The following directories listed in your path were found to be non-existent: {WindowsPath('//pypi.doubanio.com/simple/'), WindowsPath('https')}
The following directories listed in your path were found to be non-existent: {WindowsPath('//www.modelscope.cn/api/v1/studio/hanamizukiai/resolver/gradio/wheel/xformers-0.0.14.dev0+torch12-cp310-cp310-win_amd64.whl'), WindowsPath('https')}
CUDA_SETUP: WARNING! libcudart.so not found in any environmental path. Searching in backup paths...
The following directories listed in your path were found to be non-existent: {WindowsPath('/usr/local/cuda/lib64')}

DEBUG: Possible options found for libcudart.so: set()
CUDA SETUP: PyTorch settings found: CUDA_VERSION=118, Highest Compute Capability: 8.6.
CUDA SETUP: To manually override the PyTorch CUDA version please see:https://github.com/TimDettmers/bitsandbytes/blob/main/how_to_use_nonpytorch_cuda.md
CUDA SETUP: Loading binary F:\ComfyUI-aki-v1.3\python\lib\site-packages\bitsandbytes\libbitsandbytes_cuda118.so...
argument of type 'WindowsPath' is not iterable
CUDA SETUP: Problem: The main issue seems to be that the main CUDA runtime library was not detected.
CUDA SETUP: Solution 1: To solve the issue the libcudart.so location needs to be added to the LD_LIBRARY_PATH variable
CUDA SETUP: Solution 1a): Find the cuda runtime library via: find / -name libcudart.so 2>/dev/null
CUDA SETUP: Solution 1b): Once the library is found add it to the LD_LIBRARY_PATH: export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:FOUND_PATH_FROM_1a
CUDA SETUP: Solution 1c): For a permanent solution add the export from 1b into your .bashrc file, located at ~/.bashrc
CUDA SETUP: Solution 2: If no library was found in step 1a) you need to install CUDA.
CUDA SETUP: Solution 2a): Download CUDA install script: wget https://raw.githubusercontent.com/TimDettmers/bitsandbytes/main/cuda_install.sh
CUDA SETUP: Solution 2b): Install desired CUDA version to desired location. The syntax is bash cuda_install.sh CUDA_VERSION PATH_TO_INSTALL_INTO.
CUDA SETUP: Solution 2b): For example, "bash cuda_install.sh 113 ~/local/" will download CUDA 11.3 and install into the folder ~/local

Traceback (most recent call last):
File "F:\ComfyUI-aki-v1.3\nodes.py", line 2089, 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 "F:\ComfyUI-aki-v1.3\custom_nodes\ComfyUI-Easy-Use_init
.py", line 21, in
imported_module = importlib.import_module(".py.{}".format(module_name), name)
File "F:\ComfyUI-aki-v1.3\python\lib\importlib_init_.py", line 126, in import_module
return bootstrap.gcd_import(name[level:], package, level)
File "", line 1050, in gcd_import
File "", line 1027, in find_and_load
File "", line 1006, in find_and_load_unlocked
File "", line 688, in load_unlocked
File "", line 883, in exec_module
File "", line 241, in call_with_frames_removed
File "F:\ComfyUI-aki-v1.3\custom_nodes\ComfyUI-Easy-Use\py\easyNodes.py", line 17, in
from .layer_diffuse import LayerDiffuse, LayerMethod
File "F:\ComfyUI-aki-v1.3\custom_nodes\ComfyUI-Easy-Use\py\layer_diffuse_init
.py", line 12, in
from .model import ModelPatcher, TransparentVAEDecoder, calculate_weight_adjust_channel
File "F:\ComfyUI-aki-v1.3\custom_nodes\ComfyUI-Easy-Use\py\layer_diffuse\model.py", line 17, in
from diffusers.models.modeling_utils import ModelMixin
File "F:\ComfyUI-aki-v1.3\python\lib\site-packages\diffusers\models\modeling_utils.py", line 35, in
from ..quantizers import DiffusersAutoQuantizer, DiffusersQuantizer
File "F:\ComfyUI-aki-v1.3\python\lib\site-packages\diffusers\quantizers_init
.py", line 15, in
from .auto import DiffusersAutoQuantizer
File "F:\ComfyUI-aki-v1.3\python\lib\site-packages\diffusers\quantizers\auto.py", line 22, in
from .bitsandbytes import BnB4BitDiffusersQuantizer, BnB8BitDiffusersQuantizer
File "F:\ComfyUI-aki-v1.3\python\lib\site-packages\diffusers\quantizers\bitsandbytes_init.py", line 2, in
from .utils import dequantize_and_replace, dequantize_bnb_weight, replace_with_bnb_linear
File "F:\ComfyUI-aki-v1.3\python\lib\site-packages\diffusers\quantizers\bitsandbytes\utils.py", line 32, in
import bitsandbytes as bnb
File "F:\ComfyUI-aki-v1.3\python\lib\site-packages\bitsandbytes_init.py", line 6, in
from . import cuda_setup, utils, research
File "F:\ComfyUI-aki-v1.3\python\lib\site-packages\bitsandbytes\research_init.py", line 1, in
from . import nn
File "F:\ComfyUI-aki-v1.3\python\lib\site-packages\bitsandbytes\research\nn_init.py", line 1, in
from .modules import LinearFP8Mixed, LinearFP8Global
File "F:\ComfyUI-aki-v1.3\python\lib\site-packages\bitsandbytes\research\nn\modules.py", line 8, in
from bitsandbytes.optim import GlobalOptimManager
File "F:\ComfyUI-aki-v1.3\python\lib\site-packages\bitsandbytes\optim_init.py", line 6, in
from bitsandbytes.cextension import COMPILED_WITH_CUDA
File "F:\ComfyUI-aki-v1.3\python\lib\site-packages\bitsandbytes\cextension.py", line 20, in
raise RuntimeError('''
RuntimeError:
CUDA Setup failed despite GPU being available. Please run the following command to get more information:

    python -m bitsandbytes

    Inspect the output of the command and see if you can locate CUDA libraries. You might need to add them
    to your LD_LIBRARY_PATH. If you suspect a bug, please take the information from python -m bitsandbytes
    and open an issue at: https://github.com/TimDettmers/bitsandbytes/issues

Cannot import F:\ComfyUI-aki-v1.3\custom_nodes\ComfyUI-Easy-Use module for custom nodes:
CUDA Setup failed despite GPU being available. Please run the following command to get more information:

    python -m bitsandbytes

    Inspect the output of the command and see if you can locate CUDA libraries. You might need to add them
    to your LD_LIBRARY_PATH. If you suspect a bug, please take the information from python -m bitsandbytes
    and open an issue at: https://github.com/TimDettmers/bitsandbytes/issues
@ZAKWORKS
Copy link

same problem

@hightowerr
Copy link

Same problem. Is there a fix yet?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants