CosmicLaca / ComfyUI_Primere_Nodes

ComfyUI node pack
GNU General Public License v3.0
107 stars 13 forks source link

import problem, cached_download' from 'huggingface_hub #42

Closed xxl2005 closed 4 days ago

xxl2005 commented 4 days ago

hello problem

` File "/home/tobias/AI/ComfyUI/nodes.py", line 2027, 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 "/home/tobias/AI/ComfyUI/custom_nodes/ComfyUI_Primere_Nodes/init.py", line 7, in from .Nodes import Dashboard File "/home/tobias/AI/ComfyUI/custom_nodes/ComfyUI_Primere_Nodes/Nodes/Dashboard.py", line 36, in from diffusers import (UNet2DConditionModel, EulerDiscreteScheduler) File "/home/tobias/miniconda3/envs/ComfyUI/lib/python3.10/site-packages/diffusers/init.py", line 5, in from .utils import ( File "/home/tobias/miniconda3/envs/ComfyUI/lib/python3.10/site-packages/diffusers/utils/init.py", line 38, in from .dynamic_modules_utils import get_class_from_dynamic_module File "/home/tobias/miniconda3/envs/ComfyUI/lib/python3.10/site-packages/diffusers/utils/dynamic_modules_utils.py", line 28, in from huggingface_hub import HfFolder, cached_download, hf_hub_download, model_info ImportError: cannot import name 'cached_download' from 'huggingface_hub' (/home/tobias/miniconda3/envs/ComfyUI/lib/python3.10/site-packages/huggingface_hub/init.py)

Cannot import /home/tobias/AI/ComfyUI/custom_nodes/ComfyUI_Primere_Nodes module for custom nodes: cannot import name 'cached_download' from 'huggingface_hub' (/home/tobias/miniconda3/envs/ComfyUI/lib/python3.10/site-packages/huggingface_hub/init.py)`

CosmicLaca commented 4 days ago

@xxl2005 Wrong version of diffusers. Check your diffuser's lib version and reinstall or upgrade if lower than 0.3x. 2024-11-28_08-53-33

Backup the current diffuser before.