thecooltechguy / ComfyUI-Stable-Video-Diffusion

ComfyUI nodes for Stable Video Diffusion
319 stars 25 forks source link

No module named 'pytorch_lightning' #7

Closed allgoody closed 10 months ago

allgoody commented 10 months ago

ERROR:root:!!! Exception during processing !!! ERROR:root:Traceback (most recent call last): File "C:\Users\stable\ComfyUI\ComfyUI_windows_portable\ComfyUI\execution.py", line 153, in recursive_execute output_data, output_ui = get_output_data(obj, input_data_all) File "C:\Users\stable\ComfyUI\ComfyUI_windows_portable\ComfyUI\execution.py", line 83, in get_output_data return_values = map_node_over_list(obj, input_data_all, obj.FUNCTION, allow_interrupt=True) File "C:\Users\stable\ComfyUI\ComfyUI_windows_portable\ComfyUI\execution.py", line 76, in map_node_over_list results.append(getattr(obj, func)(slice_dict(input_data_all, i))) File "C:\Users\stable\ComfyUI\ComfyUI_windows_portable\ComfyUI\custom_nodes\ComfyUI-Stable-Video-Diffusion\nodes.py", line 56, in load_svd_model self.svd_model = load_model( File "C:\Users\stable\ComfyUI\ComfyUI_windows_portable\ComfyUI\custom_nodes\ComfyUI-Stable-Video-Diffusion\svd.py", line 78, in load_model model = instantiate_from_config(config.model).to(device).eval() File "C:\Users\stable\ComfyUI\ComfyUI_windows_portable\ComfyUI\custom_nodes\ComfyUI-Stable-Video-Diffusion\util.py", line 175, in instantiate_from_config return get_obj_from_str(config["target"])(config.get("params", dict())) File "C:\Users\stable\ComfyUI\ComfyUI_windows_portable\ComfyUI\custom_nodes\ComfyUI-Stable-Video-Diffusion\util.py", line 186, in get_obj_from_str return getattr(importlib.import_module(module, package=None), cls) File "importlib__init.py", line 126, in import_module File "", line 1050, in _gcd_import File "", line 1027, in _find_and_load File "", line 992, in _find_and_load_unlocked File "", line 241, in _call_with_frames_removed File "", line 1050, in _gcd_import File "", line 1027, in _find_and_load File "", line 992, in _find_and_load_unlocked File "", line 241, in _call_with_frames_removed 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 "C:\Users\stable\ComfyUI\ComfyUI_windows_portable\ComfyUI\custom_nodes\ComfyUI-Stable-Video-Diffusion\libs\sgm__init__.py", line 1, in from .models import AutoencodingEngine, DiffusionEngine File "C:\Users\stable\ComfyUI\ComfyUI_windows_portable\ComfyUI\custom_nodes\ComfyUI-Stable-Video-Diffusion\libs\sgm\models\init__.py", line 1, in from .autoencoder import AutoencodingEngine File "C:\Users\stable\ComfyUI\ComfyUI_windows_portable\ComfyUI\custom_nodes\ComfyUI-Stable-Video-Diffusion\libs\sgm\models\autoencoder.py", line 8, in import pytorch_lightning as pl ModuleNotFoundError: No module named 'pytorch_lightning'

thecooltechguy commented 10 months ago

Hi! To confirm, have you run pip install -r requirements.txt?

allgoody commented 10 months ago

hey, yes i did. i have solved the issue. when i ran pip install -r requirements.txt it installed all modules in AppData\Local\Programs\Python\Python310\Lib\site-packages. but ComfyUI has its own embeded python \ComfyUI_windows_portable\python_embeded\Lib\site-packages I just copied all modules required. Thank you!