WASasquatch / was-node-suite-comfyui

An extensive node suite for ComfyUI with over 210 new nodes
MIT License
1.19k stars 178 forks source link

AUTOMATIC1111 WebUI Styles #88

Closed wolf95985 closed 1 year ago

wolf95985 commented 1 year ago

When I Import AUTOMATIC1111 WebUI Styles, the following error is thrown in console:

Traceback (most recent call last):
  File "H:\AI\ComfyUI\ComfyUI_windows_portable\ComfyUI\nodes.py", line 1384, in load_custom_node
    module_spec.loader.exec_module(module)
  File "<frozen importlib._bootstrap_external>", line 883, in exec_module
  File "<frozen importlib._bootstrap>", line 241, in _call_with_frames_removed
  File "H:\AI\ComfyUI\ComfyUI_windows_portable\ComfyUI\custom_nodes\was-node-suite-comfyui\__init__.py", line 1, in <module>
    from .WAS_Node_Suite import NODE_CLASS_MAPPINGS
  File "H:\AI\ComfyUI\ComfyUI_windows_portable\ComfyUI\custom_nodes\was-node-suite-comfyui\WAS_Node_Suite.py", line 279, in <module>
    styles[line[name]] = {"prompt": line['prompt'], "negative_prompt": line['negative_prompt']}
KeyError: 'name'

Cannot import H:\AI\ComfyUI\ComfyUI_windows_portable\ComfyUI\custom_nodes\was-node-suite-comfyui module for custom nodes: 'name'

Import times for custom nodes:
   0.2 seconds (IMPORT FAILED): H:\AI\ComfyUI\ComfyUI_windows_portable\ComfyUI\custom_nodes\was-node-suite-comfyui
   7.9 seconds: H:\AI\ComfyUI\ComfyUI_windows_portable\ComfyUI\custom_nodes\comfy_controlnet_preprocessors

Am I doing something wrong?

WASasquatch commented 1 year ago

Can I see the the top of your style cvs import file (from like a text editor)? I was having issues with a CVS parser, and basically wrote my own, so handling edge cases where there is different formatting

Edit: I have also attempted a general patch taking note of how A1111 loads: https://github.com/WASasquatch/was-node-suite-comfyui/commit/4377feda037a113aac76042c83f6aa141cae5dd1

wolf95985 commented 1 year ago

Thank you for your work, after upgrading to the new version the problem has been solved

WASasquatch commented 1 year ago

Sweet, good to hear.