crystian / ComfyUI-Crystools

A powerful set of tools for ComfyUI
MIT License
697 stars 33 forks source link

Crystool failing to install on Colab! #109

Open eXWoLL opened 3 weeks ago

eXWoLL commented 3 weeks ago

I'm getting the following error on colab:

`[Crystools INFO] Crystools version: 1.16.6 Traceback (most recent call last): File "/content/drive/MyDrive/ComfyUI/nodes.py", line 1993, 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 "/content/drive/MyDrive/ComfyUI/custom_nodes/ComfyUI-Crystools/init.py", line 18, in from .nodes.image import CImagePreviewFromImage, CImageLoadWithMetadata, CImageGetResolution, CImagePreviewFromMetadata, \ File "/content/drive/MyDrive/ComfyUI/custom_nodes/ComfyUI-Crystools/nodes/image.py", line 12, in from PIL.ExifTags import TAGS, GPSTAGS, IFD ImportError: cannot import name 'IFD' from 'PIL.ExifTags' (/usr/local/lib/python3.10/dist-packages/PIL/ExifTags.py)

Cannot import /content/drive/MyDrive/ComfyUI/custom_nodes/ComfyUI-Crystools module for custom nodes: cannot import name 'IFD' from 'PIL.ExifTags' (/usr/local/lib/python3.10/dist-packages/PIL/ExifTags.py) ` Tried updating and reinstalling, also all requirements from the .txt are installed! keep getting the same thing :/

festivus37 commented 2 weeks ago

I'm getting the same thing and can't seem to resolve it.

festivus37 commented 2 weeks ago

Ok, this fixed it for me. pip install pillow==9.5.0

eXWoLL commented 2 weeks ago

Ok, this fixed it for me. pip install pillow==9.5.0

Did something similar: Added these lines after the "update comfy" and "install dependencies":

!pip3 install -r requirements.txt !pip3 pip install --upgrade pip !pip3 pip install --upgrade Pillow

crystian commented 1 week ago

Ok, this fixed it for me. pip install pillow==9.5.0

Did something similar: Added these lines after the "update comfy" and "install dependencies":

!pip3 install -r requirements.txt !pip3 pip install --upgrade pip !pip3 pip install --upgrade Pillow

@eXWoLL did you try it?

jnaviask commented 1 week ago

Changing pillow's version in the crystools install directory did nothing. Am I supposed to run the upgrade / version peg elsewhere?