Closed milksteak1111 closed 11 months ago
This happens when you add your own custom nodes right? From the log it seems that no nodes are loaded at all since for filename in (here / "nodes").iterdir():
is the line that starts the node registration loop
Yeah mostly everything loads, just not custom scripts and various other nodes. But I have added some lesser known people's smaller custom nodes that are probably the culprit(or some syntax error or something, im new with python). I'm just not sure which node would be causing it so I can delete it since none others are failing
If you can try to start Comfy with MTB_DEBUG=true it can help further, you have some instructions here for setting it in the UI or endpoint: https://github.com/melMass/comfy_mtb/wiki/Debugging
If you can't access these you can try to specify it on the command line or bat script:
These are just examples adapt to your own run commands:
Unix:
MTB_DEBUG=true python main.py
Windows cmd
cmd /C "set "MTB_DEBUG=true" && python main.py
Im not really sure how to set it to true, I dont see it in the json files anywhere and I cant get the commands right for cmd
I'm not sure what json you refer too, depending on how you launch comfy just add this there, so in the bat file or if you use cmd.exe you can run something like this:
set MTB_DEBUG=true && <YOUR-COMFYCOMMAND-HERE>
So for instance
set MTB_DEBUG=true && ../python-embedded/python.exe main.py
I know it's been a long time but I just uncovered a behaviour I wasn't aware of and could be linked to this:
Comfy doesn't actually know what to do if two nodes class name are exactly the same (in python)...
This has the effect of replacing the last imported python node if that makes sense, but this creates a strange thing where the web definition is taken from one, but on execution it calls the other one... For mtb I just fixed this by appending underscore for class names that could be too common with other extension pack. (see https://github.com/melMass/comfy_mtb/blob/3e8c2fe789925e7017c2f8c8d9164c139588aba4/nodes/image_processing.py#L183)
Describe the bug
I'm sure this is just an issue on my end but was just wondering if it was a simple fix. Most stuff is working but my custom scripts nodes aren't loading and these are the last errors i'm seeing. Face swap, bbox and stuff are working fine
Reproduction
No response
Expected behavior
No response
Platform and versions
Console output