kijai / ComfyUI-CCSR

ComfyUI wrapper node for CCSR
https://csslc.github.io/project-CCSR/
186 stars 14 forks source link

Can't import in ComfyUI #17

Open zuco1111 opened 7 months ago

zuco1111 commented 7 months ago

Traceback (most recent call last): File "G:\AI\ComfyUI-independent\ComfyUI\nodes.py", line 1888, in load_custom_node module_spec.loader.exec_module(module) File "", line 940, in exec_module File "", line 241, in _call_with_frames_removed File "G:\AI\ComfyUI-independent\ComfyUI\custom_nodes\ComfyUI-CCSR__init.py", line 1, in from .nodes import NODE_CLASS_MAPPINGS, NODE_DISPLAY_NAME_MAPPINGS File "G:\AI\ComfyUI-independent\ComfyUI\custom_nodes\ComfyUI-CCSR\nodes.py", line 8, in from .model.ccsr_stage1 import ControlLDM File "G:\AI\ComfyUI-independent\ComfyUI\custom_nodes\ComfyUI-CCSR\model\ccsr_stage1.py", line 18, in from ..ldm.models.diffusion.ddpm_ccsr_stage1 import LatentDiffusion File "G:\AI\ComfyUI-independent\ComfyUI\custom_nodes\ComfyUI-CCSR\ldm\models\diffusion\ddpm_ccsr_stage1.py", line 12, in import pytorch_lightning as pl File "G:\AI\ComfyUI-independent\python_embeded\Lib\site-packages\pytorch_lightning__init__.py", line 27, in from pytorch_lightning.callbacks import Callback # noqa: E402 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "G:\AI\ComfyUI-independent\python_embeded\Lib\site-packages\pytorch_lightning\callbacks\init__.py", line 24, in from pytorch_lightning.callbacks.model_checkpoint import ModelCheckpoint File "G:\AI\ComfyUI-independent\python_embeded\Lib\site-packages\pytorch_lightning\callbacks\model_checkpoint.py", line 37, in from lightning_fabric.utilities.cloud_io import _is_dir, _is_local_file_protocol, get_filesystem ImportError: cannot import name '_is_local_file_protocol' from 'lightning_fabric.utilities.cloud_io' (G:\AI\ComfyUI-independent\python_embeded\Lib\site-packages\lightning_fabric\utilities\cloud_io.py)

Cannot import G:\AI\ComfyUI-independent\ComfyUI\custom_nodes\ComfyUI-CCSR module for custom nodes: cannot import name '_is_local_file_protocol' from 'lightning_fabric.utilities.cloud_io' (G:\AI\ComfyUI-independent\python_embeded\Lib\site-packages\lightning_fabric\utilities\cloud_io.py)

How should I do?