Skip to content

Conversation

albertpurnama
Copy link
Contributor

Error that I've found.

Traceback (most recent call last):
  File "/home/albert/Documents/dev/ComfyUI/ComfyUI-to-Python-Extension/comfyui_to_python.py", line 460, in <module>
    ComfyUItoPython(input_file=input_file, output_file=output_file, queue_size=queue_size)
  File "/home/albert/Documents/dev/ComfyUI/ComfyUI-to-Python-Extension/comfyui_to_python.py", line 425, in __init__
    self.execute()
  File "/home/albert/Documents/dev/ComfyUI/ComfyUI-to-Python-Extension/comfyui_to_python.py", line 434, in execute
    import_custom_nodes()
  File "/home/albert/Documents/dev/ComfyUI/ComfyUI-to-Python-Extension/utils.py", line 16, in import_custom_nodes
    from nodes import init_custom_nodes
ImportError: cannot import name 'init_custom_nodes' from 'nodes' (/home/albert/Documents/dev/ComfyUI/ComfyUI-to-Python-Extension/../nodes.py). Did you mean: 'init_extra_nodes'?

I think the import is old. This PR updates the import.

@albertpurnama
Copy link
Contributor Author

May be duplicate of this #61

@kning kning mentioned this pull request Aug 26, 2024
@kning
Copy link

kning commented Aug 26, 2024

would be great to get this merged, can confirm it works!

@pydn pydn merged commit dbbc0d5 into pydn:main Sep 11, 2024
@pydn
Copy link
Owner

pydn commented Sep 11, 2024

Thanks for your help here @albertpurnama!

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

Successfully merging this pull request may close these issues.

4 participants