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

utils.py BUG - ImportError: cannot import name 'define_preprocessor_inputs' from 'comfyui_controlnet_aux.utils' #494

Open
pendave opened this issue Dec 19, 2024 · 1 comment

Comments

@pendave
Copy link

pendave commented Dec 19, 2024

`Traceback (most recent call last):
File "E:\ComfyUI_Portable\ComfyUI\nodes.py", line 2072, in load_custom_node
module_spec.loader.exec_module(module)
File "", line 883, in exec_module
File "", line 241, in call_with_frames_removed
File "E:\ComfyUI_Portable\ComfyUI\custom_nodes\comfyui_controlnet_aux_init
.py", line 2, in
from .utils import here, define_preprocessor_inputs, INPUT
ImportError: cannot import name 'define_preprocessor_inputs' from 'comfyui_controlnet_aux.utils' (E:\ComfyUI_Portable\py
thon_embeded\lib\site-packages\filterpy-0.0.15-py3.10.egg\comfyui_controlnet_aux\utils.py)

Cannot import E:\ComfyUI_Portable\ComfyUI\custom_nodes\comfyui_controlnet_aux module for custom nodes: cannot import nam
e 'define_preprocessor_inputs' from 'comfyui_controlnet_aux.utils' (E:\ComfyUI_Portable\python_embeded\lib\site-packages
\filterpy-0.0.15-py3.10.egg\comfyui_controlnet_aux\utils.py)`

What can I do with this Error, it hurts Krita as well.

2024-12-19 13:27:45,524 ERROR Missing required node InpaintPreprocessor from package ControlNet Preprocessors (https://github.com/Fannovel16/comfyui_controlnet_aux)

@pendave
Copy link
Author

pendave commented Dec 19, 2024

I get several utils.py

E:\ComfyUI_Portable\ComfyUI\custom_nodes\comfyui_controlnet_aux\utils.py
it has
def define_preprocessor_inputs(**arguments): return dict( required=dict(image=INPUT.IMAGE()), optional=arguments )

E:\ComfyUI_Portable\python_embeded\Lib\site-packages\filterpy-0.0.15-py3.10.egg\comfyui_controlnet_aux\utils.py
it does not have def define_preprocessor_inputs(**arguments):

So the import stuff got messed up. How to fix it?

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

1 participant