BrushNet icon indicating copy to clipboard operation
BrushNet copied to clipboard

Cannot import [Errno 2] No such file or directory: 'I:\\ComfyUI\\custom_nodes\\BrushNet\\__init__.py'

Open peter2office opened this issue 1 year ago • 0 comments

Describe the bug

Traceback (most recent call last): File "I:\ComfyUI\nodes.py", line 1993, in load_custom_node module_spec.loader.exec_module(module) File "", line 879, in exec_module File "", line 1016, in get_code File "", line 1073, in get_data FileNotFoundError: [Errno 2] No such file or directory: 'I:\ComfyUI\custom_nodes\BrushNet\init.py'

Cannot import I:\ComfyUI\custom_nodes\BrushNet module for custom nodes: [Errno 2] No such file or directory: 'I:\ComfyUI\custom_nodes\BrushNet\init.py'

Reproduction

Traceback (most recent call last): File "I:\ComfyUI\nodes.py", line 1993, in load_custom_node module_spec.loader.exec_module(module) File "", line 879, in exec_module File "", line 1016, in get_code File "", line 1073, in get_data FileNotFoundError: [Errno 2] No such file or directory: 'I:\ComfyUI\custom_nodes\BrushNet\init.py'

Logs

No response

System Info

C:\Users\proitav\AppData\Local\Programs\Python\Python310\lib\runpy.py:196 in _run_module_as_main │ │ │ │ 193 │ main_globals = sys.modules["main"].dict │ │ 194 │ if alter_argv: │ │ 195 │ │ sys.argv[0] = mod_spec.origin │ │ ❱ 196 │ return run_code(code, main_globals, None, │ │ 197 │ │ │ │ │ "main", mod_spec) │ │ 198 │ │ 199 def run_module(mod_name, init_globals=None, │ │ │ │ C:\Users\proitav\AppData\Local\Programs\Python\Python310\lib\runpy.py:86 in run_code │ │ │ │ 83 │ │ │ │ │ loader = loader, │ │ 84 │ │ │ │ │ package = pkg_name, │ │ 85 │ │ │ │ │ spec = mod_spec) │ │ ❱ 86 │ exec(code, run_globals) │ │ 87 │ return run_globals │ │ 88 │ │ 89 def run_module_code(code, init_globals=None, │ │ │ │ in :7 │ │ │ │ 4 from diffusers.commands.diffusers_cli import main │ │ 5 if name == 'main': │ │ 6 │ sys.argv[0] = re.sub(r'(-script.pyw|.exe)?$', '', sys.argv[0]) │ │ ❱ 7 │ sys.exit(main()) │ │ 8 │ │ │ │ I:\ComfyUI\cfzy\lib\site-packages\diffusers\commands\diffusers_cli.py:39 in main │ │ │ │ 36 │ │ │ 37 │ # Run │ │ 38 │ service = args.func(args) │ │ ❱ 39 │ service.run() │ │ 40 │ │ 41 │ │ 42 if name == "main": │ │ │ │ I:\ComfyUI\cfzy\lib\site-packages\diffusers\commands\env.py:92 in run │ │ │ │ 89 │ │ │ │ 90 │ │ peft_version = "not installed" │ │ 91 │ │ if is_peft_available(): │ │ ❱ 92 │ │ │ import peft │ │ 93 │ │ │ │ │ 94 │ │ │ peft_version = peft.version │ │ 95 │ │ │ │ I:\ComfyUI\cfzy\lib\site-packages\peft_init.py:22 in │ │ │ │ 19 │ │ 20 version = "0.12.0" │ │ 21 │ │ ❱ 22 from .auto import ( │ │ 23 │ AutoPeftModel, │ │ 24 │ AutoPeftModelForCausalLM, │ │ 25 │ AutoPeftModelForSequenceClassification, │ │ │ │ I:\ComfyUI\cfzy\lib\site-packages\peft\auto.py:31 in │ │ │ │ 28 │ AutoTokenizer, │ │ 29 ) │ │ 30 │ │ ❱ 31 from .config import PeftConfig │ │ 32 from .mapping import MODEL_TYPE_TO_PEFT_MODEL_MAPPING │ │ 33 from .peft_model import ( │ │ 34 │ PeftModel, │ │ │ │ I:\ComfyUI\cfzy\lib\site-packages\peft\config.py:24 in │ │ │ │ 21 from huggingface_hub import hf_hub_download │ │ 22 from transformers.utils import PushToHubMixin │ │ 23 │ │ ❱ 24 from .utils import CONFIG_NAME, PeftType, TaskType │ │ 25 │ │ 26 │ │ 27 @dataclass │ │ │ │ I:\ComfyUI\cfzy\lib\site-packages\peft\utils_init.py:23 in │ │ │ │ 20 # from .config import PeftConfig, PeftType, PromptLearningConfig, TaskType │ │ 21 from .loftq_utils import replace_lora_weights_loftq │ │ 22 from .peft_types import PeftType, TaskType │ │ ❱ 23 from .other import ( │ │ 24 │ TRANSFORMERS_MODELS_TO_PREFIX_TUNING_POSTPROCESS_MAPPING, │ │ 25 │ TRANSFORMERS_MODELS_TO_LORA_TARGET_MODULES_MAPPING, │ │ 26 │ TRANSFORMERS_MODELS_TO_ADALORA_TARGET_MODULES_MAPPING, │ │ │ │ I:\ComfyUI\cfzy\lib\site-packages\peft\utils\other.py:24 in │ │ │ │ 21 import accelerate │ │ 22 import torch │ │ 23 from accelerate.hooks import add_hook_to_module, remove_hook_from_module │ │ ❱ 24 from accelerate.utils import is_npu_available, is_xpu_available │ │ 25 from huggingface_hub import file_exists │ │ 26 from huggingface_hub.utils import EntryNotFoundError, HFValidationError │ │ 27 from packaging import version │ ╰──────────────────────────────────────────────────────────────────────────────────────────────────╯ ImportError: cannot import name 'is_npu_available' from 'accelerate.utils' (I:\ComfyUI\cfzy\lib\site-packages\accelerate\utils_init.py)

Who can help?

what is wrong ? what should i do next?

peter2office avatar Sep 05 '24 04:09 peter2office