Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

quick fix for "KeyError: 'light'" (web/extensions/core/colorPalette.js updated causing error) #2

Open
Hapseleg opened this issue Oct 15, 2024 · 0 comments

Comments

@Hapseleg
Copy link

if you get this error:

Traceback (most recent call last):
  File "D:\stable-diffusion\ComfyUI_windows_portable\ComfyUI\comfy_gallery.py", line 479, in <module>
    for key, value in COLORS['light']['colors']['node_slot'].items():
                      ~~~~~~^^^^^^^^^
KeyError: 'light'

heres a quick hack to fix it:
download the old colorPalette.js
https://github.com/comfyanonymous/ComfyUI/blob/3f5939add69c2a8fea2b892a46a48c2937dc4128/web/extensions/core/colorPalette.js

add
--comfyui-color-palette "PATH\TO\THE\FILE\colorPalette_old.js"
to your bat file, so for example
.\python_embeded\python.exe -s ComfyUI\comfy_gallery.py --comfyui-color-palette "c:\colorPalette_old.js"

@Hapseleg Hapseleg changed the title quick fix for web/extensions/core/colorPalette.js being updated causing error quick fix for "KeyError: 'light'" (web/extensions/core/colorPalette.js updated causing error) Oct 15, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant