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

Missing Node Types, When loading the graph, the following node types were not found: DeepTranslatorTextNode #94

Open
hoonkies opened this issue Nov 19, 2024 · 5 comments

Comments

@hoonkies
Copy link

hoonkies commented Nov 19, 2024

I can't use alekpet node, please help me figure out what's going on. This happened since I installed some python dependencies yesterday. “Missing Node Types, When loading the graph, the following node types were not found: DeepTranslatorTextNode”

@hoonkies
Copy link
Author

hoonkies commented Nov 19, 2024

重新 git clone 之后就可以了。Just re-git clone it.
#91 (comment)
https://github.com/AlekPet/ComfyUI_Custom_Nodes_AlekPet/tree/new_init_config_disabled

@AlekPet
Copy link
Owner

AlekPet commented Nov 19, 2024

重新 git clone 之后就可以了。Just re-git clone it.
#91 (comment)
https://github.com/AlekPet/ComfyUI_Custom_Nodes_AlekPet/tree/new_init_config_disabled

This branch (is experimental) (#94) is needed to be able to disable unnecessary nodes, the __init__.py file was changed there and the config.json file was added. So check if the "check_enabled_nodes" parameter in config.json is false, then the filter for disabling will not work for everyone and all nodes will be loaded, if true, then the disabling rules come into play, either for all folders (the active parameter), or if false is set for certain nodes in the nodes > node_name parameter. And so you can also replace the __init_.py file from master if you don't need it at all. Check in DeepTranslator folder python file isset :). Maybe there are some other errors in the console?

@hoonkies
Copy link
Author

hoonkies commented Nov 19, 2024

重新 git clone 之后就可以了。Just re-git clone it.
#91 (comment)
https://github.com/AlekPet/ComfyUI_Custom_Nodes_AlekPet/tree/new_init_config_disabled

This branch (is experimental) (#94) is needed to be able to disable unnecessary nodes, the __init__.py file was changed there and the config.json file was added. So check if the "check_enabled_nodes" parameter in config.json is false, then the filter for disabling will not work for everyone and all nodes will be loaded, if true, then the disabling rules come into play, either for all folders (the active parameter), or if false is set for certain nodes in the nodes > node_name parameter. And so you can also replace the __init_.py file from master if you don't need it at all. Check in DeepTranslator folder python file isset :). Maybe there are some other errors in the console?

Thank you. When I put the modified _init.py in the previous node folder, alekpet can also be used normally.
just need change to "is_check_enabled_nodes = false".

-- Config settings --

CONFIG = {}
NODES_SETTINGS = {}
GLOBAL_SETTINGS = {}
is_check_enabled_nodes = true

-- Config settings --

CONFIG = {}
NODES_SETTINGS = {}
GLOBAL_SETTINGS = {}
is_check_enabled_nodes = false

@AlekPet
Copy link
Owner

AlekPet commented Nov 19, 2024

Logically, it should have pulled data from config.json
__init__.py

        # Global settings
        if GLOBAL_SETTINGS is not None:
            is_check_enabled_nodes = GLOBAL_SETTINGS.get(
                "check_enabled_nodes", True)

File config.json

"global_settings": {
    "check_enabled_nodes": false
  }

@hoonkies
Copy link
Author

hoonkies commented Nov 20, 2024

"global_settings": {
    "check_enabled_nodes": false
  }

I followed this method and changed is_check_enabled_nodes in _init.py back to true.

# -- Config settings --
CONFIG = {}
NODES_SETTINGS = {}
GLOBAL_SETTINGS = {}
is_check_enabled_nodes = True

At the same time, I changed global_settings check_enabled_nodes in config.json to true.

  "global_settings": {
    "check_enabled_nodes": true
  }

AlekPet also works properly.

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

2 participants