vivax3794 / ComfyUI-Sub-Nodes

Finally sub nodes in comfy!
120 stars 4 forks source link

Using some nodes causes a load error #13

Closed MatissesProjects closed 1 month ago

MatissesProjects commented 1 month ago

When testing with different nodes in the subgraph I came across jovimetrix nodes with the pictures not loading properly.

ComfyUI_windows_portable\ComfyUI\custom_nodes\ComfyUI-Sub-Nodes\__init__.py", line 60, in get_inputs
    data = json.load(f)
           ^^^^^^^^^^^^
  File "json\__init__.py", line 293, in load
  File "encodings\cp1252.py", line 23, in decode
UnicodeDecodeError: 'charmap' codec can't decode byte 0x8f in position 5498: character maps to <undefined>

Steps to reproduce: create new subgraph with jovimetrix nodes as output save graph add to subfolder attempt to load that new graph

Solution is pretty simple, adding a pr to fix this now