kijai / ComfyUI-DiffusersStableCascade

Simple inference with StableCascade using diffusers in ComfyUI
305 stars 54 forks source link

cannot import name 'List' from 'typing_extensions' #10

Open korodarn opened 9 months ago

korodarn commented 9 months ago

Getting this error

Cannot import /mnt/home/Applications/ComfyUI/custom_nodes/ComfyUI-DiffusersStableCascade module for custom nodes: Failed to import diffusers.pipelines.stable_cascade.pipeline_stable_cascade because of the following error (look up to see its traceback):
cannot import name 'List' from 'typing_extensions'

I installed this through the comfy manager

Things I've tried so far... git pull within the folder

manual install for pip install git+https://github.com/kashif/diffusers.git@wuerstchen-v3 although pip install -r requirements.txt seems to have already got that one

I do have this dependency error with pip as well, if it's relevant

ERROR: pip's dependency resolver does not currently take into account all the packages that are installed. This behaviour is the source of the following dependency conflicts.
lama-cleaner 1.2.1 requires diffusers==0.16.1, but you have diffusers 0.27.0.dev0 which is incompatible.
lama-cleaner 1.2.1 requires transformers==4.27.4, but you have transformers 4.37.2 which is incompatible.

Assume it may be a matter of incompatibility in packages for another custom node I have? All my other nodes seem to load fine

using python-3.10.11 in the venv using pip 24.0

System configuration

OS: EndeavourOS Linux x86_64
Kernel: 6.7.4-arch1-1
Uptime: 1 day, 21 hours, 54 mins
Packages: 1812 (pacman), 13 (flatpak)
Shell: zsh 5.9
Resolution: 3440x1440
DE: Hyprland
WM: sway
Theme: Breeze-Dark [GTK2/3]
Icons: Breeze-Noir-White-Blue [GTK2/3]
Terminal: terminology
Terminal Font: MesloLGSDZ Nerd Font
CPU: AMD Ryzen 7 5800X (16) @ 3.800GHz
GPU: NVIDIA GeForce RTX 4090
Memory: 12241MiB / 96467MiB
kijai commented 9 months ago

Some other node uses lama-cleaner, which seems to break with this one that uses latest diffusers. The import error for this isn't about that, but some other version mismatch... you can try: pip install -U typing-extensions though I don't know which version it expects